Problem for Bapi Call  in Integration Scenario

I am creating an Integration Scenario at Design time which can be used during configuration time.In the Int. Scenario, I am using a Int Process(BPM). I am making a synchronous call to BAPI from my BPM. How can this be implemented in Integration Scenario.
So how can I send a input message from BPM to BAPI and then take further steps only after getting response from BAPI. Is there any way to define synchronous Action in Int Scenario??? And another point to be noted is that we are not using any communication channel to send the message from BPM or receive the response in BPM. We have only a receiver communication channel which receives the message for the BAPI.
So please help in solving this problem.

> Thanks for ur reply. I am trying to follow the suggestion given by u. U have specified that the BAPI  in R/3 system has to be inserted as an application component. But I am unable to do that. I am using IDES system for the BAPI,but in the selection screen for the Application Component we have only instances of installed product in the SLD. So how to find out the application component to be imported.
What you need to do is, first of all your import the BAPI (RFC) into XI system. (I hope you must be knowing how to import the RFC & IDOCs into XI system). Make sure this BAPI is remote-enabled under attribute TAB in R3 ---> SE37.
Now this imported BAPI (RFC) will be used in your message interfaces and this message interface will be used inside ACTION. And then you can use this action in your Integration Secnario as mentioned in the picture above in my first reply.
Sorry for the confusion, you need to R3 business system name rather inserting the BAPI as a business system under 3rd swim lane.
> And another problem is that I have to create an action for in the application Component containing BAPI and then it should be connected to the action in BPM for interaction. I have created one action for this and given the BAPi as both outbound and inbound interface. Is this the proper way to do this???
As mentioned above, after you import the BAPI (RFC) in XI you can create the messge interface. There should be two Message Interfaces. One for sending the request and other for receiving the response message.

