Define a Service for SAProuter

Hi experts,
the RFC Connection Test SAP-OSS works.
I would like to create a service that maintain my saprouter.exe + its parameters.
In a MS-DOS window, i entered the following command:
E:\usr\sap\saprouter\saprouter.exe -r -S 3299 -G saprouter.log -K "<Distinguished Name>"
When creating a service, i entered the following command :
ntscmgr install SAProuter -b E:\usr\sap\saprouter\saprouter.exe -p “service -r -S 3299 -G saprouter.log"
My SOLMAN (sap-sma server) communicates trough the SAProuter (saprtr) before communicating with SAP AG (sapserv2)
When closing my SAProuter session, in a client post, the SAP-OSS Test does'nt work anymore.
I would like to create a service like :
ntscmgr install SAProuter -b E:\usr\sap\saprouter\saprouter.exe -p “service -r -S 3299 -G saprouter.log -K "<Distinguished Name>"" but it doesn't work because of the double quote.
even if i go to the regedit directory and editing the path to :
E:\usr\sap\saprouter\saprouter.exe -r -S 3299 -G saprouter.log -K "<Distinguished Name>"
In fact, i want the SAP-OSS Test works when closing my saprtr server with a service.
Thanks a lot.
Pascal.

Hi kaushal malavia,
thank you very much again, the OSS Note 525751 was very helpful. The service WORKS.
But there is one part i didn't do :
To avoid the error message 'The description for Event ID (0) ...' in the NT Eventviewer you must make the following entries in the Registry. Under:
HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Services -> Eventlog -> Application
enter the following key:      SAPRouter
Under this, define the two following values:
    EventMessageFile   (REG_SZ)    : <local_path>\sapevents.dll
    TypesSupported    (REG_DWORD) :  0x7
All required files (ntscmgr.exe, saprouter.exe, sapevents.dll) can be found in your usr\sap\<SID>\sys\exe\run directory. As an attachment to this note, you can find the corresponding DLL in file sapevents.car.
Important: These adjustments are not obligatory for running
SAProuter on Windows. They serve only to provide detailed error
messages in the event log.
When i go to HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Services -> Eventlog -> Application, i cannot find a SAPRouter directory. In fact, i don't know what they mean by enter the following key:      SAPRouter
It that part important or can i leave this part?
Thanks again.
Pascal.

