Collective inbound idocs into R/3 system using master_idoc_distribute FM

Hi All,
I want to process inbound idocs (4 idocs collectively) in R/3 using master_idoc_distribute function module. The idoc is coming into system as one idoc having 4 segments (each segment for each idoc and contains sub segments too). I want to call master_idoc_distribute for each idoc for sending it to external system. I am using a custom FM for calling the master_idoc_distribute and assigning it into process code inbound for processing the incoming idoc.
The FM is working for one idoc perfectly but throwing error for more than idocs coming in collectively. Any help is appreciated.
Thanks

use commit work saparately after each function module call

Similar Messages

  • Conversion of inbound IDOC into XML file

    Hi experts,
    We have an inbound idoc (FIDCC2) that starts and triggers the creation of an FI document. We would like now, that, instead of creating the FI document, the inbound IDOC creates an XML file on a given directory, with the contents of the idoc. Can anybody explain how to configure this?
    Many thanks in advance,
    John De Coninck.

    John,
       Firstly, need more information. If I understand you correctly, you are getting an inbound FI document that is created as an IDOC and it posts into FI (using an underlying FM/transaction etc). Now you want to convert this IDOC into XML on a folder (which can be found on AL11 (a.k.a App Server)).
    Question 1: Where are you getting this IDOC from? Is it through EDI/ALE? What is your interfacing server (the one that is sending you this IDOC.
    Question 2: What format is this IDOC coming in? Is it flat/XML etc?
    Question 3: Is this an internally created IDOC? Is there an attached partner profile in WE20? If there is a partner profile that exists and you're using this to create the inbound IDOC, then there are process codes available to forward these IDOC's (e.g ED08).
    There are many ways you can achieve this but everything depends on how your system is configured and how this processing is going on.

  • Outbound delivery creation with inbound IDOC transfer from Java system

    Dear Experts,
           The scenario we are having is really very interesting. Hopefully its a good learning for me and also for others also.
    The scenario is,
                   After sales order creation the details will be sent to one Non SAP system (Java) for performing some tasks related to forwarding agent decision, shipping date and etc. Once the details are finalized in that Java system then, the details needs to be transferred to SAP as "Inbound IDOC" process. For this proposed to use the SAP Jco middle ware.
                 Once the details transfered from Java system to SAP then, the outbound IDOC needs to get generated automatically. Assuming the stock for that sales order line item is available. Also one more complexity is, our client is using custom transaction (ZVl10C) for delivery creation.
    Now Query is,
                   1. Which IDOC, message type and Functional module needs to be used for creating the delivery automatically..??
                   2. As per assumption, stock of that sales order line item should be available. Due to some business reason the stock was removed during inbound IDOC transfer then, what will happen to the IDOC..?. How to avoid this situation..??
                   3. As we told we are re going to use SAP Jco b/w SAP & Java system. In this case, how the data will get transfered from Java system to SAP..?
    Thanks in advance for the replies I am going to get
    Regards,
    VEL

    Didn't get any feedback from experts for long time. So we are closing the question

  • Mapping XML into 3rd party system using XIF adapter

    Hi Gurus,
    First of all let me thank all of you for a tremondous contribution you are making for these kind of topics(CRM XIF) in SDN. I could solve half my problems by looking into your replies.
    But I have a new & similar problem now. I am able to create and send XML file of order data into 3rd party middleware system using XIF & SOAP framework. But the 3rd party system(business connector) is unable to parse this XML file in their system. They keep getting the error message invalid XML file. I tried testing that myself and it gives me the error 'SOAP-ENV' error. They even tried some workarounds using some SOAP wrappers but it still didn't work. They are asking me to provide a DTD (data type definition) to this XML file generated out of SAP. Not sure if anyone has seen a similar problem like this but our interface is stuck at this point.
    Any suggestions would be helpful.
    Thanks,
    Sunil

    Hi,
    We have figured out this problem for ourselves. The 3rd party system gets this error because SAP generated 2 XML tags in the beginning of the XML file which cannot be interpreted by XML spy or many XML parsing software’s. When we deleted the first 2 tags we stopped getting that error. But it wasn't a feasible solution for us to delete the first 2 lines in the XML file and then save it and then parse it. We preferred an alternative approach via IDOC's instead of processing XML files directly. Its also better because the size of XML file is much bigger (15 mega) than Idoc ( max of 4 mega bytes). But if you have to process  XML files only then you cannot do that for real time or near real time processing as the parsing of XML file nearly takes more than 10 min. And it is definitely not preferred way especially if your middleware system has the capability to process Idocs from a middleware architectural stand point.

  • Creating inbound idocs in the same system

    Hi
    Could you please let me know the Steps i should follow to get the following req done?
    Iam creating INBOUND IDOCS from flat file ...so my sending and recieving systems are same...
    In WE20 i have setup the logical system and assigned inbound parameters with message type and proces code.
    Iam using IDOC_INBOUND_ASYNCHRONOUS to create the inbound IDOCS but iam getting the error
    EDI: Partner profile inbound not available
    It looks like iam missing some settings here..
    Please let me know what checks i need to make sure to get rid of this error and post the idoc.
    Thanks
    Govi

    Hi,
    You need to create the partner profile in WE21 - Type Port.
    You need to give the directory name and the inbound file name. Just do the access test available to check if the file is accessible.
    Also create the process code in WE42 and maintain the processing FM.
    Hope this helps you
    Regards
    Shiva

  • How to retrieve the Source XML Payload into an External System using message ID?

    Dear Experts,
    I have a requirement to retrieve the inbound XML message payload based on Message ID into Backend ERP system for reference or re-process as needed. Request you to let me know the technique to get the source payload of successful message.
    Kind Regards,
    Madhu

    Hi,
    Check following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/31/6c5c3c3806af06e10000000a11402f/content.htm
    http://wiki.sdn.sap.com/wiki/display/Snippets/PI+Monitoring+Functionality+-+Fetching+Data+from+SXMB_MONI+Standard+Tables+-+Part+I
    https://wiki.sdn.sap.com/wiki/display/Snippets/PI+Monitoring+Functionality+-+Fetching+Data+from+SXMB_MONI+Standard+Tables+-+Part+II
    -Deepak

  • How to login into NP Identity System using ObSSOCookie?

    I am using the Web Services API to Netpoint, generated by WSDL files. I have an ObSSOCookie (from IWA) which I want to use to log into Netpoint Identity System. The usual method is as follows:
    Authentication authN = new Authentication();
    authN.setLogin("admin");
    authN.setPassword("passwd");
    port.oblixIDXML_common_search( authN, myrequest);
    I could not find a method to use an ObSSOCookie to authenticate against Netpoint Identity System. (I understand that ObSSOCookie can be used to log into a Netpoint Access System protected URL using AccessSDK).
    If there is any other solution using utilities like HTTPClient, etc, please let me know.
    Thanks,
    Prashant.

    Hi Pankaj,
    I had tried this code earlier once. This is what I wrote:
    Authentication authObject = new Authentication();
    authObject.setLogin("pshetty");
    authObject.setPassword("dummyPassword");
    authObject.setDomain(".mydomain.com");
    OblixIDXMLPortType port = loc.getOblixIDXML_common_search_Port();
    ((javax.xml.rpc.Stub)port)._setProperty ("javax.xml.rpc.session.maintain", Boolean.TRUE);
    ((javax.xml.rpc.Stub)port)._setProperty(HTTPConstants.HEADER_COOKIE, "ObSSOCookie=" + ssoCookie);
    port.oblixIDXML_common_search( authObject, myrequest);
    The error I get is:
    "Invalid Credentials. Login failed."
    I guess it is still using the password from the AuthN object instead of the cookie. Am I missing something here?
    Thanks,
    Prashant.

  • EDI Sales order creation in CRM through inbound IDocs from non SAP system

    Hi Friends,
    We are having a scenario where we need to create a Sales Order in CRM for a B2B EDI transmission through IDoc. Customer is sending the EDI Transmission of his Sales order , which is passing through PI and then reaching to CRM to create a Sales order.This is the design we need to follow to make it happen,we are initially trying to create an order using WE19 for testing and the details are:
    Basic Type - CRMXIF_ORDER_SAVE_M01
    Message Type - CRMXIF_ORDER_SAVE_M
    Functional Module - APPL_IDOC_INPUTI which is automatically giving a status text as " Function module CRMXIF_ORDER_SAVE has been called successfully", but no sales order is saved in CRM.
    We are getting idocs posted successfully with status 53 with the statuses sequence 74, 50 ,64, 62 and 53.Our issue is inspire of the Idoc having status 53 and the FM called successfully we are not seeing the sales order created in CRM.
    We are stuck here no sales order is created in CRM.
    Are we missing any config. - set up  - Prerequisit  -  Any OSS note need to be applied  --  ANy middle ware setting ?
    Any help will be greatly appreciated.
    Thanks
    Vijay

    Hi Christophe,
    Awesome!!!!!! it worked, You are the best.
    I could able to create a sales order in CRM,but below are the valid data I passed in the respective segment fields.Except for first 3 values rest all did not get reflected in teh Sales order.I feel i am missing some qualifiers.
    Can you kindly share the  IDoc data to be passed in...along with respective segments and fields:
    Segment                                                 Field
    E101CRMXIF_BUSTRANS     OBJECT_TASK         
    E101CRMXIF_BUSTRANS     PROCESS_TYPE
    E101CRMXIF_BUSTRANS     POSTING_DATE
    E101CRMXIF_PARTNER                          PARTNER_NO
    E101CRMXIF_PARTNER                RELATION_PARTNER_NO
    E101CRMXIF_ORGMAN         SALES_ORG
    E101CRMXIF_ORGMAN          DIS_CHANNEL
    E101CRMXIF_ORGMAN         DIVISION
    E101CRMXIF_SALES             PO_NUMBER_SOLD
    E101CRMXIF_SALES            YOUR_REF_SOLD
    E101CRMXIF_SALES            PO_NUMBER_SHIP
    E101CRMXIF_BUSTRANS_ITEM     ITEM_NUMBER
    E101CRMXIF_BUSTRANS_ITEM     ITEM_TYPE
    E101CRMXIF_BUSTRANS_ITEM     ORDERED_PRODUCT
    E101CRMXIF_PRODUCT_I     PROCESS_QTY_UNIT
    E101CRMXIF_PRODUCT_I     PROCESS_QTY_UNIT_ISO
    E101CRMXIF_PRODUCT_I     BASE_QTY_UNIT
    E101CRMXIF_PRODUCT_I     BASE_QTY_UNIT_ISO
    E101CRMXIF_SCHEDLIN_I     ORDER_QTY
    Thanks a ton in advance .
    Vijay

  • Posting IDocs into the same system

    Hello Experts,
    We are having a requirement where-in we have to created a IDoc for the failed message in our RFC and hence it should be created in our own system and should be having status Error (Red).
    Is there any function module by which we can create the IDocs without specifying the receiver port. We tried debugging MASTER_IDOC_DISTRIBUTE FM at IDOC_CREATE_ON_DATABASE but it also expects the receiver information.
    Thanks in advance.
    regards
    rajeev

    No we haven't specified dummy partner. so we have to create a partner profile with the dummy receiver? And what port we should specify? Should it point to the same RFC destination?
    regards
    rajeev

  • Inbound IDoc must trigger a workflow if shipment already exists

    Hi friends, my requirement is that:
    I will be getting shipment details via an Inbound IDoc into my SAP system. (IDOC_INPUT_SHPMNT) If the shipment number already exists in the system a workflow error must occur. Also the delivery number in the shipment should be validated for the shipment, if not a workflow notice should generate.
    Could someone please help me in doing this.
    All helpful answers will be appreciated.
    Thank You

    This report might help you
    RSEIDOCM
    Otherwise maybe in ALE customising you could create an event in a user program and use FM SAP_WAPI_START_WORKFLOW to launch your workflow.
    You will have the IDOC message types coming in and the process codes which are executed so you should be able to monitor the process and take whatever action you need during the process..
    (Customising -- use transaction SALE) 
    cheers
    jimbo

  • System dump whiling testing Inbound IDoc for BOMMAT(Bill of material)

    HI Experts,
    I m testing Inbound IDoc from T-Code 'we19' using logical system 'BOMMAT' .System is giving a dump with error"Field Symbol has not yet been assigned". while testing t_code 'we02' A IDoc is genreted with warning with status 64 with error 'No filters , No conversion , No version change . Please suggest some solution.
    Thanks
    Ravinder Singh

    Hi,
    Check the data in the idoc.
    This dump might happen due to numeric field you might have passed the character value. check throughly.
    Regards,
    Shanmugavel chandrasekaran

  • Howto Scenario: Inbound IDOC - 2 rows into JDBC adapter ?

    Hi,
    How can I achieve the following:
    Inbound IDOC into XI, has to be transformed, and 2 rows have to be inserted into a database table.
    I am able to insert 1 row through the XMB2DB_XML mode in JDBC adapter. 
    A solution could be to create an identical XML structure ("access" elements) through mapping, but I am unable to get 2 XML structures from 1 inbound IDOC document.
    Any ideas are most welcome.
    thanks,
    Manish

    Hi Manish,
    On the target side, right-click on the "access" element and select "Duplicate Subtree".  Now, you should have 2 "access" structures to map from the IDoc.
    Regards,
    Bill

  • Batching of multiple IDOCs into 1 IDOC-XML file

    Hi PI experts,
    I would like to send all idocs from the same payment run (based on run date & run id) as 1 idoc-xml file to PI.
    The number of idocs is variable depending on the payment run.
    Is this possible without using ccBPM?
    I understand it can be achieved according to /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm by using FILE adapter. But I don't want to save the idocs into a file system and the number of records in a file is also fixed.
    Is there other alternative solution?
    Thanks,
    Ken.

    Hi Michal,
    Yes, I have seen your blog and also would like to use the IDoc packaging feature which comes with 7.0 EHP1 onwards, but I am not sure whether the IDoc collecting can be based on the payment run date and run id.
    The sending of the collected IDocs is based on when the program RSEOUT00 is executed.
    If we perform 2 separate payment runs before the RSEOUT00 is executed, would PI receive 2 Idoc-XML files or 1 combined Idoc-XML file. We would like to receive 2 separate XML files.  
    Hope you can confirm this.
    Thanks.

  • How to create an inbound Idoc from an inbound IDoc in same client

    How to create an inbound Idoc from an inbound IDoc in same client
    Idoc will come from XI as an inbound idoc to SAP, now I have to read this inbound Idoc and split it into Several Inbound Idocs and now needs to be posted in the same client.
    please let me know the procedure..
    Thanks in advance,
    Sagar

    Hi Sagar,
    Develop a cusom Z-Inbound function module, configure the Z-FM to trigger when idoc is recieved from XI. In your Z-Inbound function module split the idoc (Recieved from XI)  into respective Idocs and Using MASTER_IDOC_DISTRIBUTE post the IDOCs into the same system.
    Thanks & Regards

  • Partner profile for INBOUND IDOC

    Dear experts,
    Need your help to define partner profile for inbound idoc to R/3 system. There is a third party (Non SAP) based application from which idocs need to be sent to the R/3 system. There is no need to send an outbound idoc from the R/3 system. Can some one please suggest what are the steps to be taken  to b configure the partner profile  in the R/3 system for the inbound idoc?
    Thanks,
    Priyanka

    Hi
    This is not the right location to post this question.
    You got to post this query in Data transfers section of SDN ABAP Development forums
    Now regarding your question,
    You need to create a Logical System with the help of the transaction SALE.
    Assign the created LS to the client with the help of same transaction
    Go to WE20 and create the partner with the same Logical System name
    Now..as you are recieving the Inbound Idoc from external Non-SAP System, you need to maintain the message type in the Inbound Parameters by clicking on ADD Icon over there.
    Before doing the above step, you got to create the connection between SAP and Non-SAP System.
    Use transaction SM59 to do this. Type of connection would be R/3 I guess
    Thanks
    Hope it helps.

Maybe you are looking for

  • Font is smaller when I print or export to PDF

    Dear all, I have a strange problem when I try to print or export to pdf my .pages document. I use FontAwesome.otf in order to have some nice icons but when I print the document this icons are smaller then the document. I also try to make them bigger

  • Relationship A/B003 between WA and Position

    Dear experts, I'd like to understand what is happening when I create a relationship between a position and a work area. After I create this relationship, the existing relationship A/B003 with the Org. Unit is deleted and replaced by the one between W

  • Reg logic to get sales docu no

    i need logic to get the highest value and corresponding sales order no placed by the customer belonging to a credit control area for previous and current fiscal year.

  • Moderators: Live Update 4.0.104 Needed !!!

    Looking for the previous version 4.0.104. Can the moderator send me a link? I uninstalled this incorrectly and need to install and uninstall again.

  • Accusés de réception SMS/MMS

    A quand les accusés de réception pour les SMS et les MMS