Similar Messages

  • Minimal Authentication for BAPI calls

    We use SAP Jco Library to connect SAP systems in our applications. Within the aplication we make BAPI calls to the SAP system for various operations. A typical BAPI calls we make are BAPI_DOCUMENT_CREATE, BAPI_DOCUMENT_GETLIST, BAPI_EQUI_GETLIST etc.
    For these BAPI calls it is must that the user needs SAP_ALL and SAP_NEW profile added to his profile. I would be interested to know what is the minimal profile the user needs to make these BAPI calls?
    Is there a document/link which talks about the minimum roles\profile needed for different BAPI calls byt the user.

    there's a couple of notes on that:
    [452508|] describes RFC-connects coming from a portal.
    [129795|] does the same for connect via Session Manager
    ... there are a couple of others - a quick search in SMP will reveal the others.
    as for your BAPIs: obviously you will need the authorizations for whatever the BAPI wants - some BAPI's require transaction code, several organisational values - e. g. creating CS-orders uses most of the I_* objects as well as the t-code for IW31.
    But that is about all - you do not need SAP_ALL and/or SAP_NEW - in fact: try to avoid it - reduce the RFC-users to what they need and no more. Keep to using BAPIs for your development, as they are much more trustworthy (securitywise) than other RFC-FM's/methods.
    In the SDN security forum are some sticky threads where you might find additional information in that direction. Its worth a look, Julius goes to great length of pain to make them interesting.

  • Yellow transaction sequence block for Bapi call

    I am beginning upgrading MII from version 12.0 to 12.1.  When I imported my MII project to version 12.1, I get one BAPI call sequence that is yellow and the transaction does not execute.  It works fine in version 12.0, but something is wrong in version 12.1.  It is not a custom transaction. 
    The JRA Session Action is called JRA_Start_Session and when I try to execure the transaction, I get the following Error:
    [ERROR] [JRA_Start_Session] Link ('JRA_Start_Session.Language' [Assign] from "Transaction.Language") execution threw an exception. Exception: [Variable does not exist: JRA_Start_Session.Language]
    [INFO] Transaction Termination Request: [User: MSCOTT] [Reason: Variable does not exist: JRA_Start_Session.Language] [Message: Variable does not exist: JRA_Start_Session.Language]
    [INFO] Statistics [Load = 67 ms msec, Parse = 67 ms, Execution = 2 ms, Total = 81 ms]
    Both the new version and the old version of MII are pulling for the same data sources, so I'm not sure why 12.0 would work and 12.1 won't.  Maybe a known bug??
    Any help would be greatly appreciated!

    Thanks, Mike.  I am waiting on some help to try the steps you listed. 
    In further testing, we have been able to get some of the data from the BAPI, but not all of it.  We have also noticed that some of the data paths have changed.  For example, the "components" variable that was located in this location in version 12.0:
    Is located here after importing the project into version 12.1:
    Does this information mean anything to you?  I did find some forum posts about JRA issues related to NW 7.1.6 and MII 12.1.8.  What I'm seeing is that to use MII 12.1.8, we have to roll back to NW 7.1.5.
    Can you tell me if this is still accurate?
    [Re: JRA "Execute Function" Option in MII]

  • Word VBA Macro problem with adding rows to table for BAPI call

    Hello all,
    I have code in Word macro which is reading file from the disk and converting it to binary. This binary should be inserted in the internal table (Dim As object) for further posting. Code is modified from the note 945682.
    Here is the code:
    Sub Read_File(FileNameFull As String)
    Dim oBinaryDataTab As Object
    Dim oBinaryDataRow As Object
    Dim lBytesToRead As Long
    Dim iNumChars, i As Integer
    Dim s1022, s2044, sX As String
    Dim fs, f, ts As Object
    Dim ReadFile As String
    ' Actually does the work of uploading the document in 1022 byte pieces.
    ReadFile = 0
    Set fs = CreateObject("Scripting.FileSystemObject")
    Set f = fs.GetFile(FileNameFull)
    Set ts = f.OpenAsTextStream(1, -2)
    lBytesToRead = f.Size
    ReadFile = f.Size
    Do While ts.AtEndOfStream <> True
    If lBytesToRead < 1022 Then
    iNumChars = lBytesToRead
    iNumChars = 1022
    End If
    s1022 = ts.Read(iNumChars)
    s2044 = ""
    For i = 1 To Len(s1022)
    sX = Hex$(CByte(Asc(Mid(s1022, i, 1))))
    If Len(sX) = 1 Then
    sX = "0" + sX
    End If
    s2044 = s2044 + sX
    Next i
    Set oBinaryDataRow = oBinaryDataTab.Rows.Add
    oBinaryDataRow("LINE") = s2044
    lBytesToRead = lBytesToRead - iNumChars
    End Sub
    But on the row "Set oBinaryDataRow = oBinaryDataTab.Rows.Add" code just stopped to work.
    Can somebody give me a hint how to proceed?
    I also tried to Dim oBinaryDataTable As Table and oBinaryDataRow as Row with the same result.
    oBinaryDataTable will be used as to post file to SAP system without GUI FTP connection. Because of that it must be converted to binary form.
    P.S. Message to Moderator: Please, be so kind, and put the message in the proper forum if this is not this one.

    Self Resloved

  • Problem regarding BAPI call from a webdynpro applications

      We are trying to call a BAPI in R/3 system from a webdynpro application through the standard method. But we are getting some problems in JCO settings. We already wasted so much time in solving those problems. Is there anyway where i can access BAPI from Webdynpro application.

    Hello Anna,
      You can do it by using SAP Java Connector API's in the implementation of the Webdynpro application. You can refer to the sample programs for JCO at and download the latest version of SAP JCo in that install those files as per the installation document in the downloaded zip. The downloaded zip contains information about JCo APIs and sample programs.
    Hope this will solve your problem.
    Best Regards,

  • Windows 8 - problems for accepting calls/emitting ...

    Hi everybody,
    First, I'm not a native English speaker, so sorry if I do some mistakes...
    I have a big problem on my Skype. I tried many times to solve it, but without succes. The problem is, whenever I want to call someone, or to answer to a call... it does not work ! I have to call again and again again... till it works. Sometimes it works at the first call, but sometimes I have to call like 15 times in a row. Whenever it's not working, I can't hang up or do anything. All the buttons aren't working....
    I have the latest version. I uninstalled it and reinstalled it a lot of times.
    Thank you

    I'm still waiting for an answer !

  • Problem with BAPI CALL in BPM(with in a loop)

    Hi All,
    I have a scenario where i invoke a BAPI by name BAPI_IPAK_START which pushes some data from Delta Queue to the Info Object.After invocation, the BAPI returns a request ID.In order to get the status of the request which is created by the previous BAPI, i invoke another standards BAPI BAPI_ISREQUEST_GETSTATUS with the previous request ID(the ID that is returned by BAPI_IPAK_START).i hav to check for the status until the request is fulfilled.inorder to do that,i inserted the BAPI_ISREQUEST_GETSTATUS in a loop with the condition on XPATH variable of the response that is returned by the BAPI_ISREQUEST_GETSTATUS.TECHSTATUS is the XPath variable name of the response of the  BAPI_ISREQUEST_GETSTATUS.The loop has to b executed until it's value is G.when i activated this BP,an error code with 99 is returned in my sxi cache.the work flow is not getting generated.the error is displayed as
    'TECHSTATUS' is not a component of data object 'PAYLOAD'.
    Any help wud b appreciated.

    >>an error code with 99
    check cache refesh and tell me if it gives any error!?

  • How to monitor messages at BAPI side of integration scenario

    Hi all,
    In scenarios like Soap -> Abap proxy (XI Adapter), I can monitor both sender and receiver messages on sxmb_moni (on XI side and on ECC side). When the scenario is Soap -> BAPI (RFC Adapter), how can I see the messages in the ECC side?

    If it is an RFC so it resides at JAVA STACK so u cant see the message at ECC end,Proxy and IDOC u can see there message at ECC side they are on ABAP Stack,u can only see message in SXMB_MONI and in RWB for RFC Adapter.
    Reward points if Helpful

  • Problem for ResourceBundle calling from jsp file

    Hi, I am using WebLogic 5.1 in Solaris 8
              I use java.util.resourceBundle to get the information from a .properties
              I put the properties file in /opt/weblogic/myserver/serverclasses
              When I call the properties file from EJB, It seems to be OK
              But when I call the properties file from JSP using the same script, It said
              the properties files not found
              The Error message is:
              <ServletContext-General> Servlet fail
              ed with Exception
              java.util.MissingResourceException: Can't find bundle for base name
              locale zh_TW
              at java.util.ResourceBundle.getBundleImpl(
              at java.util.ResourceBundle.getBundle(
              at weblogic.servlet.jsp.JspBase.service(
              PLease Help!!

    open dataset file for input in text mode.
    check sy-subrc = 0.
    while sy-subrc = 0.
      read dataset file into wa.
      if sy-subrc = 0.
      append wa to itab.
    close dataset file.
    PS: check also the F1-help for open, read and close statements!


    Hi all,
    when creating sales order via BAPI_SALESORDER_CREATEFROMDAT2 in the testing mode,
    it returns a sales order no successfully.
    But when a veiw it via VA03, the system says that this sales order doesn't exist.
    What's wrong? Thanks

    Hi Macy,
    The Sales order will not be saved in the database till the time you call the bapi from an ABAP Program.
    Also you have call the FM BAPI_TRANSACTION_COMMIT after the calling the BAPI BAPI_SALESORDER_CREATEFROMDAT2.
    If you are simply testing the BAPI from SE37, no Sales Order will be saved in the database tables and hence will not be seen in VA03. Testing BAPI from se37 is simply a simulation of the sales order.
    So create a test program, call the bapi
    BAPI_SALESORDER_CREATEFROMDAT2.. pass all the required data.
    Then if sy-subrc = 0
    It will work...
    Pls. reward appropriate points

  • Problem In BAPI Call

    Dear All,
    error is generated while calling Following FM
    invalid parameter PO_ITEMS.
       DATA : BEGIN OF i_poitem OCCURS 0.
            INCLUDE STRUCTURE bapiekpo.
    DATA : END OF i_poitem.
    PARAMETERS p_ebeln TYPE ekko-ebeln.
        purchaseorder                    = p_ebeln
      ITEMS                            = 'X'
      ACCOUNT_ASSIGNMENT               = ' '
      SCHEDULES                        = ' '
      HISTORY                          = ' '
      ITEM_TEXTS                       = ' '
      HEADER_TEXTS                     = ' '
      SERVICES                         = ' '
      CONFIRMATIONS                    = ' '
      SERVICE_TEXTS                    = ' '
      EXTENSIONS                       = ' '
      PO_HEADER                        =
      PO_ADDRESS                       =
      PO_HEADER_TEXTS                  =
       PO_ITEMS                         = i_poitem.
      PO_ITEM_SCHEDULES                =
      PO_ITEM_CONFIRMATIONS            =
      PO_ITEM_TEXTS                    =
      po_item_history                  = i_poitem.
      PO_ITEM_HISTORY_TOTALS           =
      PO_ITEM_LIMITS                   =
      PO_ITEM_CONTRACT_LIMITS          =
      PO_ITEM_SERVICES                 =
      RETURN                           =
      PO_SERVICES_TEXTS                =
      EXTENSIONOUT                     =

    uncomment TABLES
    purchaseorder = p_ebeln
    * ITEMS = 'X'
    * SCHEDULES = ' '
    * HISTORY = ' '
    * ITEM_TEXTS = ' '
    * HEADER_TEXTS = ' '
    * SERVICES = ' '
    * SERVICE_TEXTS = ' '
    * EXTENSIONS = ' '
    * PO_HEADER =
    * PO_ADDRESS =
    PO_ITEMS = i_poitem.
    * po_item_history = i_poitem.
    * RETURN =

  • Error in Integration Scenario: No software Component version exists

    Hi Experts,
    We have external product and software component like Product "Project Management" we have imported the CIM content for it
    Now when we create an Application Component for the same in Integration Scenario in ESR (PI7.1)
    while trying to do right click --> Edit Action it gives Error
    "" No imported software component version exists for product"
    Also note that it allows us to Add new Action there
    that is we can right click --> Add action
    Kindly help with your suggestions to resolve this << Moderator message - Everyone's problem is important >>.
    Edited by: Rob Burbank on Nov 10, 2010 3:56 PM

    Hi Experts,
    Tried the steps given in SAP Note: 768148
    Still it is not resolved.
    I appraiciate if any one suggest some more options to resolve this.

  • SNC login for BAPI active X  from VB.

    hello dear friends,
    Needs some advice, we are calling Sales order bapi from VB and due to SOX. we are implementing SNC functionality and so needs to enable SNC for BAPI call too.
    I am new to BAPI etc.. so don't know where to being from. Username/password is hardcoded in VB in active x control.

    Create the Username in SAP as CPIC type and NOT Dialog User(ask your basis team to do this).
    Yes, you can hardcode username and Pwd in VB . It will work pretty straight forward. I have used this earlier.
    Then you call the BAPI from SAP in your VB code.
    Hope this answers your questions.

  • ALE/IDOC and RFC/BAPI Integration Scenarios with SAP DS for ESA v3

    we are planning two PoCs of Integration Plattforms. One of our major requirement set is SAP Integration into our existing SOA.
    Because we also have R/3 4.7 Systems in production, we are planning to test ALE/IDOC and RFC/BAPI Integration scenarios with these Integration Plattforms.
    My question is:
    We are looking for are smart solution to get a SAP Test Environment, where we can test ALE/IDOC und RFC/BAPI Integration scenarios.
    It is possible to do this with SAP DS for ESA v3 or shall we better use IDES for that purpose?
    Best regards,

    Hi Abhishek,
      This is our scenario. We are doing an integration of SAP HR r/3 system with the CRM system. We need housing information details of the employees which we have in custom infotype 9310 in SAP HR system and we need those details in the CRM system. So am planning out for an ALE/IDOC approach for the integration and gonna  maintain the 9310 details in a custom table. In the CRM system, we gonna build a BOL layer for accessing the 9310 details. Also i'm preparing a HLD for this process. I wanna read and go through few same HLD's before i submit my proposal to my client. Please suggest me and help me out.
    Thanks in advance.

  • Problem facing during BAPI call for an inbound interface.

    I have requirement where in i need to make a BAPI call from SRM system using RFC adapter.
    After importing the BAPI(Z_INV_REF_PO) in the Integration Repository the structure looks to be a follws,
    2.Response and
    3.Exception (fault) Message types.
        In my BPM i did a transformation for my source structure with BAPI request. But while doing a BAPI call it throws me Application error as follows,
    RFC adapter is working fine.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
    - <SAP:Error xmlns:SAP="" xmlns:SOAP="" SOAP:mustUnderstand="1">
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="urn:sap-com:document:sap:rfc:functions">Z_INV_REF_PO.Exception</SAP:ApplicationFaultMessage>
      <SAP:Stack />
    Please help me out on this. Itz very urgent

    As the error is Applcation_error, the data reached the target system but the BAPI call fails. So you mignt not be providing all the mandatory fields to the BAPI.
    Perform a standalone testing of your BAPI, with the data being passed from XI See if the BAPI call is successful..
    Hope this helps you.
    Siva Maranani.

Maybe you are looking for

  • IWorks in English on non-English OS

    I downloaded the iWorks trial and I've ordered it from the store. I would like it in English despite the fact that my OS is in French. Is there some way to do this or will iWorks insist on remaining in the language of the OS ?

  • How to call stored function in my jsp

    how to call stored function in my jsp? please give me a example.

  • HR ABAP FAQs - Part 6 (ans needed)

    Hi, 1. In which feature T-Code's are maintained? 2 How to know the user authorizations 3  Position inherits the task of which object 4 How do you transfer data from PA to PD? 5 RHINT30 Used for what? 6 What is the use of control record 7 Are you able

  • Complex types returned from web services

    I'm having problems getting values from a complex type from a CFC web service. Are there any tutorials that show you how this is done? The only tutorials I've seen have been returning simple types. I have tried everything I know, which is not a lot I

  • Some workstations slow to open files on 2008r2 share?

    We have been moving from Novell to Microsoft for a couple years company wide.  Until now, other than outlook, the apps were all local with the data being moved from a Novell server to a 2008R2 server.  A week ago we moved our final drive which was th