Similar Messages

  • Basis: No service for system , client  in Integration Directory??

    Hi All,
    IDocs from SAP QA are not being sent to PI QA. I see error in SM58 in SAP QA as: No service for system , client  in Integration Directory.  Please dont jump to asnwers by looking at above error. I could fix that, but thats not the real problem.
    Because I have checked
    1) SLD home page ---> Technical Landscape --> Select Web AS ABAP --> Select the technical system --> Clients ---> Click on the client used as Business system --> Here look for the logical system is defined (No Problem here, as logical systems is defined).
    2) ID---> Click on Objects --> Service Without party/Party > Double click on business system>On the tright side--> Service --> Adapter specific Identifiers ---> Check IDoc Adpater, Logical System (No Problem here as I see Logical System).
    But I can't find values R/3 System ID and Client under "IDoc Adapter and RFC Adapter". I think thats problem here, when I click on "Compare with SLD" in edit mode, values are not getting populated into R/3 System ID and Client. It makes think there is communication error from ID to SLD. How I do confirm if its the real problem?
    3) Checked Note 940313 - IDoc adapter: Error messages in SM58, No problem here
    4) Did SLDCHECK from PI QA, works fine, no problems here
    Both PI DEV and PI QA pointing to the same SLD. When I send IDocs from SAP QA to PI DEV, everything works fine. I can't send IDoc from SAP QA to PI DEV (changed RFC des to point to PI QA, it shouldn't be a problem).
    How do I find out if communication between PI QA - ID is workign fine with the SLD? Is there any other issue you can think of causing the above error?
    Thank You,
    Indrasena Janga

    *I have trobleshooted  a similar issue. In my case also the tRFC failed with the error "No service for system SAP, client 400 in Integration Directory".There were 11 IDOCS associated with this tRFC and when I saw control record of first IDOC,in sender information ,the sender partner number was wrong.Instead of "SAPSID",it was found as just "SAP".Where as the remaining ten were maintained with correct sender partner number.remaining ten IDOCS were dependant on first one.
    Thanks,
    Varada Reddy

  • Short dump while executing job SM:EXEC SERVICES for EWA alert generation

    Hello All,
    I'm getting short dump error while executing job SM:EXEC SERVICES for EWA alert generation.I'm using EHP1@SP22 of Sol Man.
    Please find the logs
    Error in the ABAP Application Program
    The current ABAP program "SAPLDSVAS_PROC" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "RDSVASCABAP_TRANS__________073
    " in include "RDSVASIABAP_TRANS__________073 " in
    line 1782:
    "Field "STATEMENT_SUMMARY001019" is unknown. It is neither in one of th"
    "e specified tables nor defined by a "DATA" statement. "DATA" statement"
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "SAP "
    Error in the ABAP Application Program
    The current ABAP program "SAPLDSVAS_PROC" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    If anyone came across such kind of dump, please reply asap, due to this, i could not generate EWA report for R/3 system 6.04.
    Thanks,
    Anand.

    >
    Anand Tigadikar wrote:
    > Thx Paul, but i already did checked this note and its not solving my issue
    Dear Anand,
    Did you perform a complete service definition replacement for SDCC/SDCCN as described in the note?
    These are manual steps you need to perform on the system and are not code corrections.
    I would suggest you perform it, if you have not, and check the SDCCN logs to review the process ran cleanly.
    Note: Please make sure SDCC_OSS is functioning and a connection to SAP can be made before
    deleting the service definitions.
    If you have already replaced the service defintions on the Solution Manager system, then no point doing it again. However checking a note and applying it are not the same thing. So I am uncertain if you replaced the service definitions or not. The dump you are getting in SM:EXEC SERVICES suggests its due to a problem with the service definitons. The recommendation is to replace them according to the process described in SAP Note 727998. If you have not done so please do so.
    If you have successfully replaced the service definitions are you still getting the same dump, or has it possibly changed?
    Regards,
    Paul

  • F4 help not working in custom backend service for PD form

    Dear All,
    Iam working with the Create position HCM PD form and i have a requirement to add two fields, one for the company code and the other is for the cost center and then create the relationship betwee the position and the cost center when the form is submitted.
    I have defined a generic service and created an enhancement implementation and linked this generic service to the imppementaion. I have written the logic for the F4 help for the fields in the method GET_HELP_VALUES, i have written the scripting for the drop down field in the form to trigger the F4 help in the form.
    When the cost center is being passed to the screen, i would then read the value of the cost center in the form workflow and create the relationship between S and K in the workflow as i am unable to achiev this in the design time of the PD form.
    But my current problem in that he values are not getting passed from the method to the field on the screen. I have worked on quite a few scenarios for F4 help and doing validations in the implementation in the PA form and i have seen this functionality working fine.
    My problem here is that i am unable to understand why the F4 value help is not working in my form. The standard PD service SAP_PD is also being used in the form to have the dropdown values for the account assignment feature.
    Could you please suggest me with some clues to fix my issue? i can share more details for further analysis.
    Thanks.
    Best regards,
    Sridharan

    Hi Chris,
    Thanks for your inputs. please see my reply to your questions
    First....are you sure you have "marked" that field as possible for F4 help?
    Reply: Yes
    Second...are you populating the help values strictly from that method...ie. not also using do_operations method to do it. If you refer to the documenation, it points out that trying to use both can cause issues.
    Reply: i am using only the GET_HELP_VALUES method and nothing written in do_operations.
    Third...when you debug your method, do you "see" the help values actually populating and as you say "not coming back to the screen"? I would check this first to make sure that there are actually values being found (ie. the logic within your service is correct).
    Reply: i have put the external break-point in this method and when the form in opened for processing by the HR admininstrator,the form openes up and the control is not being sent to the debugger.  I have written the scripting in the exit event of the events and scripts as suggested in the SAP help document. SO when i click on the dropdown field in the form, the debugger starts and executes the method and the code executes, then no values are populated on the screen.
    Fourth...are you using any generic services for populating help values as well. HCM P&F has a nasty habit of "if one GS fails, they all fail" so often, your service might work fine but an error in another makes yours appear to fail as well....hard to debug and find those kind.
    Reply: Yes i am using the generic service mainly for the purpose of F4 help. I do not see any issue with other gneric services as i have implemented a few generic services for PA forms and they are working fine.
    Fifth...oops...forgot the obvious one...make sure it isn't a security issue...ie. make sure you have access to read the cost centers you want.
    Reply: I dont get any auth error in SU53 while i test the process in R3
    Lastly, you said:
    "When the cost center is being passed to the screen, i would then read the value of the cost center in the form workflow and create the relationship between S and K in the workflow as i am unable to achiev this in the design time of the PD form."
    You actually should be able to do this using an Advanced/Enhanced Generic Service (if this is in fact the step at which you want a true update to occur). Just a thought.
    Reply: Could you please give some more information about this, how can i achieve it in advanced generic service.
    Appreciate more thougts from you Chris!
    Thanks,
    Sridharan

  • How to create web service for a Java class in SAP NetWeaver Studio

    hi all,
    i am using SAP Netweaver Developer Studio.have created a normal java project and i want to create web service for one of the classes in this project. i used the  Web Service Creation Wizard to create a web service for this class. but it says there's no methods available for VI. all my methods in this class are public, what should i do?

    Hi,
    I guess there are other ways. But this is an easy way, if you find the right wizards.
    Besides this it is good practise to define interface methods so that session bean implement these interface methods, and thus seperate the interface from the implementation.
    In this approach you will need 3 projects:
    An enterprise application project (will contain EJB Module)
    An EJB Module project (will contain session bean)
    A Java project (contains code that implements the session bean methods)
    In my previous post I suggested to use a J2EE web mudule project. This was a mistake, it should be EJB module.
    But it should be possible to do it in another way. It is up to you.
    Good luck, Roelof

  • Define a Service Plan in the transaction "solution_manager"

    Dear community,
    has anyone of you an idea how to configure the service plan in the SAP solution manager? I already tried to open the transaction "solution_manager" --> operations --> Delivery of SAP Services --> Service Plan
    There I get the message: "Last service plan update [at SAP]: 00.00.0000 00:00:00; Last solution master data update [at SAP]: 17.04.2007 02:15:27"
    So the data of my solition should be sent to SAP. But when I try to get the service plan from SAP by clicking the button: "Get current service plan from SAP" I only get the error message "There is no new service plan to be collected by S000XXXXXXX from destination SAP-OSS"
    Has onyone an idea what I have got to do, to get the service plan from SAP?
    Many thanks in advance and kind regards
    Michael

    Hi Michael,
    - Service Plans are defined at SAP (in the SAP internal backend systems).
    - Service Plans are linked at SAP to the Solution Landscape (which you have successfully transferred to SAP, indicated by "Last solution master data update [at SAP]").
    - Service Plans are collected from SAP (triggered by your Solution Manager system). You will see the results.
    Potential reasons, why no service plan can be collected for you:
    - used S-User is not assigned to the Solution Manager installation / customer number
    - no service (for example Technical Integration Check, Solution Management Assessment) is scheduled yor you.
    - your Solution Landscape has not be assigned to the Service Plan at SAP (in this case, contact the SAP Support, which is responsible handling service contracts).
    Best regards,
    Ruediger Stoecker

  • Need advice for starting a Managed Cloud Service for Small Businesses

    I hope this is in the right forum.  I have done a lot of research and searching but havent found anything that specifically answers, in total, what I am wanting to accomplish.  I live in a small town and want to start a Managed Cloud Services for
    small to small-medium business in my area (2-30 users for each business).  I want to market this to have businesses replace their in-house server(s) to virtual ones I would host in a local Data Center with my own equipment that I would maintain.  I
    am just starting off so I don't have any clients I do this for currently, but I get asked about this frequently.  I want to run a 2012 R2 Domain Controller and a Hyper-V 2012 R2 server.  The virtual servers I will host are going to be for AD, RDS,
    FTP, and files.  Software examples that people are going to be using these virtual servers for are Quickbooks, Sage Accounting, Remote Desktop or RemoteApp, custom CRM or small database software, Office 2013, etc.  No Exchange currently but will
    probably configure something for that in the future (maybe run 1-3 virtually for now if someone asks, but will only do it if the user base is fairly small ~under 10 users).  I only have 1 static IP to work with over a 100Mbps connection up and down.
    For hardware, I am figuring something along the lines of this:
    (1) 1U, single CPU w/2-4 cores, 8GB, 2x73GB SAS 10k RAID 1, Dual PSU, running Windows Server 2012 R2
    Domain Controller
    (1) 2U, 2x 8-core Xeon ~2.6Ghz, 80GB RAM, 8x600GB SAS 15k in Raid 10 for Storage (VHDX files, etc), RAID 1 small Basic drives (or USB stick) for OS, Dual PSU, Quad GB Nic which I can use for load balancing/teaming, Hyper-V
    2012 R2
    Hyper-V Virtual Server
    (1) GB Unmanaged Network Switch & (1) Cisco 5510 Firewall
    Most of my questions are about the best way to configure this.  I am planning on managing my Hyper-V from the physical Domain Controller server.  Each virtual server will have RDS & (possibly) AD services on a single server.
    1) I want to replicate the physical Domain Controller.  Should I get another server or just virtualize the replica in Hyper-V?  I understand that if the Hyper-V goes down, so does my DC replica.
    2) Should I use my Domain Controller to manage ALL users on each virtual Server, by creating separate Organizational Units for each business?
    3) Should I setup my domain controller with Hyper-V management and then each Virtual Server I setup be a separate domain (Ex. mydomain.local, business1.local, business2.local, etc)?  Each one has no connection to any
    other, completely seperate.  Or should I do subdomains (business1.mydomain.local).
    4) What I have read is that Subdomains are a pain to manage with user rights, etc.  I want to keep each server complete separated from one another over a network connection, I suppose the VLan through Hyper-V options
    do this?  I dont want wondering users to stumble upon another businesses files (I know they would probably be prompted with a login for that business/domain).
    5) For each virtual server, I want to create and have an HTTP subdomain point to that server from my domain name. (Ex: business1.mydomain.com, business2.mydomain.com, etc.)  I want them to be able to have access to
    only their RemoteApps or be able to type that address in their Remote Desktop program as the host name.  This would be for viewing the RemoteApp login page and RemoteApps for that business over HTTP/S through a browser.
    6) If I do not have separate DC's in each virtual and my main DC manages each one, is their a way to connect up each companies RemoteApps using a single site that only shows what they are assigned to based upon their login?
    (Ex. http://login.mydomain.com which then shows that user what they are assigned on their own virtual server)
    7) Since each business will use the same ports for RemoteApp (443) & RDC (3389 unless I change it), how would I setup the subdomains to point to their correct server and not overlap for mess with any of the other servers
    since its all over 1 static WAN IP for all servers.  Thats why I figured setting up IIS subdomains would solve this.
    8) For backups or Hyper-V replication, is it better to have software that backs up the ENTIRE Hyper-V server (Acronis Advanced Backup for Hyper-V) as well as replication or just backups?  Or should I do separate file
    backup on each virtual with a replica?  Can a replica be a slower server since its just a backup? (Ex. 1x 8 core, 80GB, 8x600GB 10k SAS)
    9) For the servers that will be using FTP, can I again rely on the subdomains to determine which server to connect to on port 21 without changing each FTP servers ports?  I just want each business/person to type in
    the subdomain for their business and it connect up to their assigned FTP directory over port 21.
    10) If the physical DC manages DNS for all Virtual servers, can I forward sub domain requests to the proper virtual server so they connect to the correct RemoteApp screen etc.  Again all I have is 1 IP.
    I hope all of these questions make sense.  I just want every business to be independent of each other on the Hyper-V, each on their own virtual server, all without changing default ports on each server, each server running RDS, (possibly) AD, (a few) FTP,
    and all over a common single WAN IP.  Hoping subdomains (possibly managed through IIS on the physical DC) will redirect users to their appropriate virtual server.

    If you really want to run your own multi-tenant service provider cloud, Microsoft has defined the whole setup needed.
    They call it Infrastructure as a Service Product Line Architecture.  You can find the full documentation here -
    http://blogs.technet.com/b/yuridiogenes/archive/2014/04/17/infrastructure-as-a-service-product-line-architecture.aspx
    There are several different ways of configuring and installing it.  Here is a document I authored that provides step-by-step instructions for deploying into a Cisco UCS and EMC VSPEX environment -
    http://www.cisco.com/c/dam/en/us/td/docs/unified_computing/ucs/UCS_CVDs/ucs_mspc_fasttrack40_phase1.pdf
    This document contains the basic infrastructure required to manage a private cloud.  I will soon be publishing a document to add the Windows Azure Pack components onto the above configuration.  That is what would more easily provide a multi-tenant
    experience with a Azure look and feel.  It is not Azure, but the Azure pack is a series of applications, some of which came from Azure, the provides Azure-like capabilities only in a service provider type of environment.
    Whether you use my document or not (which has actually corrected errors found in the Microsoft documentation), you should take a look at it to see what it takes to put something like this up, if you are really serious about it.  It is not a small undertaking. 
    It requires a lot of moving pieces to be coordinated.  Yes, my document is designed to scale to a large environment, but you need the components that are there.  No need re-inventing the wheel.  Microsoft's documentation is based on a lot of
    real hands on experience of their consulting organization that has been doing this for customers for years.  This one is also know as Fast Track 4.  I've done 2 (2008 R2) and 3 (2012), also and it just keeps getting more complicated based on customer
    demands and expectations.
    Good luck!
    . : | : . : | : . tim

  • Should i use Business system or Business service for a 3rd party file sys?

    Hi Gurus
    My requirement is to send a file from 3rd party client system to SAP ECC system.
    I want to confugure a file sender CC to pickup the file and send it to ECC system thru proxy.
    Now, after going thru the SAP definitions of 3rd party Business system (if the system is present the landscape and technical details are available) and Business service (if system's technical details is not available because it is not present in the landscape. Only the interface details are available, for ex: external webservice), i am not sure which one to use.
    What is the use of using a 3rd Business system instead of using business service in my current situation?
    In both the cases, i can use a file sender CC and pickup the file from a folder using FTP protocol.
    What is the criteria based on which i need to take this decision?
    And finally, how are the system name & host name details, which we given during 3rd party technical system definition in SLD useful?
    Many Thanks
    Chandra

    Hi Chandra
    Its always preferred to use Business service for communication with systems outside the landscape. As it does not refer to any SLD components and safe to use on internet etc.
    What is the use of using a 3rd Business system instead of using business service in my current situation?
    If you want to use 3rd party system you need to define party based communication and it acts as a party in production environment. You can also create a Standalone sytem in SLD for your use. Standalone technical system mostly refers to standalone Java applications in landscape.
    n both the cases, i can use a file sender CC and pickup the file from a folder using FTP protocol.
    What is the criteria based on which i need to take this decision?
    If your communication is party based and the 3rd party you refer is a party for ERP then it make sense to use a third party communication and use party name as well.By this i mean business wise. Else its always good to use Business service.
    And finally, how are the system name & host name details, which we given during 3rd party technical system definition in SLD useful?
    To use this third party system you need to register products on TS else you will not be able to see any Interface etc while configuring in ID. you need to add all details to it in SLD.
    Thanks
    Gaurav

  • No service for system sap*** client *** , sm58 error

    Hi Friends
    When I am trying to send message from My Xi system to R/3 system I am getting error.,
    No service for system SAPSXD, client 001 in Integration Directory
    I had searched it on sdn n found that this is very common error.
    I had gone through block,
    The specified item was not found.
    But then also not able to solve this error.
    I m giving the config of my sys here,
    I had created,logical system in my R/3 system for Xi system as SXD001 , and logical system for R/3 system is SND111.
    and same thing I had maintained in Xi system also.
    Now when i m trying to send message from Xi to R/3 I am gettin error in SM58 ,
    No service for system SAPSXD, client 001 in Integration Directory.
    I had checked note 940313 , that is for this same error, but the solution given in that is for when we get error while sending idoc from R/3 to XI but in my case I am getting same error while sending Idoc from XI to R/3.
    I had creted 2 business system one as third party and one for my r/3 system.
    where should i assign the logical system? and which logical system should i assign?that of XI system??
    I had searched SDN lot but didnt got any scenario like this.
    So please let me know..how to solve this problem.

    Hi Udo,
    I had created a technical system as third party system for our partner. and technical system as web as abap for my R/3 system. In the third party system I had assigned a business system and a logical system as BAS01, and to my R/3 system I had assigned a business system and logycal system as SND111.
    SXD is my system ID for XI.
    In Id i had configured the whole scenario by creating importing this two business system under service withour party. and I am configuring under that. So how should i configure sender system here.
    do i need to change some configuration on R/3 side? On r/3 side,in distribution model, i had defined the logical system name of PI as sender.Do i need to create the third party system here and specify its name in 'from' indistribution model?
    This is my first scenario in XI so gettings lots of problem. I really appritiate ur help.
    Thanks.

  • Content server for Document attachment through "services for object" Icon.

    Guys,
    I have typical problem in installation of Content server for storing external documents.
    We all know that we can attach the document in SAP using the icon “SERVICES FOR OBJECT”. By this we can attach the document to the specific object we want.
    -Since my client wants only document attachment method not to completely implement SAP DMS, I proposed this method of attaching documents through services for object method.
    -If documents are stored though services for object ,The attached document will directly get stored in sap database(correct me if I am wrong) while  in  DMS it ask you to select the storage location while u check in for any document
    -By storing the doc thru "services for object " For long run when we store the documents in sap database our system will drastically get slow down.
    -In this regard I have a plan to incorporate external storage server.
    -Now I should know that how I should customize content server configuration so that the attachment through services for object will store into this content server I need to know how to define Client, Content Category, Content Repository, Document Area, Physical Machine, IP Address, Port. (OACT & OAC0)
    I appreciate for immediate solution and <u><b>Points will be rewarded for sure.</b></u>
    Regards,
    Murali.S

    Hi Murali,
    Don't Worry, its possible,
    All attachments can be stored in SAP Content Server also, but through archiving process.
    Set up a database storage system.
    Preparation
    Make sure that the HTTP plugin is active.
    Transaction <b>SMICM,</b> "Display Services" function key (shift F1)). The list of services must contain a port other than 0 for HTTP.If not, you must adjust the relevant profile parameter.
    <u>Typical entry:</u>
    icm/server_port_0         PROT=HTTP, PORT=1080, TIMEOUT=900
    <b>Make sure that the /sap/bc/contentserver service is active.</b>
    If no user is defined, then use transaction SU01 to create a new user. Use the "System" user type.Assign
    the SAP_ALL and SAP_NEW profiles to the user. (Eg: HRUSER/PLMUSER/PPUSER etc)
    Transaction <b>SICF,</b> select: default_host - sap - bc -contentserver. Select the function to display/change the service. Make sure that a user is defined.
    Using the relevant data from the newly created user, maintain the anonymous logon data for the
    /default_host/sap/bc/ service and save & activate the changes in transaction <b>SICF</b>.  Double click on content server and give the user name which has been created (HRUSER/PLMUSER/PPUSER/MMUSER etc)
    Check the system PSE.
    Start transaction <b>STRUST</b>. Expand the system PSE. The system PSE must be "green" for each application
    server.
    Determine a suitable exchange directory.
    The exchange directory must be accessible from each application server. If all application servers are running on the same platform (for example, Windows), one network directory that is accessible on all application server (for example,
    server\share) is sufficient. You can generally use the global directory
    (profile parameter DIR_GLOBAL).You can use the RSPARAM report to determine the profile parameters.
    Setting up the storage
    Create a table for storing the data. Using transaction <b>SE11</b>, create a copy of the SDOKCONT1
    table. If you want to create the repository database, you can name the table ZCONT_DB, for example. Save the
    table as a local object. Activate the table.
    Create a repository.
    Use transaction <b>OAC0</b> to create a new repository.
    Use the following parameters:
    Repository Max. two characters, for example,” Z1”
    DocArea: ARCHLINK
    Storage type: R/3 database
    Storage subtype: normal
    Version no. : 0046 
    Contents table <table name> for example: ZCONT_DB
    Exchange directory <directory name> for example:
    server\share\
    Make sure that the exchange list ends with a \ (or /on Unix).If you are using a variety of platforms, you must use transaction FILE to define a suitable logical file name and use this name. Save the settings.
    1. Maintain view table <b>TOAAR_C</b>, via SM31
       Cross client table displayed as information, forget it
    2. In field 'StSytm' you must entered 'Z1' as your system need, or anything that you need but you must configure HR Archive link too.
    3. In field 'Arch.path' (direct above Spoolpath), entered path in your system, this real path in your operating system. May be you should confirm to your Basis consultant where exactly you could store picture files. So if you enter '/', your file exists at root directory at your UNIX system.
    4. Choose 'File store' radio button
    5. Save.
    First
    <b>1. You have to create a number range for SAP ArchiveLink.
        IMG: Basis Components-> Basis Services -> SAP ArchiveLink -> Basic Settings-> Maintain number ranges   
        (Trxn <b>OANR).</b> Create number range 01 from 0000000001 to 9999999999 without the external number flag. 
    2. Document type <b>HRICOLFOTO</b> must exist with document class JPG.
        IMG: Basis Components->Basis Services->SAP ArchiveLink->System Settings->Maintain document types
        (Table<b> TOAVE, Trxn OAC2).</b>
    3. Document type <b>HRICOLFOTO</b> must be linked to object type PREL and Infotype PA0002.
        IMG: Personnel Management->Personnel Administration->Tools->Optical archiving->Set up Optical Archiving
        in HR.  (View V_T585O, no Trxn). In the first two columns there are minuses, the third (Date) has
       a plus - don't put a flag in the check box.
    4. Check which content repository (Archive) is linked to document type HRICOLFOTO and object type  
        PREL. IMG: <b>Basis Components->Basis Services->SAP ArchiveLink->Basic Settings->Maintain Links (Table 
       TOAOM_C, Trxn).</b></b>
    Test
    • Test the repository.
    Use transaction SE38 to start the RSCMSTH0 report. Specify your repository (i.e. Z1) and start the test.
    The report must run without errors. If no problems occurred, you can use the new repository with Archive Link after you carry out the Archive Link Customizing. If problems do occur, check whether one of the related
    notes helps.
    For More Details :
    http://service.sap.com/archivelink.
    <u><b>
    NOTE:- Screen Shots are missing, i was not able to paste here, One more thing is we did this for uploading a PHOTOS into Content Server, Similarly you have to create a REPOSITORY and Z-TABLE to bring all the Attachments from all the selected Objects and then route them to the CONTENT REPOSITORY.</b></u>
    Your Senior ABAP guy would help you in this, if not i may try to help you more by monday.
    Regards
    Rehman
    <b>Reward Your Points if Satisfied.</b>

  • Attachments to Notifications - using "Services for Object"

    Hi All,
    I have sucessfully created a VC application (7.0 sp13) to create a General Notification in R/3
    using the BAPI -  IQS4_CREATE_NOTIFICATION
    Our users in R/3 4.7 use the button in the Top Left Hand corner of the Screen "Services for Object"
    to attach MS Word documents to Notifcations. Using the Create Attachment option from the Services for Object toolbar that pops up when the button is clicked.
    Has anyone else tried this or have any advice on how this can be done in VC - if you can recommend a BAPI that I can try or will this be a custom ABAP BAPI.
    Thanks in advance for any advice you can offer.
    - Robert

    FUNCTION z_pm_attachment_and_url.
    *"*"Interface local:
    *"  IMPORTING
    *"     VALUE(I_QMNUM) TYPE  QMNUM OPTIONAL
    *"     VALUE(I_AUFNR) TYPE  AUFNR OPTIONAL
    *"     VALUE(I_URL) TYPE  SO_URL OPTIONAL
    *"     VALUE(I_FILE) TYPE  ZPMCT002 OPTIONAL
    *"     VALUE(I_FILENAME) TYPE  STRING OPTIONAL
    *"  TABLES
    *"      T_RETURN STRUCTURE  BAPIRET2
    * Objetos locais
      DATA:
        vl_url         TYPE so_url,
        vl_path        TYPE string,                             "#EC NEEDED
        vl_loopc       TYPE sy-loopc,
        vl_lines       TYPE sy-loopc,
        vl_filename    TYPE string,
        vl_filelength  TYPE i,
        it_url         TYPE STANDARD TABLE OF sood-objdes,
        it_obj_cont    TYPE STANDARD TABLE OF solix,
        wa_obj         TYPE borident,
        wa_obj_cont    TYPE soli,
        wa_obj_data    TYPE sood1,
        wa_folder_id   TYPE soodk,
        wa_document_id TYPE sofmk.
      DEFINE valida_retorno.
        loop at t_return into t_return.
          if t_return-type eq zgtpm_e.
            exit.
          endif.
        endloop.
        if t_return-type eq zgtpm_e.
          exit.
        endif.
      END-OF-DEFINITION.
    * === Valida parâmetros de entrada
      IF i_qmnum IS INITIAL AND i_aufnr IS INITIAL.
    *   Nenhum objeto informado: Informe Nota ou Ordem de Manutenção
        PERFORM mensagem_retorno_tab
        USING
          'ZPM_PORTAL' zgtpm_e '055' '' '' '' ''
        CHANGING
          t_return[].
        EXIT.
      ELSEIF NOT i_qmnum IS INITIAL AND NOT i_aufnr IS INITIAL.
    *   Informe apenas um objeto: Nota ou Ordem de Manutenção
        PERFORM mensagem_retorno_tab
        USING
          'ZPM_PORTAL' zgtpm_e '054' '' '' '' ''
        CHANGING
          t_return[].
        EXIT.
      ENDIF.
      IF  i_url IS INITIAL
      AND i_filename IS INITIAL.
    *   Informe Anexo e/ou URL
        PERFORM mensagem_retorno_tab
        USING
          'ZPM_PORTAL' zgtpm_e '060' '' '' '' ''
        CHANGING
          t_return[].
        EXIT.
      ENDIF.
    * === Define Categoria de objeto
      IF NOT i_qmnum IS INITIAL.
        wa_obj-objkey  = i_qmnum.
        wa_obj-objtype = 'BUS2038'. " Nota PM
      ENDIF.
      IF NOT i_aufnr IS INITIAL.
        wa_obj-objkey  = i_aufnr.
        wa_obj-objtype = 'BUS2007'. " Ordem de manutenção
      ENDIF.
    * === Anexo
      IF NOT i_filename IS INITIAL.
    *   Conteúdo do arquivo
        IF NOT i_file[] IS INITIAL.
          it_obj_cont[] = i_file[].
          DESCRIBE TABLE it_obj_cont LINES vl_lines.
          READ TABLE it_obj_cont INTO wa_obj_cont INDEX vl_lines.
          vl_filelength =
            ( 255 * ( vl_lines - 1 ) ) + STRLEN( wa_obj_cont ).
        ELSE.
          CALL FUNCTION 'GUI_UPLOAD'
               EXPORTING
                    filename                = i_filename
                    filetype                = 'BIN'
               IMPORTING
                    filelength              = vl_filelength
               TABLES
                    data_tab                = it_obj_cont
               EXCEPTIONS
                    file_open_error         = 1
                    file_read_error         = 2
                    no_batch                = 3
                    gui_refuse_filetransfer = 4
                    invalid_type            = 5
                    no_authority            = 6
                    unknown_error           = 7
                    bad_data_format         = 8
                    header_not_allowed      = 9
                    separator_not_allowed   = 10
                    header_too_long         = 11
                    unknown_dp_error        = 12
                    access_denied           = 13
                    dp_out_of_memory        = 14
                    disk_full               = 15
                    dp_timeout              = 16
                    OTHERS                  = 17.
          IF sy-subrc <> 0.
            PERFORM mensagem_retorno_tab
            USING
             sy-msgid sy-msgty sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
            CHANGING
              t_return[].
            EXIT.
          ENDIF.
        ENDIF.
    *   Pasta de Destino
        PERFORM get_folder CHANGING wa_folder_id t_return[].
        valida_retorno.
    *   SAPoffice: definição do objeto, modificar atributos
        wa_obj_data-objla  = sy-langu.      " Idioma
        wa_obj_data-objsns = 'O'.           " Objeto confidencial
        wa_obj_data-objlen = vl_filelength. " Tamanho conteúdo documento
        wa_obj_data-ownnam = sy-uname.      " Nome proprietário
        CALL METHOD cl_report_viewer=>split_path_filename
        EXPORTING
          i_filename = i_filename
        IMPORTING
          e_path     = vl_path
          e_filename = vl_filename.
        SPLIT vl_filename AT '.' INTO
          wa_obj_data-objdes    " Descrição breve do conteúdo
          wa_obj_data-file_ext. " Extensão de file de uma aplicação PC
        CONDENSE wa_obj_data-file_ext NO-GAPS.
    *   Insere Objeto (Anexo)
        PERFORM object_insert
        USING
          'EXT' " Anexo
          wa_obj_data
          wa_folder_id
          it_obj_cont
        CHANGING
          wa_document_id
          t_return[].
        valida_retorno.
    *   Relacionamento Objeto PM x Anexo
        PERFORM relation_create
        USING
          'ATTA'
          wa_obj
          wa_document_id
        CHANGING
          t_return[].
        valida_retorno.
      ENDIF.
    * === URL
      IF NOT i_url IS INITIAL.
    *   Inicializa estruturas comuns a Anexo e URL
        CLEAR:
          it_obj_cont,
          wa_obj_cont,
          wa_obj_data,
          wa_folder_id,
          wa_document_id.
    *   Conteúdo da URL
        MOVE i_url TO vl_url.
        WHILE NOT vl_url IS INITIAL.
          CONCATENATE '&KEY&' vl_url(250) INTO wa_obj_cont.
          APPEND wa_obj_cont TO it_obj_cont.
          SHIFT vl_url LEFT BY 250 PLACES.
        ENDWHILE.
    *   Pasta de Destino
        PERFORM get_folder CHANGING wa_folder_id t_return[].
        valida_retorno.
    *   SAPoffice: definição do objeto, modificar atributos
        wa_obj_data-objla  = sy-langu. " Idioma
        wa_obj_data-objsns = 'O'.      " Objeto confidencial
        wa_obj_data-ownnam = sy-uname. " Nome proprietário
        SPLIT i_url AT '/' INTO TABLE it_url.
        DESCRIBE TABLE it_url LINES vl_loopc.
        READ TABLE it_url INDEX vl_loopc
        INTO wa_obj_data-objdes. " Descrição breve do conteúdo
    *   Insere Objeto (URL)
        PERFORM object_insert
        USING
          'URL'  " Link Inter/Intranet
          wa_obj_data
          wa_folder_id
          it_obj_cont
        CHANGING
          wa_document_id
          t_return[].
        valida_retorno.
    *   Relacionamento Objeto PM x URL
        PERFORM relation_create
        USING
          'URL'
          wa_obj
          wa_document_id
        CHANGING
          t_return[].
        valida_retorno.
      ENDIF.
    * === Libera objetos locais
      FREE:
        vl_url,
        vl_path,
        vl_loopc,
        vl_lines,
        vl_filename,
        vl_filelength,
        it_url,
        it_obj_cont,
        wa_obj,
        wa_obj_cont,
        wa_obj_data,
        wa_folder_id,
        wa_document_id.
    ENDFUNCTION.
    ***INCLUDE LZGPM0010F01 .
    *&      Form  mensagem_retorno_tab
      FORM mensagem_retorno_tab
      USING
        p_msgid TYPE symsgid
        p_msgty TYPE symsgty
        p_msgno TYPE symsgno
        p_msgv1 TYPE any
        p_msgv2 TYPE any
        p_msgv3 TYPE any
        p_msgv4 TYPE any
      CHANGING
        t_return TYPE ty_return.
        DATA:
          vl_msgty  TYPE symsgty,
          wa_return LIKE LINE OF t_return.
        IF p_msgty IS INITIAL.
          MOVE zgtpm_e TO vl_msgty.
        ELSE.
          MOVE p_msgty TO vl_msgty.
        ENDIF.
        IF p_msgno IS INITIAL.
          EXIT.
        ENDIF.
        MOVE p_msgid  TO wa_return-id.
        MOVE vl_msgty TO wa_return-type.
        MOVE p_msgno  TO wa_return-number.
        MOVE p_msgv1  TO wa_return-message_v1.
        MOVE p_msgv2  TO wa_return-message_v2.
        MOVE p_msgv3  TO wa_return-message_v3.
        MOVE p_msgv4  TO wa_return-message_v4.
        MESSAGE ID p_msgid TYPE vl_msgty NUMBER p_msgno
        WITH p_msgv1 p_msgv2 p_msgv3 p_msgv4
        INTO wa_return-message.
        APPEND wa_return TO t_return.
        FREE: vl_msgty, wa_return.
      ENDFORM.                    " mensagem_retorno_tab
    *&      Form  get_folder
      FORM get_folder
      CHANGING
        w_folder_id TYPE soodk
        t_return TYPE ty_return.
        CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
             EXPORTING
                  region    = 'B'  " ?
             IMPORTING
                  folder_id = w_folder_id
             EXCEPTIONS
                  OTHERS    = 1.
        IF sy-subrc <> 0.
          PERFORM mensagem_retorno_tab
          USING
           sy-msgid sy-msgty sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
          CHANGING
            t_return[].
        ENDIF.
      ENDFORM.                    " get_folder
    *&      Form  object_insert
      FORM object_insert USING
        p_objtp     TYPE so_obj_tp
        w_obj_data  TYPE sood1
        w_folder_id TYPE soodk
        t_obj_cont  TYPE zpmct002
      CHANGING
        w_document_id TYPE sofmk
        t_return      TYPE ty_return.
    *   Objetos locais
        DATA:
          it_objcont  TYPE STANDARD TABLE OF soli,
          it_obj_head TYPE STANDARD TABLE OF soli,
          wa_obj_id   TYPE soodk,
          wa_obj_cont LIKE LINE OF t_obj_cont.
    *   RAW to CHAR
        LOOP AT t_obj_cont INTO wa_obj_cont.
          APPEND wa_obj_cont TO it_objcont.
          CLEAR wa_obj_cont.
        ENDLOOP.
    *   Insere objeto
        CALL FUNCTION 'SO_OBJECT_INSERT'
             EXPORTING
                  folder_id                  = w_folder_id
                  object_type                = p_objtp
                  object_hd_change           = w_obj_data
                  owner                      = sy-uname
             IMPORTING
                  object_id                  = wa_obj_id
             TABLES
                  objhead                    = it_obj_head
                  objcont                    = it_objcont
             EXCEPTIONS
                  active_user_not_exist      = 1
                  communication_failure      = 2
                  component_not_available    = 3
                  dl_name_exist              = 4
                  folder_not_exist           = 5
                  folder_no_authorization    = 6
                  object_type_not_exist      = 7
                  operation_no_authorization = 8
                  owner_not_exist            = 9
                  parameter_error            = 10
                  substitute_not_active      = 11
                  substitute_not_defined     = 12
                  system_failure             = 13
                  x_error                    = 14
                  OTHERS                     = 15.
        IF sy-subrc = 0.
          w_document_id-foltp = w_folder_id-objtp.
          w_document_id-folyr = w_folder_id-objyr.
          w_document_id-folno = w_folder_id-objno.
          w_document_id-doctp = wa_obj_id-objtp.
          w_document_id-docyr = wa_obj_id-objyr.
          w_document_id-docno = wa_obj_id-objno.
        ELSE.
          PERFORM mensagem_retorno_tab
          USING
           sy-msgid sy-msgty sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
          CHANGING
            t_return[].
        ENDIF.
    *   Libera objetos locais
        FREE:it_objcont, it_obj_head, wa_obj_id, wa_obj_cont.
      ENDFORM.                    " object_insert
    *&      Form  relation_create
      FORM relation_create
      USING
        p_relationtype TYPE binreltyp
        w_obj          TYPE borident
        w_document_id  TYPE sofmk
      CHANGING
        t_return TYPE ty_return.
        DATA wa_doc TYPE borident.
        wa_doc-objtype = 'MESSAGE'.
        CASE p_relationtype.
          WHEN 'ATTA'.
            wa_doc-objkey  = w_document_id(34).
          WHEN 'URL'.
            wa_doc-objkey  = w_document_id.
          WHEN OTHERS.
        ENDCASE.
        CALL FUNCTION 'BINARY_RELATION_CREATE'
             EXPORTING
                  obj_rolea      = w_obj
                  obj_roleb      = wa_doc
                  relationtype   = p_relationtype
             EXCEPTIONS
                  no_model       = 1
                  internal_error = 2
                  unknown        = 3
                  OTHERS         = 4.
        IF sy-subrc = 0.
          COMMIT WORK AND WAIT.
          CASE p_relationtype.
            WHEN 'ATTA'.
    *         O anexo foi criado com êxito
              PERFORM mensagem_retorno_tab
              USING
                'SGOS_MSG' zgtpm_s '043' '' '' '' ''
              CHANGING
                t_return[].
            WHEN 'URL'.
    *         A URL foi criada com êxito
              PERFORM mensagem_retorno_tab
              USING
                'ZPM_PORTAL' zgtpm_s '059' '' '' '' ''
              CHANGING
                t_return[].
            WHEN OTHERS.
          ENDCASE.
        ELSE.
          PERFORM mensagem_retorno_tab
          USING
           sy-msgid sy-msgty sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
          CHANGING
            t_return[].
        ENDIF.
        FREE wa_doc.
      ENDFORM.                    " relation_create
    Edited by: Fabrício Alves Vieira on Apr 8, 2008 3:08 PM

  • Services for object

    Hi,
    I am uploading the Documents in the Services for object.( tcode ME22N.).
    When the PO is released , then also i am able to change or delete the attachment.
    I dont want to delete or edit the document after the PO is released.
    How to contol this?. .
    Regards,
    Chetan

    Hi Chetan,
                     That is not the correct way of generatin the document because you doc needs to go to the SAP server and it should not be accessed by any one it should be in the read only format.
    please.
    and one more technical reason is that it takes a lot of space in the server if you upload it directly by the above told path, please go as per the process.
    In DMS you have to define the Document Type for the Document that will be uploaded and there relevent document where your uploaded document will be used. like justification notes will be used by the PR and PO.
    Please follow this path.
    Regards,
    Yawar khan
    Edited by: 1234_abcd on May 23, 2011 12:57 PM

  • The problem of creating service for adapter for mq series v8.1

    Hi everyone, I have some problem when I try to create service for adapter for mq series using application integration design console. Everything is fine when I define the service but some error shows when I try to test it. The error message is:
    -------- Begin level 0 Exception Stack Trace --------
    com.bea.wlai.client.ApplicationViewException: Failed to locate deployment information for service ' on ApplicationView 'AppView1'
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:186)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:290)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:247)
    at __WLAdapter4MQSeries_Prototype_48f240ab.AppView1_6k4mbt_EOImpl_814_WLStub.getRequestDocumentDefinition(Unknown Source)
    at com.bea.wlai.client.ApplicationView.getRequestDocumentDefinition(ApplicationView.java:573)
    at jsp_servlet.__testrslt._jspService(__testrslt.java:361)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:638)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:423)
    at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:154)
    at jsp_servlet.__display._jspService(__display.java:659)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    -------- End level 0 Exception Stack Trace --------
    And my request document is:
    <?xml version="1.0"?>
    <ns0:s1 xmlns:ns0="wlai/AppView1_s1_request">
    <Data>123</Data>
    </ns0:s1>
    The following is the schema for the request document:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema elementFormDefault="qualified"
    targetNamespace="wlai/AppView1_s1_request"
    xmlns="wlai/AppView1_s1_request"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="s1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Data"
    type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Anybody got some idea about this problem? Thanks for your help.

    Did you check these links ->
    http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html
    http://www.dbasupport.com/oracle/ora10g/CreateDBManually.shtml
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#ADMIN002
    Regards.
    Satyaki De

  • Attachments with services for object in ME42 along with RFQ via 'ME9A'  .

    Hello Guys,
    I have a MM requirement where the user attaches some document in ME42  via services for object functionality to a particular RFQ. Here the user wants to attach this document during sending of mail with ME9A to the vendor.
    As by SAP standards we are only able to send RFQ in PDF format to vendors.
    Thanks in advance
    Regards

    Hi,
    You can attach an attachment to RFQ IN ME9Avia E-mail. Communication strategy need to define in CS01. E-mail address need to maintain in vendor master record. Codition records need to maintain in NACE or IN mn04. Use sap note  191470. This is for PO, the same can be used for RFQ. Please refer below link for step by step assistance. Thanking you.
    RFQ send by mail through SAP server

  • Can we use same Business Service for Sender and Receiver

    Can we use same Business Service for Sender and Receiver

    Hi
    In addition to the above infomation explaining about the Business Service..
    Business Service: Address an abstract business entity as the sender or receiver of messages.
    Using a business service, you can define the technical or business subunits of the companies involved and then assign them the relevant interfaces.
    The business services are used when configuring cross-company processes also..
    regards
    Kishore

Maybe you are looking for