IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

SAP BC problem calling BAPI

  • 1.  SAP BC problem calling BAPI

    Posted Fri September 20, 2002 11:43 AM

    Hi,

    I am trying to call a BAPI from within a flow (using the SAP Business Connector). Since this is the very first time I am trying to do something like that (accessing a SAP system via BC) I started with something very simple.

    The first step was, that I started the Administrator-tool and under SAP > Lookup > RFC Signature > RFC Test I tested a BAPI function called “BAPI_SALESORDER_CREATEFROMDAT1”. I had to set several fields (e.g. DOC_TYPE, SALES_ORG, …) before everything worked, ie. I press the “Test Function” button and I get the newly created SALESDOCUMENT.

    Now that I knew which flields were required I used the “SAP BC –> SAP button” (in SAP > Lookup > RFC Signature) to create a new flow in the BC. There I entered all the variables required and started the flow.

    Well, I got the following error message and the flow aborted:
    com.sap.mw.jco.JCO$Exception: RFC_GET5, GET ID=0336 LINE=472

    The interesting thing is, that the order is created, I just don’t get a result back in the BC. Since the flow was created by the Admin tool I am not so sure what went wrong…

    Any help/ideas would be greatly appreciated!

    Holger.


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: SAP BC problem calling BAPI

    Posted Fri September 20, 2002 02:54 PM

    This is a very common problem. This happens because the browser and the wm developer presents the empty values differently.

    Try setting some of your input variables to empty strings by clicking on the blue arrow.

    Some BAPIs also need the return variable to exist in the pipeline. So if the BAPI signature is returning a structure then initialize the structure to empty values.

    Another thing you can try is that when you run the flow from the browser, just check the checkbox for “Include empty values”.

    Atleast one these three should solve your problem. BAPIs just dont behave similarly. What works for one may not for another.

    Rupinder


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 3.  RE: SAP BC problem calling BAPI

    Posted Fri December 06, 2002 06:33 PM

    Thanks Rupinder, this information saved my life:

    > Another thing you can try is that when you run the flow from the browser, just check the checkbox for “Include empty values”.

    Greetings,
    Gunter


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods