BAPI in BPM

hi,
i am working on a scenario where i need to use BAPI_ACC_DOCUMENT_POST
to post accounting documents.
process has to be created where 2 text files are read
1. Header lines(s)
2. Line Items(s).
In the process i need to send the data to the BAPI with 1 header line and corresponding line items. this proces must be repeated for every header line.
line items basically have to passed as 2 table parameters (ACCOUNTINGGL and Currency).
Please help.
Regards,
Tarun Bahal

This can be done but you will have to merge the two files before mapping to the bapi.
I have only used the bapi with a single file...
Most of the header is made up with constants when I did this...

Similar Messages

  • Xml to RFC(BAPI) using BPM

    hi
    i have a scenario that is XML file TO RFC
    i am new to XI, can you please help me in doing the  configurations in
    1)   XI
    2)   R/3)
    3)  IR
    4)  ID
    if you have screen shots of this thing please forward it to me
    id:[email protected]
    regards
    Pradeep P N

    Hi,
    it's a standard non BPM scenario
    (you can find many weblogs like this)
    the only different thing is the RFC signature import
    (inside repository)
    and the use of different channels (file and RFC)
    you can find many examples in my XI FAQ
    (document section)
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Using of BAPI_TRANSACTION_COMMIT in BPM

    Hi,
    I have a scenario where I will be changing salesorder using BAPI_SALESORDER_CHANGE and as we know it will not commit automatically. So I am trying to call BAPI_TRANSACTION_COMMIT synchrnously in BPM after  first bapi.... I see that still the values are not getting updated. Is calling commit bapi in BPM directly works?
    Could any one help me to solve this issue?
    Thanks,
    Yaseen Mahammad.
    Message was edited by: Yaseen Mahammad

    Hi Yaseen,
    Please can you look at the following paramter of the Receiver RFC adapter: Commit Control for Individual BAPI Calls
    If you want to use this communication channel to call BAPIs as remote-enabled function modules that change data in the database, set the indicator.
    From SAP HELP:
    If executed successfully, the transaction is written to the database by calling the function module BAPI_TRANSACTION_COMMIT explicitly. If an error occurs, the transaction is rolled back by BAPI_TRANSACTION_ROLLBACK.
    The result is determined by the value of the field TYPE in parameter RETURN. If successful, the tables are empty and the values “”, “S”, “I”, and “W” are displayed. All other values are regarded as errors.
    To change this setting, set the indicator BAPI Advanced Mode.
    In the Successful RETURN-TYPE Values table, enter the values that should lead to a successful execution.
    Regards
    Vijaya

  • Mulitple Message Transformation BPM Problem

    I am getting a map failure exception because of the following reason (see below) and am not sure what to do about it. 
    I am a BPM process and have a received a populated Request Message, mapped the Request Data into a Bapi request (via BPM Transformation), Synchronously called the Bapi (via BPM Send), and next mapped the data from the Bapi Response and Original Request into a single Response message (2 messages into 1 message).  I am getting a map failure when I am sending the two messages (Bapi Response and Original Request) into the Map process.  It appears as the original Request data is lost (populated data is gone)and this is why the map is failing.  I have tested the map independently and have no problems.  Any suggestions?

    Hi Manoj,
    Have you entered the correlation correctly.. (the condition for collecting IDOCS, a primary key in most cases)
    When u r collecting Idoc Debmas, ( Customer Master i believe), u should have the mappings as IDOC XSD to IDOC and then IDOC to txt conversion..  Am I right ?
    inbound interface: target structure (txt)
    outbound interface : idoc
    abstract interface : for collecting multiple  idocs..
    mappings would be like this :
    IDOC to IDOC XSD and
    IDOC XSD to Txt structure .
    Things to look out for while developing the interface:
    Occurences and BPM data, like selecting multiline and defining correlation.
    You should recheck the container for any discrepancies.
    I am sending you two links (as there's some information missing, to identify your problem)
    IDOCs (Multiple Types) Collection in BPM by Pooja Pandey:
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
    and Collecting IDocs without using BPM by Stefan Grube:
    /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm
    Check the first one, You will get some idea, where there might be a problem.
    You can also do the same without using BPM as Stefan has so elaborately explained.
    Alternatively, you can also refer to this URL :
    www saptechnical com/Tutorials/XI/CollectMultipleIDocs/Collect1.htm
    Happy Developing..
    regards,
    Abhi..
    Edited by: Abhisek on May 10, 2009 12:26 AM
    Edited by: Abhisek on May 10, 2009 12:29 AM

  • Need to create sale order from the flat file & mail has to be sent

    Hi Experts,
              I have a requirement to create a sale order from a flat file and once the oder is created, mail has to be sent to customer as well as to internal user with the order details. I want to know how this process can be implemented and what adapters are needed to execute this.
    it would be very helpful, if i get an step-by-step procedure.
    Points assured for any helpful answers.
    Thanks in Advance
    Jai

    HI Jai,
    You need to create two interfaces as file will be sending the Sales oreder details that you need to capture in IDOC or RFC and then have to trigger to create the sales order. For this Standard BAPIs are also available.
    These RFC or BAPIs will response with Sales order details that you need to divert to Mail adapter with the use of BPM and also have to go for Async to Sync bridge.
    File -
    >XI (BPM) ---> BAPI/RFC  (Request)
    MailAdapter <- XI (BPM) <--- BAPI/RFC (Response)
    For this refer below links for step by step
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] - File to Mail
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm - Walk through BPM
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm - Schedule BPM
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi - Use of Synch - Asynch bridge in ccBPM
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] - Use of Synch - Asynch bridge in ccBPM
    If you will use IDOC then In IDOC inbound processing you need to trigger for Sales order creation and then have to send the Sales Order generated IDOC as an Outbound to Mail Adapter
    Flat file -
    > XI ---> IDOC
    IDOC -
    > XI ---> Mail
    This will be bit easy scenario to develope as compare to using BAPI with BPM
    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping - Any flat file to any Idoc
    configuring IDOC-XI-Mail scenario using following web-log:
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/sravya.talanki2/blog/2005/08/18/triggering-e-mails-to-shared-folders-of-sap-is-u - Triggering Email from folder
    Thanks
    Swarup

  • Configuration for Message Exchange in integration process

    Hi,
    I'm a beginner in SAP XI (7.0) and trying to develop an integration process for a purchase order.
    There will be sent a message via Http to a receiver with Ftp.
    So for the integration process are two communication channels necessary which will be defined in the integration directory:
    One for the Sender: Http.
    One for the receiver: Ftp.
    Within the integration process are some sender and receiver steps with Bapi's.
    My questions are:
    - how and where could these sendings to a Bapi (send step) and from a Bapi (receive step) be configured?
    - is it possible at all to configure a communication channel for these sending and receiving steps within a integration process?
    Thanks for your help!
    Zoran

    Hi Zoran
    While using BPM as well you will need to have communication channels.
    BPM - > BAPI request.
    BAPI response -> BPM
    both sender and receiver channels are required for you.
    1.Demand for a material is send via HTTP to XI
    2.XI does a material availability check to the SAP system
    3.A material reservation has to be done if there are any materials available in the stock (inventory) to the SAP system
    4.If there is no material available a purchase order to a supplier (no SAP) has to be done via FTP
    5.Parallel to the purchase order a purchase order confirmation is send to the the SAP system.
    6.The supplier sends a purchase order confirmation to XI
    7.The XI sends a purchase order confirmation to the SAP system
    If i understood your requirement correctly and you want to use BPM. You need to do following in BPM
    Receivestep1(receive HTTP post) -> transform1(mapping to BAPI request) ->send step1(Send BAPI request to SAP) -> Receivestep2 (Receive BAPI response from SAP) -> Transform2 (Map BAPI response to File)-> send2(File post to non SAP supplier)-> Receive3(receive purchase order confirmation)-> transform3(map to SAP purchase order confirmation)-> send3(Purchase order confirmation to sap)
    You need no of channels
    1.Receive 1 - (HTTP)
    2.Send1/Receive2 - (RFC)
    3.Send2 - (FTP)
    4. Receive3( HTTP or FTP)
    5. For purchase order confirmation.
    Thanks
    Gaurav

  • PCK :: Configuration Example: Message Exchange

    Hello experts,
    I has a problem with the configuration example from the SAP help to the partner Connectivity Kit.
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/frameset.htm
    I have built up everything like in the description - two PCK (party_A and party_B) and XI (party_XI).
    In message monitor of the first PCK (party A) stands that a message is explained successfully and second with error.
    Status: waiting.
    Details -
    audit log:
    Success Delivering to channel: message_an_xi
    Error Exception caught by adapter framework: String index out of range: 0
    Error Delivery of the message to the application using connection AFW failed, due to: String index out of range:0.
    Message Data:
    Error Category XI_J2EE_ADAPTER_ENGINE
    Error Code GENERAL_ERROR
    Wo und wie muss ich Fehler beseitigen?
    Has already explained jemang this example?
    Is it executable?
    Thank's.
    Regards,
    Alex

    Hi Zoran
    While using BPM as well you will need to have communication channels.
    BPM - > BAPI request.
    BAPI response -> BPM
    both sender and receiver channels are required for you.
    1.Demand for a material is send via HTTP to XI
    2.XI does a material availability check to the SAP system
    3.A material reservation has to be done if there are any materials available in the stock (inventory) to the SAP system
    4.If there is no material available a purchase order to a supplier (no SAP) has to be done via FTP
    5.Parallel to the purchase order a purchase order confirmation is send to the the SAP system.
    6.The supplier sends a purchase order confirmation to XI
    7.The XI sends a purchase order confirmation to the SAP system
    If i understood your requirement correctly and you want to use BPM. You need to do following in BPM
    Receivestep1(receive HTTP post) -> transform1(mapping to BAPI request) ->send step1(Send BAPI request to SAP) -> Receivestep2 (Receive BAPI response from SAP) -> Transform2 (Map BAPI response to File)-> send2(File post to non SAP supplier)-> Receive3(receive purchase order confirmation)-> transform3(map to SAP purchase order confirmation)-> send3(Purchase order confirmation to sap)
    You need no of channels
    1.Receive 1 - (HTTP)
    2.Send1/Receive2 - (RFC)
    3.Send2 - (FTP)
    4. Receive3( HTTP or FTP)
    5. For purchase order confirmation.
    Thanks
    Gaurav

  • Designing the scenario of multiple BAPI call in a loop in BPM

    All,
    I need some help in designing this scenario. I do not have the luxury to write a custom BAPI. Here is my scenario. A typical async>sync>async with little modification
    1. Async call to BPM with input payload
    2. BPM calla BAPI_SALESORDER_GETLIST with customer number and sales organization from input payload and returns a list sales order items (Sync)
    3. I need to call the BAPI_SALESORDER_GETSTATUS for each sales order number that I got from the first call (Sync?). Not sure how this has to be designed
    4. Transfer the  data through HTTP adapter (Async)
    I am able to perform step 1, 2 and 4 (of course only line item data). I need some pointer help on how to incorporate it in step 3 of BPM.

    3. I need to call the BAPI_SALESORDER_GETSTATUS for each sales order number that I got from the first call (Sync?). Not sure how this has to be designed
    for this the BPM should have a block after the Sync send.......in the block have your send step....the mode of the block will be ForEach....
    Check this blog for more info: /people/milan.thaker/blog/2008/08/05/modes-in-block-step-of-bpm
    Check this similar example from help: http://help.sap.com/saphelp_nw70/helpdata/en/11/13283fd0ca8443e10000000a114084/content.htm
    Edited by: abhishek salvi on Jul 1, 2009 10:57 AM

  • Is it possible to compose XML in BPM from responses of multiple BAPI calls?

    Hi guys!
    I want to send into BPM an XML document, which will be parsed and it will call some BAPIs more times. And I need to get response. Is it possible, to compose an XML document from these BAPI return codes to be sent back as response? Concretely I will use SOAP->XI->SAP and response SAP->XI->SOAP...  I will use it as asynchronous call..
    Thanx, Peter
    Message was edited by: Peter Jarsunek

    Hi Peter,
    It depends:
    - what kind of bapi is it? (does it have some sort of number?) like delivery number or something else?
    if not you'll have to add something
    so you can correlate your bapi with bapi response
    if you want to know which response corresponds to which bapi call
    but you can do it with a bapi wrapper
    >>>>Is it possible, to compose an XML document from these BAPI return codes to be sent back as response?
    you you can collect message in a BPM - standard pattern
    (but remember about the "correlation")
    Regards,
    michal

  • BPM Message Mapping: "Cannot produce target element /ns1:BAPI...."

    Hi,
    A scenario File - BPM - BAPI call was developed, as described in blog 'RFC scenario using BPM' cfr. link
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    The Mapping is as follows:
    MT_EDB_MATERIAL_REQ (1:1) --> BAPI_MATERIAL_EXISTENCE_CHECK (1:1)
    MATNR (1:1) -
    > MATERIAL (1:1)
    When executing the scenario, an error appears in the trace of SXMB_MONI, step 'Request Message Mapping'
    Cannot produce target element /ns1:BAPI_MATERIAL_EXISTENCECHECK. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd....
    I tried the following:
    1) import the XML-file into the testmapping: executed successfully
    File:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_EDB_MATERIAL_REQ xmlns:ns0="http://agfa.com/SD_EDB">
    <MATNR>15P6X</MATNR>
    </ns0:MT_EDB_MATERIAL_REQ>
    2) Removed the mapping on node level and left mapping only on element level (material): same error
    3) Activated the message mapping, interface mapping, determinations, etc again...:same error
    4) Removed the Interface Mapping and created it again: same error
    5) Compared the version ID of the Interface Mapping/message mapping in the Monitor trace with the version ID of the IR and saw that there was a difference.
    After the CPA full cache, SXI_CACHE full refresh and object refresh in the IB Administration, the differences remain, and also the error....
    Anybody an idea ?

    Hi
    >>>Cannot produce target element /ns1:BAPI_MATERIAL_EXISTENCECHECK. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd....
    The error clearly says that one of the occurrence value  for the target node mentioned is not coming from the source during mapping. The easiest way to solve the problem is as follows
    <b>
    First Execute the mapping as pointed out by "Raj" and the following steps.
    </b>
    1. Goto the Mapping Editor
    2. Double click on the target node that is causing the problem here BAPI_MATERIAL_EXISTENCECHECK.
    3.  Right click on the same node and select "DisplayQueue".
    4. View the Queue.
    5. YOu will find "Suppress" entries, which means a value is expected but no value is coming in.
    6.Go from right to left and check each node in the mapping and you will be able to trace where the suppress node comes from and take appropriate action
    regards
    krishna

  • File to BAPI with out BPM

    can we do File---> BAPI with out BPM

    Which version of XI you are using??
    XI 3.0 or PI 7.0?? and SP for it?
    Reffer this File to RFC Scenario without BPM
    FOr solution reffer this : File - RFC - File without a BPM - Possible from SP 19.
    Thanks
    Farooq.

  • FILE-BPM-MULTIPLE BAPIS

    HI EXPERTS,
    I AM FRESHER IN BPM.
    HERE IS A SCENARIO I HAVE TO IMPLEMENT.
        A TEXT FILE(SALES) WAS RECEIVED AND IT SHOULD BE SEND TO XI(BPM) WHICH WILL BE CONNECTED TO 4 BAPI'S . HERE THE SCENARIO IS,  BASED ON THE FIRST BAPI RESPONSE , SECOND BAPI REQUEST WILL BE GENERATED.
    BASED ON SECOND BAPI RESPONSE, THIRD BAPI REQUEST IS GENERATED. AND FOURTH BAPI IS GENERATED BASED ON THIRD BAPI RESPONSE.
    I THINK I GAVE SUFFICIENT INFORMATION.
    POINTS REWARDED..........
    THANKS IN ADVANCE.

    Hello,
    Check this thread,
    FILE to multiple BAPI/RFC calls
    **********Reward points,if found useful

  • BPM BAPI COMMIT

    Hi,
    I try to create a sync connection BPM which soap post data to BPM then inside BPM i have 2 bapi which the first bapi will need to commit by XI before process the second bapi. I have done all this and it work but there was a problem of the commit process time sometime the second bapi will return mat doc not found. I know that BPM have the wait process but the minimum time is 1 minute which is quit long for sync process. Is that any way to make the second bapi process only is the 1st bapi commit successful.
    Best Regard,
    Gan

    Hi,
    Thanks for reply. I am also consider about the performance of the BPM but the reason i am using BPM is to let the XI handle the commit for bapi. For example lets said after XI past data to bapi and then the connection between XI and SAP R3 down then the soap client cant get the data but the bapi with commit if i put the commit on z bapi. In order to control this i have to let XI control the commit.
    Is that anyway to handle this?
    Best Regard,
    GAN
    Edited by: fcgan on Dec 2, 2008 8:12 AM

  • 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.
    thnx
    Anil

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

  • RFC(Bapi) to Webservice using BPM

    Hi,
    Can anybody explain me how to do RFC TO Webservice (whole scenario is synchronous) using BPM.My scenario is I have a sender RFC where I need to call two webservices in sequence.Appreciate any help guys.
    Thanks
    Points will be awarded

    Hi,
    Yesterday itself I asked u in the other thread, but u didn't reply to my question. Since you are calling two webservices which Webservice response do u want to send back to RFC? Do u want to combine both the responses and send back together?
    raj.

