Service Call via RFC

Hi all.
I am currently starting with WDA and facing some problems in calling BAPI via RFC.
We have a "plain" WAS without SD or other modules. Our data is distributed over multiple R/3 systems.
When I try to implement a Service Call to the BAPI BAPI_CUSTOMER_GETLIST via RFC I got the error message that this FM is not available in the current system (WAS).
Does anyone has experience in how to get this working?
What is the best practice here?
- Building wrapper on WAS which calls the FM via RFC on the other system?
- Installing missing modules on WAS ?
Any comment would be appreciated.
Cheers,
Sascha

Hi again.
To shorten development time we considered the following solution:
We are generating web service proxy classes on the WAS for the BAPIs of the R/3 system we want to use. Afterwards we are generating wrapper function modules which will use these proxies. So we do not have to import all missing structrues cause these are generated automatically during proxy generation.
I tested this already with BAPI_CUSTOMER_GETDETAIL2. Calling the wrapping fm which calls the service proxy works fine from se80. I do get a result via the service.
Then i generated a service call for my WEBDynpro component using the wizard in WDA.
Silly is that the generated code is not compilable cause of missing ,. Anyway after correcting I tried to run my webdynpro application and when the fm gets called via the generated service method I receive the following message:
CODE           SOAP:111
ERRORTEXT     Unallowed RFC-XML Tag (SOAP_EINVALDOC)
Any ideas?
Why is it working when i call the fm directly but not when calling it from my webdynpro app?
Thanks in advance
Sascha
Message was edited by: Sascha Dingeldey
Message was edited by: Sascha Dingeldey

