Processing multiple IDocs

Hi All,
I am working on IDOC to file scenario.
We have one batch job running on SAP R3 system which generates IDocs.
I have to process these IDocs generated by the batch job.
My question is, can we hold IDocs on SAP R3 system and send to XI system togather after specific intervals?
Hope I am clear with the question.

Of course you can.
When you create an partner profile for your outbound idoc types, you can specify the option of collecting the idocs (There will be a radio-button for the same.
Then you can schedule outbound idoc processing programs as per your requirement.
If you want to collect the idocs in various other ways, look at this blog:
/people/michal.krawczyk2/blog/2009/05/21/xipi-collecting-idocs--possible-ways-with-pros-and-cons--5-ways
Regards,
Ravi

Similar Messages

  • Inconsistencies when processing Multiple IDocs.

    Hi
        When a customized IDoc comes from an external system
        to my R/3 System,GRN(mb1c) and Delivery note(vl01n)
        documents are created through call transaction.
        If one IDoc comes the GRN and Delivery created
        correctly. If Multiple IDocs comes arises
        inconsinstency. The inconsistency is, GRNs are created
        correctly but the Delivery created have items data
        wrong ( actuallly it should match with the GRN ).
        As per my understanding when multiple IDocs comes
        parallel processing of Inbound Function module takes
        place, so the inconsistency. If this is right, how
        to ensure that only one IDoc processing take place
        at a single point of time.
        hope i made my problem clear.
    Thanks & Regards,
    Abhimanyu.L

    Hi Abhimanyu,
    It's an inbound idoc ,so when we write the custom function module , we will loop the idoc_data ryt?
    Try like this
    read table idoc_contrl into wa_idoc_contrl
    where mestyp = 'zmessagetype'.
    if sy-subrc eq 0.
    loop at idoc_data into wa_idoc_data
    where docnum = wa_idoc_data-docnum.
    case wa_idoc_data-segnam.
    when 'ABC'.
    WHEN 'XYZ'.
    ENDCASE.
    endloop.
    endif.
    Regards,
    Nagaraj

  • IDOC - Web Service scenario gives errors when processing multiple IDocs

    Hi,
    I have an integration process defined in PI 7.1 that contains four major steps :
    -     Receive DEBMAS IDoc
    -     Call a RFC to get additional information
    -     Call a MS Dynamics web service to retrieve the MS Dynamics customer account number via the SAP customer number (synchronous call)
    -     Call a MS Dynamics web service to update customer info (asynchronous call)
    This process works well when one IDoc is processed.
    If however 10 Idocs are submitted, some updates are processed correctly, most of them are not (the find service call works perfectly fine). Sometimes 3 work fine, sometimes 1 (for the same 10 IDocs submitted)
    I did a test with SOAP UI where in a test script I submitted the 10 update service calls and this works fine.
    The error that is given in the adapter engine SOAP communication channel is :
    Message processing failed. Cause: (415)Cannot process the message because the content type 'multipart/related; type="text/xml"; start="<45504935B855BA3ACA0EA2FD503BC60F>"; boundary="----=_Part_20_1319086528.1239082062538"' was not the expected type 'text/xml; charset=utf-8'.
    I noticed in the message content that the SOAP calls that go wrong have two payloads attached, one for the Main Document and one for the XI Context.. The ones that are processed correctly only have one payload, the Main Document
    Anyone an idea what the cause can be ?
    Thanks,
    Jan

    Hi,
      Please check the transaction idx5 in PI system and see whether the IDOC status by double clicking on the corresponding Transaction ID.
      I think this might be due to some invalid data coming from the source system
    Thanks,
    Tiny

  • Processing of multiple IDocs and their status

    Hi guys,
    I have a problem with IDoc processing in R/3. I send multiple IDocs into R/3. These are my own IDoc types, and I send them there in a "package". Let's say, I send 5 IDocs of the same type. Each of them has the number, and each of them has the number of the whole set - this means - you know, that this one IDoc is the 1st from the 5, this one is the 3rd, and this one is the last. When they are sent, the processing of them comes... And I have an ABAP program, if the last of them is processed, errors are taken and a new report IDoc is created and sent into external application.
    THE PROBLEM IS: the processing of the IDocs is parallel and when the - let's say 4th IDoc processing takes longer time than the 5th processing takes, not all of the errors are taken into the report, because some errors may occur after (the 4th IDoc processing is independent).
    Do you have any ideas, how could I solve this problem?
    Thanx, Peter

    Peter,
    Here is my suggestion, the code that actually checks for errors and sends a report IDOC, why can't we put in a check to see if all the IDOC's of a particular set have been processed or not.
    How exactly this new report IDOC is being created, there has to be some kind of logic to find out IDOCS that belong to the same set.
    Regards,
    Ravi
    Note : Please reward the posts that help you.

  • How the Queue will be created to process the  Multiple IDOC's into  1 Queue

    Hi Sap All.
    when i went into the Transaction code we14 and when the press F4 for search help in the field  Queue Name it displays me the several queues with the Port referring to B0018(refers to PI Box) ,which means that the IDOC's will be sending to PI.
    here my Question is how the Queues get created ,what is the Transaction code for creating the Queues in SAP-R/3 and how we we setup the SAP-R/3 Box in order to send multiple IDOC's into one queue.overall my question is how we wrok on Queues ?
    could any body help me in driving me to the best way.
    regards.
    Seetharam.

    If you have the drivers CD or the LV 6 installation CD, then you could try installing just the traditional DAQ drivers.  I will do a search if I can find them...Good news, I found the drivers that you may need.  Here is the link to download.
    After you install it, look in the vi.lib folder for the DAQ folder and see if you have a dozen
    .llb files. That is where you will find your missing vi's. You may also check into the LV2009 folder to check to
    see if the driver got installed there. I think the driver only gets
    installed for a single version and it might default to the latest at that time (I did not check which one it was).
    In any case, look for the missing VIs in the \National Instruments\LabVIEW 2009\vi.lib\Daq\ folder.  The VIs are contained in the .llb files so you
    can't just search for them through Windows.  Look in the AI.llb file using LabVIEW.
    Here are issues that you may encounter.  The link is to the DAQmx driver (I thought it was for traditional DAQ )
    http://forums.ni.com/t5/LabVIEW/Error-10461-10008-​DIO-Port-Config-Legacy-lvdaq-dll/m-p/947104
    Someone with a similar problem.  It won't help you, but kinda explains what you are going through..
    http://forums.ni.com/t5/LabVIEW/Since-upgrading-la​bview-many-sub-vi-s-such-as-DIO-Port-Config-vi/m-p​...
    Although the recommendation in this thread is to use the same LV version and driver as the previous machine, we know it is not your case.  Newer LV version... and maybe the latest Traditional DAQ drivers...  May be worth reading:
    http://forums.ni.com/t5/LabVIEW/An-error-occurred-​loading-VI-AI-Group-Config-vi/m-p/734547
    Traditional DAQ 7.4.4
    http://digital.ni.com/softlib.nsf/websearch/E42B7A​3564AB2F1A862572A7006D1564?OpenDocument

  • Multiple Idocs creation based on source conditions

    Dear All,
    I have to create multiple idocs from the source idoc based on the line litems ie if my source Idocs has 5 line items so 5 different idocs to be generated at target.
    I am able to process upto this stage.
    Now my requirement is that target Idocs is to be generated based on different plants available in the source idoc line items. I need to trigger a single idoc for the line items having same plant.
    S.No   Line Item No  Plant
    1         00010            8200
    2.        00020            7800
    3.        00030            7800
    4.        00040            8200
    5.        00050            2100
    So, for the above case total 3 Idocs needs to be generated at the target.
    Kindly suggest me how the mapping is to be done which can filter out the plants at line items and creates the no of target idocs.
    Regards,
    NJ

    just a samll pointer...
    you can use
    plant>sort>splitbyvalue(valuechange)->collapse context ..
    this will create the plant Queue as
    2100
    7800
    8200
    now u can generate number of idocs based on this
    Edited by: Tarang Shah on Mar 30, 2009 3:02 PM

  • Multiple iDocs in a single file

    Hello,
    I'm working on some integration to send a purchase order change file into SAP from BizTalk.  Everything works when we send every change as its own iDoc, or when we send all changes for a single PO in a single file, but when we try and include multiple iDocs in a single send, we get an error that it has to many elements.  The definition below is of the idocData element which indicates it can send more than one:
    <xs:elementxmlns:q2="http://Microsoft.LobServices.Sap/2007/03/Types/Idoc/3/PORDCH03//711"minOccurs="1" maxOccurs="2147483647" name="idocData" nillable="true"type="q2:PORDCH03">
    A sample of the file:
    <?xml version="1.0"?>
    <ns0:Send xmlns:ns3="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:ns2="http://Microsoft.LobServices.Sap/2007/03/Types/Idoc/Common/" xmlns:ns1="http://Microsoft.LobServices.Sap/2007/03/Types/Idoc/3/PORDCH03//711" xmlns:ns0="http://Microsoft.LobServices.Sap/2007/03/Idoc/3/PORDCH03//711/Send">
         <ns0:idocData>
            <ns1:EDI_DC40>
            </ns1:EDI_DC40>
            <ns1:E2PORDCH000GRP>
            ......        </ns1:E2PORDCH000GRP>
        </ns0:idocData>
        <ns0:idocData>
            <ns1:EDI_DC40>
            </ns1:EDI_DC40>
            <ns1:E2PORDCH000GRP>
         </ns1:E2PORDCH000GRP>
        </ns0:idocData>
    </ns0:Send>

    Hey Josh,
    Hope your issue is fixed by now.
    If not please check the Inbound Process code of the Order which is triggering Idoc in the SAP System.
    You have to modify that as per se your need.
    Thanks.

  • Desing requriment for processing the IDOC in real time

    hi Gurus,
    we have a requirement to design for processing the IDOC in real time i.e.all the IDOC must be store and process for give time line with out using BPPM tool.we have suggested to use cache storage or storing the files in file adapter.
    please suggested good process with out compromising the Performance of PI.
    regards
    shankar

    hi Raj,
    Please find the example below for your reference
    let say
    System A-->PI--
    >system B
    system A sends multiple files based on time(daily or weekly) and real time( as an when the record created) to systerm B (CRM) in the form of IDOC Via. PI
    we needs to club the real time files and send it to system B.How best we can do without using BPM.
    regards
    shankar

  • Error Handling in File to Multiple IDOC Scenario?

    Hello Experts,
    My scenario is file with Multiple records and I want to send it to SAP system.If there will be 10 Records in my file I need to create 10 IDOC in Target system.
    I can use below of the two options.
    1) File to Multiple Idoc (1.N Mapping)
    2) Using BPM
    3)Directly place the file in SAP application server and process it via ABAP Program.
    However I am not clear in which option error handling will be more effective.Please suggest.
    Basically I want to handle If out of 10 records 9 are correct and 1 record is not correct then I should be able to report within PI without affecting 9 correct records.Is it possible 9 records will be sent to SAP system and PI will only show error for 1 incorrect record.
    Also I will be doing this scenrio for transaction data with huge size (1 Million Records).Which approach will be more effective in this case.
    Thanks,
    Pushkar

    Hi Patel,
    I want to handle If out of 10 records 9 are correct and 1 record is not correct then I should be able to report within PI without affecting 9 correct records.Is it possible 9 records will be sent to SAP system and PI will only show error for 1 incorrect record.
    when working on graphical mapping, the target structure is created when there are no errors in all records of source structure.
    suppose if we have validation error in 9th and 10th record, then we can not process the first eight records and inturn we can not store the two error records in XI for further.
    i suggest you the third option, you can directly place the file in SAP application server and process it via ABAP Program.
    this is far better because you can do more customizations as you have to deal with millions of records.
    Regards,
    Pradeep A.

  • Collect Multiple IDOC(Single IDOC type) to single file using BPM

    Hi All,
    When i am generating multiple IDOC for the same message type, i am getting multiple payload for the same as a result i used to get multiple files generated in application server.
    Now if i use BPM only to collect multiple IDOC to a file then what all the steps that i need to follow for the same.
    Ex: I want to post 10 IDOC for a single IDOC type,, Now using BPM in XI i want to collect all the 10 IDOCs with multiple payload into one single message and then want to process this in XI to generate the file.
    It would be glad if anyone refer me a good step by step blog for the same.
    Thanks in advance,
    Jay

    Thanks a lot Abhisek.
      I have also got a blog explaining the exact thing. But in the blog the ID part was missing which is present in the link you have provided.
    I will be glad if you can through some light on the ID part,, however the IR part and the BPM part is now mostly okay to me.
    I will configure this today only,, and may seek your help for any huddle.
    Thanks a lot once again.
    Regards,
    Jay.

  • Merging multiple idocs into 1 XML output

    Hi Gurus,
      I've got a scenario whereby i will need to send payment documents via idocs to XI and XI will output them into an XML file.
    At the moment, when i perform a payment run for multiple vendors and send the idocs out, i realised that multiple idocs are being sent out and XI will output multiple XML docs.
    Is there any way i can merged these idocs into a single XML document? The idocs are all from the same system.
    Thanks in advance.

    HI,
    I think this is possible using PACKAGING.
    Check this note 814393 on Service Market Place.
    You want to create or process an XI message with multiple instances of an IDoc (of the same IDoc or extension type) in the mapping.
    Please refer below link to follow the steps to Merge IDOCs under single XML,
    SAP Network Blog: Collecting IDocs without using BPM
    Collecting IDocs without using BPM
    IDoc packaging
    Reason and Prerequisites
    The relevant IDoc is imported into the Integration Repository.
    Solution
    1) Log on to the Integration Repository.
    2) Open the relevant IDoc in the object editor.
    3) Select the "Export XSD" menu option in the "Tools" menu.
    4) In the subsequent dialog box, assign a file name and save the data to the hard disk of your local PC.
    5) Open the file that you have saved in step 4 in an adequate editor (for example, Notepad) for editing.
    6) Locate the first entry: <xsd:element name="IDOC" type="<
    Idocname>"> and add the following expression, maxOccurs="unbounded", between the value of the type attribute and the closing angular bracket.
    Example:
    <xsd:element name="IDOC" type="ADR2MAS.ADR2MAS02"
    maxOccurs="unbounded">
    7) Save the modified file to the hard disk of your local PC.
    8) In the message mapping, use the file saved in step 7 instead of the imported IDoc by using the "Import XML or XSD" function in the mapping tool to select the source or target messages.
    Thnaks
    swarup

  • Sending multiple IDocs (all in single file) to FTP via XI

    Hi All,
    We have a requirement as below where we are looking for various feasible solutions.
    The requirement is to collect multiple IDocs in ERP (2000-5000 in number) per day (either Flat File or XML) and needs to be sent as a single File (which has all these IDocs) to FTP Server via XI.
    BPM is not allowed to use and we are working on PI 7.0, so IDoc packaging is also not applicable. There is no mapping required, we need to just route them to FTP from ERP System.
    Looking forward for various solutions.
    Regards,
    N. Jayanth Kumar.

    Hi,
         Using the XML file port at R/3 to collect the Idocs would be a feasible solution. Also, as Sunil as already pointed out, you can configure this as a pass through interface, which will improve your overall processing time.
    Another solution can be to pass the Idocs to PI and then use the append mode in the receiver file adapter to collect the days idoc into a single file.
    To append only idocs for a particular day, try using dynamic filename, where file would have the date in it. This way, only Idocs for a particular day would be appended.
    Regards

  • Multiple IDocs - XI - Flat file

    We are looking at a scenario to send multiple IDOCS from SAP to Flat File. We implemented this using the Collect Pattern in BPM, merge all the IDocs into a single message and write it in a file. But is there any a way to avoid BPM and still be able to send multiple IDOCS in a package to be written onto one file?
    Thanks
    Vinoda

    Hi,
    I think this is possible using PACKAGING.
    Check this note <b>814393</b> on Service Market Place.
    <i>You want to create or process an XI message with multiple instances of an IDoc (of the same IDoc or extension type) in the mapping.
    The payload of the relevant message is to have the following the format:
    <IDOCTYP>
    <IDOC>...</IDOC>
    <IDOC>...</IDOC>
    </IDOCTYP>
    To be able to process these messages in the message mapping of the source system and to create them in the target system, you need an XML schema for the IDOC that allows multiple instances of the IDOCtag.
    If the relevant IDOC is imported into the Integration Repository, the system generates an XML schema that sets the number of instances of the IDOC tag to exactly one.
    The following describes how you can manually change the XML schema so that multiple instances of the IDOC tag are allowed, and how you can make the modified XML schema available to an adequate message mapping.
    Other terms
    IDoc packaging
    Reason and Prerequisites
    The relevant IDoc is imported into the Integration Repository.
    Solution
    1) Log on to the Integration Repository.
    2) Open the relevant IDoc in the object editor.
    3) Select the "Export XSD" menu option in the "Tools" menu.
    4) In the subsequent dialog box, assign a file name and save the data to the hard disk of your local PC.
    5) Open the file that you have saved in step 4 in an adequate editor (for example, Notepad) for editing.
    6) Locate the first entry: <xsd:element name="IDOC" type="<
    Idocname>"> and add the following expression, maxOccurs="unbounded", between the value of the type attribute and the closing angular bracket.
    Example:
    <xsd:element name="IDOC" type="ADR2MAS.ADR2MAS02"
    maxOccurs="unbounded">
    7) Save the modified file to the hard disk of your local PC.
    8) In the message mapping, use the file saved in step 7 instead of the imported IDoc by using the "Import XML or XSD" function in the mapping tool to select the source or target messages.
    </i>
    Regards,
    Bhavesh

  • Want to add multiple idoc type with single message type.

    Hi Gurus,
    I have a problem. I want to add multiple idoc type with single message type in WE20.
    How we can do this in WE20 or is there any other way to do that?
    Please help me.
    Thanks in advance.
    Srimanta.

    hi,
    basically in partner profile i.e. in we20 , we add details to the receiver / sender port that we have created using we21.
    so what exactly we do in that is that we first use the message type for those idocs that we have created.
    now based on those message type we create a process code. now this is the reason why you cannot apply several message types with the same name in we20... as process code is unque for each message type.
    so thats why you can only assign the same message name to several idocs in we82 and then in we20 define the process code for that message type.
    it will solve your problem.
    hope this will help you!!!
    Thanks & regards,
    punit raval.

  • Multi-Mapping without BPM (Multiples IDoc To one EDI output?)

    Hi all,
    We are currently working for a client that want us to create, based on a multiple IDoc (an idoc that contains data of more than one idoc) only one output
    Meaning that we have to do a mapping that based in this multiple input generates only one output that cointains all that data in only one flat file
    example:
    Idoc: PERX2002.PAYTEXT generates an EDI 820 with this structure:
    LIST
    /S_ISA (first input)
    /S_ISA (second input)
    At this moment we tried to use "Collect IDoc" option in SAP, and as seen in other blogs we changed the ocurrency of the message mapping to "0.unbounded", but when we release several idocs (WE14) we only get multiples output files (3 idoc collected and released give us 3 different edi files) instead only one edi file with all the data gathered together as ISA segments
    In this required process possible???
    Thanks in advance

    As you can see in the following pics..
    http://img201.imageshack.us/img201/8352/process1xz1.jpg
    http://img244.imageshack.us/img244/4954/processvc9.jpg
    i already made those changes, the multi-mapping is set, and also the option for collecting the IDocs and the "enhanced" option in the Integration Directory, but when i release all the idocs i still get multiple outputs (2 files), instead one file with all the gathered data
    Could someone tell me if  i'm missing some step?
    Thanks for your time
    Edited by: Alexis Alanis on Jan 7, 2008 7:24 PM

Maybe you are looking for

  • Flashing folder with a ? in it... HELP!

    I bought a refurbed late model 08 about a year ago so I'm beyond warranty. After leaving to get an external drive to expel some photos (I'm a photog) I come back to it sleeping... Woke her up n was "thinking" so hard it wouldn't even force quit so I

  • Does 6i Reports run in Reports 10g (9.0.4)

    Hi Folks, I have a requirement to install a standalone reports server ie. reports6i which comes with developer 2000 on a HPUX machine. I don't find developer 2000 software for HPUX in oracle site. I think it is superseeded with new versions, so i hav

  • Array of Matches

    Hello all. I'm trying to figure out the best way to get the following information: Column A is filled with items, say Gold, Silver, Copper, Brass, Aluminum Column C and to the right has references to items in Column A. Each row is different and conta

  • Install CRS so ASM can share diskgroups accross instances

    I saw a note in a 10.1 document that mentions CRS can be used to allow ASM instances to share disk groups and that this configuration does not require a RAC license if single instance databases are being used. We have a scenario in our development an

  • Working with excel What is the Best free app?

    What is the Best free app for Working with excel on the iPad 3?