Maybe you are looking for

  • Desktop outsizes monitor constraints in 10.4.4

    This is an urgent one.. The desktop just became "bigger" and now outsizes the monitor, so when I move the mouse, the ENTIRE desktop and everything on it scrolls the opposite way the mouse is moving.. This is creating a vertigo type sensation when usi

  • ORA-06508,ORA-06512, why I should re-connect and after that it runs well?

    I have 2 package. package A depends on B. I call the package A in c++ code. At the begining, all work well. I compile package B successfully. But when I call package A in c++ code using a existing connection to the oracle, I get ORA-06508: PL/SQL: OR

  • Email via phone....

    I've had a real hit and miss experience with me.com mail on my phone. sometimes it will connect..... mostly is says "incorrect username/password" then 5 minutes later it connects! I've transfered everything over to iCloud and this morning I went to c

  • Software shuts down when I attempt to print

    Since I upgraded to Mavericks I have not been able to print to the network printers in my office. The printers are Oce Variolink 7522 and Variolink 2822c. The software crashes (Pages, Keynote, Numbers, and Preview) during any attempt to print. I've s

  • Get spinning beachball whenever I click on slide with attached movie-help!

    Running 10.4.11 and Keynote 3.02 on a mini with 1GB RAM I converted an earlier presentation (using Keynote in iWorks '05) to the iWorks '06 app, and it seemed like it went okay. Editing text is fine. No problems. However, if I click on any slide that