Similar Messages

  • How to Debug Functional Module called via RFC?

    Hi Experts,
         Please, can someone explain to me how to debug functional module that is called via RFC? Thanks in advance.
      Best Regards,
    Aleksandar

    Hi Laxman,
       First of all thank you very much for giving attention to my post. Ok, I am trying to debug function module in RM-CA (FICA), function module is called by CRM system (via RFC) and in addition all this chain is triggered by WebClient.
         I have user that can login on the CRM as well as on RM-CA (ECC 6.0) system, but those users are different (unfortunately I do not have administration permission so I can’t change profiles of my users but I can ask for it). I can without any problem debug calls that come from WebClient, so setting an external break point in CRM system I can catch whatever I want but when process comes to point where actually call to back-end (RM-CA) takes place I simply can’t get into functional module, that resides on RM-CA side. Actually what happens is that processing continues as was chosen ‘NEXT STEP’ (F6).
         To resume, two systems and two different users. Where XCM user should be created? (on RM-CA system or CRM). Should I change something in Menu option Utilities -> Settings -> ABAP Editor tab -> Debugging tab, in field users?  If you need any additional info please tell me.
      Thanks again for your support.
    Aleksandar

  • Sapscript called via RFC

    Hi guys,
    I have implemented a FM that calls a SAPscript and generates it in the application server.
    when i execute it it creates the pdf correctly and no previsualizing pop_up window is shown because i have edited the itcpo table parameters correctly.
    I have also implemented another FM which calls the first one ( those FM are on different systems and are called via RFC ), but now the pop_up windows is being displayed, instead the parameters of the itcpo are the same.
    Any help
    Best regards
    Jon
    Edited by: Jon Azkorra Olano on Jun 14, 2010 3:33 PM

    You can find it by seeing the SUBMIT statement of the program..
    SUBMIT <PROG> .. via <RFC Destination>
    It indicates that we are calling that program through RFC...
    Reward if helpful....

  • Removing a linked Activity from a Service Call via the DI Server

    Has anyone done this or something similar? Below is the XML sent and received while trying to remove the last linked activity. I get a successful response but the Service Call isn't updated. If I try and remove an activity that isn't the very last I get an error. Am I doing something wrong, or is this a bug?
    (XML posted below as it isn't previewing properly)

    Original XML:
    <?xml version="1.0"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><GetByKeyResponse xmlns="http://www.sap.com/SBO/DIS"><BOM><BO><AdmInfo><Object>oServiceCalls</Object></AdmInfo><ServiceCalls><row><ServiceCallID>1</ServiceCallID><Subject>tecbician issue</Subject><CustomerCode>C20000</CustomerCode><CustomerName>Norm Thompson</CustomerName><ContactCode>1</ContactCode><ManufacturerSerialNum></ManufacturerSerialNum><InternalSerialNum>A6-000011</InternalSerialNum><ContractID>0</ContractID><ContractEndDate></ContractEndDate><ResolutionDate></ResolutionDate><ResolutionTime>0000</ResolutionTime><Origin>0</Origin><ItemCode>A00006</ItemCode><ItemDescription>HP 600 Series Inc</ItemDescription><ItemGroupCode>102</ItemGroupCode><Status>-3</Status><Priority>scp_Medium</Priority><CallType>0</CallType><ProblemType>0</ProblemType><AssigneeCode>1</AssigneeCode><Description></Description><TechnicianCode>0</TechnicianCode><Resolution></Resolution><CreationDate>20100323</CreationDate><CreationTime>2336</CreationTime><Responder>1</Responder><UpdatedTime>1446</UpdatedTime><BelongsToAQueue>tNO</BelongsToAQueue><ResponseByTime>0000</ResponseByTime><ResponseByDate></ResponseByDate><ResolutionOnDate></ResolutionOnDate><ResponseOnTime>1428</ResponseOnTime><ResponseOnDate>20100325</ResponseOnDate><ClosingTime>0000</ClosingTime><AssignedDate>20100323</AssignedDate><Queue></Queue><ResponseAssignee>1</ResponseAssignee><EntitledforService>tNO</EntitledforService><ResolutionOnTime>0000</ResolutionOnTime><AssignedTime>2337</AssignedTime><ClosingDate></ClosingDate><U_Tested>2</U_Tested><U_Comment>Updated via a web service through the DI Server2</U_Comment><U_Type>hmm</U_Type></row></ServiceCalls><ServiceCallActivities><row><LineNum>0</LineNum><ActivityCode>1</ActivityCode></row><row><LineNum>1</LineNum><ActivityCode>2</ActivityCode></row><row><LineNum>2</LineNum><ActivityCode>3</ActivityCode></row></ServiceCallActivities><ServiceCallInventoryExpenses><row><LineNum>3</LineNum><PartType>sep_NonInventory</PartType><DocumentType>edt_Invoice</DocumentType><DocumentPostingDate>20100325</DocumentPostingDate><DocumentNumber>1100001</DocumentNumber><StockTransferDirection>bos_TransferToTechnician</StockTransferDirection><DocEntry>96</DocEntry></row></ServiceCallInventoryExpenses></BO></BOM></GetByKeyResponse></env:Body></env:Envelope>

  • Program called via RFC

    hi,
    how to find out that a program is called directly i.e within the system <b>or</b> from an external system via <b>RFC</b>? Is there any function module or any other method to find out ?
    thanks in advance.

    You can find it by seeing the SUBMIT statement of the program..
    SUBMIT <PROG> .. via <RFC Destination>
    It indicates that we are calling that program through RFC...
    Reward if helpful....

  • Add service call via DIServer

    Hi, I try to use this simple xml:
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header>
      <SessionID>8D4BEA36-89A8-41C5-9481-DB696296B72E</SessionID>
    </env:Header><env:Body>
    <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS">
    <BOM><BO>
    <AdmInfo><Object>oServiceCalls</Object></AdmInfo>
    <Documents>
    <row>
    <customer>C42000</customer>
    </row>
    </Documents></BO></BOM></dis:AddObject></env:Body></env:Envelope>
    and get:
    Customer is not specified in service call [OSCL.customer]
    Whats wrong?  I tried to add custmrName, contctCode - nothing changed.

    Hi Vladimirov ,
    For the serviceCalls object, you need to use the property CustomerCode to set the customer for the service call:
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header>
    <SessionID>8D4BEA36-89A8-41C5-9481-DB696296B72E</SessionID>
    </env:Header><env:Body>
    <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS">
    <BOM><BO>
    <AdmInfo><Object>oServiceCalls</Object></AdmInfo>
    <Documents>
    <row>
    <CustomerCode>C42000</CustomerCode>
    </row>
    </Documents></BO></BOM></dis:AddObject></env:Body></env:Envelope>
    Please note "Subject" is also listed as a mandatory field. For more information please search for the object "ServiceCalls" in the SDK help centre.
    Hope this resolves the issue for you.
    Regards,
    Niall
    SAP Business One Forums

  • Debugging ECC FM called via RFC

    Hello experts,
    From a CRM Function Module, we are trying to invoke a custom ECC FM. On debugging, the flow does not go to the ECC module for debugging (although it returns the values). We tried several options like adding RFC param in su01, Activate Remote Debugging in ECC, sm51, sm50 etc. But none of this helps.
    Any suggestions on debugging would be most welcome.
    Regards,
    Nisha

    You can follow these steps to indirectly debug your ECC FM.
    1) Put an infinite loop in your ECC FM, say
         DATA TEMP.
         DO.
          IF TEMP = 'X'.
            EXIT.
          ENDIF.
         ENDDO.
      2) Execute your CRM FM in which your ECC FM is being called.
      3) Go to ECC, Transaction SM50 (Process Overview). You will see your FM's entry. Select your FM's entry then from the  menu select Program/Session>Program>Debugging. This will open your ECC FM in debug mode. Put value of TEMP as 'X' and continue debugging.

  • Occasional SOAP errors when making web service calls from C#

    We have a C# application making web service calls to RFCs (non-NCO, SAP 4.7, WAS 6.40) and occasionally getting the following error:
    The 'SOAP-ENV:Envelope' start tag on line '1' does not match the end tag of 'SOAP-ENV:Envel'. Line 1, position 34560.
    This error happens randomly and can occur, not occur, and occur again for the exact same call (same data, same web service call).  I anticipate that we might have a missing configuration on one of our application servers, but don't know where to tell BASIS to look.  Any ideas or other help would be appreciated.

    That's going to be difficult.  The random nature of the error makes it impossible to reproduce (so far) in our Development and Test environments.  Since the error is coming from the SAP side, I believe I would need a sniffer on each production application server in order to try to catch this and that would result in some very large log files.  Is there any log file or other SAP transaction that might already be capturing these failures?

  • Syncing an E-Mail with OI to a service call

    We use the OI-Addon very much in our company and are quite happy with it except one thing: you cannot connect an e-mail with OI to a service call or create one in OI.
    When you click on 'Save E-Mail as Activity' on the second tab you can choose from a list to which item the activity shall be connected to; from this list you can select almost everything (Invoices, Delievery Notes,... but also Articles etc.), but not service calls.
    Since we get many e-mails concerning service calls it would be a great feature to be able to connect the e-mails to the service call directly with OI - could this be realised in one of the next PL?
    It also would be great if there was a possibility to create a new service call via OI, e.g. like creating a new contactperson.
    Thank you & best regards
    Peter Zschech
    Edited by: Peter Zschech on May 18, 2009 3:56 PM
    No one out there with the same issue?

    Absolutely same issue!!. This is one of the major links to using SBO in a Support / HelpDesk environment - By Service Call / By BP.
    In general the OI can be extended in many ways to be much more powerful than just copying info to be visible in either Outlook or SBO.

  • Javascript web service calls fail after 10.1.5/11.0.01 updates

    * Update #2 - I've confirmed that we are seeing errors because the HTTP request is being made as a POST using 10.1.5/11.0.01 in Chrome/Firefox/Safari.  Accessing the same file in IE, the request is made using a GET.  Using Reader 9.5.0 in Chrome also uses a GET.  Can someone please explain why the HTTP request is being submitted as a POST following the 10.1.5 update?
    * Update - I have found in my web service log that it is failing with a message that the attempted POST method is not allowed. Could the Reader updates be causing this call to be made as a POST when it was previously a GET?
    I am using PDFs with Reader Extensions enabled that make web service calls via javascript.  These calls have been working correctly in multiple environments for months and only began failing with the latest updates.  After the latest Reader updates, these calls fail when using Chrome, Firefox and Safari. 
    Internet Explorer works correctly.  Saving files locally and opening them in Reader also works correctly.  It is only running 10.1.5 or 11.0.01 in these specific browsers where this issue occurs.  10.1.4 and 11.0.0 do not experience this issue in any browsers. 
    I have tried disabling Enhanced Security and updating Trust Manager to allow Internet Access from PDFs.  Neither change corrected the problem.
    Can someone tell me what may have changed in 10.1.5/11.0.01 that would cause these calls to start failing?
    The javascript at issue looks like this:
    var serviceKeyResult.rawValue = Get(serviceKeyUrl)
    The error we get is "Error: Error attempting to read from file: {URL}"

    Thanks for pointing that out.  The javacript was implemented by a third party, so I was not aware that the function wasn't part of the standard APIs.  I'll get more detail on what is happening inside that method.
    For now we have updated our web services to accept both a GET and a POST to avoid this issue.

  • Service call error

    HI all,
    Im new to Webdynpro Abap.
    As im working with service call with rfc , when im trying to test it im getting the error
    " WebDynpro Exception: IDs with Namespace Must Have the Format /<namespace>/<id>"
    how to i need to rectify this error??
    thanks&regards,
    Sree

    Hi sree,
    Please check this...
    WebDynpro Exception: IDs with Namespace Must Have the Format /<namespace>/<
    Getting Error :  WebDynpro Exception: IDs with Namespace Must Have the
    Cheers,
    Kris.

  • Parsley handling 2 service calls

    Hi,
    I am fairly new to Parsley.
    We have a Flex app which needs tons of data to display (gets many different resultsets of various kinds),
    so up until new were making 1 service call via REST-to-SOAP bridge,
    but it is often timeout (> 1 min),
    so we decided to split the call in 2 services (one is fairly light, and everybody needs that data,
    second is heavy and most users don't care about it).
    Results are displayed on the same tab.
    Can CallResponder process 2 service call results?
    Would it be done like that in Parsley:
    [CommandResult (type="resultset1"]
    protected handleResult1(obj1:Object) : void {,,,}
    and:
    [CommandResult (type="resultset2"]
    protected handleResult2(obj2:Object) : void {,,,}
    Can one Command handle 2 resultsets?
    Any suggestions?  Code samples?
    Please advise.
    There is nobody else around me who have done something similar.
    Using Flex 4.6 & Parsley 2.4
    Thank you in advance,
    Oleg

    Thanks Julie.
    I tested this and you are correct: if no serial number is entered into the service call then I am able to add it. We could log the serial number into the subject or remarks however the problem with this is that it will not allow us to accurately track service calls by individual products (The Service Calls tab on the Equipment Cards will not show any data).

  • Jobs not getting Scheduled when it is called from RFC

    Hi Everyone,
    I have Functional module in system1 which in turn creates a background Job, but when i call this Function module from System2 using RFC then the background job is not created. THought i debugged and the Function module on system1 is called successfully with right input parameters. M i missing anything ? Please advice
    Regards,
    Nikesh Kumar

    Hi Chen,
    Thanks for the reply. Actually the main problem is not with how the Background job is getting executed. Actually my function module schedules are job in system1 , but if the same func module is called via RFC from other system, it gets called successfully with same inputs (checked in debugging), but the background job does not get created.
    Regards,
    Nikesh Kumar

  • Ignoring MESSAGE while running via RFC

    Hello everybody,
    when I start a FM (or what ever) it will display an MESSAGE (Type: I) as Information. The User must quit the message, than the function goes to the end.
    When I call this FM via RFC (from an other SAP) the MESSAGE would not display an the function goes automatically to the end.
    How can I reach that the MESSAGE would be display by calling via RFC.
    Thanks.
    Thomas

    Hi,
    I dont think it is possible to display a message in RFC.
    Messages are popped in the current system in RFC the system is changed
    Sameena
    Message was edited by: sameena attarwala

  • JCO RFC Provider: "Bean not found" when calling EJB from ABAP via RFC

    Hello,
    I'm having trouble calling an EJB in a CE 7.1 system from ABAP via RFC. I'm trying to use the JCO RFC Provider service, which mean that I want to expose an EJB so that it can be called via Remote Function Call.
    I have documented everything, including the code and the deployment descriptors I wrote, in this thread in the CE forum: Jco RFC Provider: Bean not found
    If there's any chance you can help, please do me a favour and look into the problem.
    Thanks a lot!
    Thorsten

    Hi Vladimir,
    Thank you very much, your help was immensely valuable.
    I just had to add the function declaration to the Home Component interface, everything else was correct, and now it works.
    Cheers,
    Thorsten

Maybe you are looking for