Skip to Content
avatar image
Former Member

Multiple IDocs-XI-Single File Scenario

Hi All,

We need to send multiple IDocs from R/3 to XI and then to a single file using File Adapter. Please help us with your suggestions on how to proceed using a simple solution.

Regards,

Peter

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Best Answer
    Mar 19, 2006 at 09:45 AM

    Hi Peter,

    you need to use BPM in order to collect

    your idocs and then map them to one file

    there's a standard pattern (collect pattern) for doing this:

    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm

    as far as I know there's no other way in standard

    to do it (for example without BPM)

    Regards,

    michal

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 19, 2006 at 10:42 AM

    Hi Peter,

    Either you have to use a BPM or you use the workaround from SAP: see OSS NOTE 814393.

    You cn use the concept of packaging to coolect mukltiple IDOCs in XI and then use them to send to a file.

    For an IDOC to file, check this blog,

    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters

    Regards,

    Bhavesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Michal Krawczyk

      Hi,

      I have a similar scenario in which DEBMAS idocs are coming in batches from SAP To XI. I need to collect them and process them one by one. I tried using the collect pattern based on time but I am observing that the system is starting a new bpm process for every IDOC entering the XI system from SAP. How do I get to collect them?

      Also IDOC packaging is not going to work for us as we are on sp11.

      thanks

      Ashish

  • avatar image
    Former Member
    Mar 19, 2006 at 12:03 PM

    Hi Peter,

    This following weblog explains the collection of Idoc.

    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File

    Thanks,

    Prateek

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 06, 2009 at 02:44 PM

    I made a program that solved the issue of collecting the IDOC in to one file.

    1. The partent profile should be setup for collect idocs

    2. Make a report that will select and dispatch the idocs

    seudo code:

    select tables with select criteria:

    edidc (idoc control)

    edid4 (idoc data)

    one yo have made you selection into internal tables

    it_final_edidc

    it_final_edid4

    *you can apply rules and data tranformations, eg. PEXR2002 batch per payment type.

    CALL FUNCTION 'EDI_OUTPUT_NEW'

    EXPORTING

    onl_option = 'B'

    • ERROR_FLAG = ' '

    • NAST_RECORD =

    TABLES

    i_edidc = it_final_edidc

    i_edidd = it_final_edid4

    EXCEPTIONS

    OTHERS = 1.

    " EDI mesages dispatched

    IF sy-subrc EQ 0.

    COMMIT WORK.

    CALL FUNCTION 'DEQUEUE_ALL'

    • EXPORTING

    • _SYNCHRON = ' '

    EXCEPTIONS

    OTHERS = 1.

    That work like a charm when writting the IDOC to a single file.

    But when I send the IDOCS to XI like XML-IDOC I still receive one transaction per IDOC.

    if anyone know how to solve that, let me know.

    juan

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 06, 2009 at 03:57 PM

    You can collect all the IDOCs in to a single XML file using XML File port in WE21. Once the XML file is written, you can use file adapter in XI to parse and transform to your target file

    Another option is to use the ABAP PI port. In XI, create a message with a node and its child as IDOC. Generate ABAP proxy class in ECC and ABAP PI port in WE21 which will collect all IDOCs and call a ABAP function module. Within this function module you can call a ABAP proxy in XI.

    Check this link for more info: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d5/edf163dcdc11d1890c0000e8216438/frameset.htm

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 06, 2009 at 06:08 PM

    we had similar scenario; we could collect the IDOCS in R/3 itself; there is option in partner profile (WE20) for outbound parameters select the radio button Collect IDOCS; use XML_HTTP port.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 04, 2015 at 10:39 AM
    Add comment
    10|10000 characters needed characters exceeded