Skip to Content
author's profile photo Former Member
Former Member

collecting idoc into single file

Hi XI Friends,

its IDOC to file..

its one SAP system 2 non-sap systems..

i want to collect all IDOCs within a week time and based on some condition it has to go on two non-sap systems.

in a week ,if 10 idocs are generated and for one system 4 idocs should be collected and convert into XML and the same for remaining 6 idocs to be collected and should convert into XML file..

please suggest me how it is possible without bpm and with bpm also..

thanks and regards

Ram

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

14 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2007 at 11:20 AM

    Hi Ram,,

    use a multi-mappings.

    Sample are in your integrationrepository under SWC: SAP BASIS.

    (SAP delivers samples when post-installing XI)

    There is all you need.

    Regards Mario

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 15, 2007 at 11:20 AM

    for idoc collection <a href="/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm (Multiple Types) Collection in BPM</a>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2007 at 11:26 AM

    Hi Ram,

    It is simple through BPM......

    In IR you will create a BPM process, you will tell the source message to be your SAP IDOC, then you will have a target messge for your target XML......if you have 2 different target XMLs for your two non-SAP system, then you will define both your target messages.........then in BPM, you will do a transform step to map your source to your target messages - then you will have a block step, in which inside a loop step you will collect your target messages and then in send step you will send it to the target systems.

    In ID, you will call this BPM proces in your integration process....then you will have 2 Receiver agreements, 2 interface determinations and 2 Receiver determinations in which your source system will be SAP and then 2 target systems will be non-SAP systems.

    Thanks,

    Rajeev Gupta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2007 at 11:47 AM

    HI,

    If you use BPM , you have to use steps like

    Fork with two branches

    onbranch:- loop step with condtion for 4 messages(idocs).In loop recv step and container step to hold the multiple msgs--transformation (this should have mapping idoc to file) - recv deter step - send to one recv

    second branch - loop with condition for 6 messages(idocs) In loop recv step and container step to hold the multiple msgs- transformation (this should have mapping idoc to file) - recv deter step - send second recv

    for ref see below links..

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

    /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm - collecting IDocs without BPM

    Regards

    Chilla..

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 15, 2007 at 01:00 PM

    Ram,

    Better option~

    Collecting idoc's without BPM refer this blog,

    /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm

    Regards

    Bhavesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2007 at 01:50 PM

    hi friends..

    if i want to do without bpm..

    1. create xml file port using we21

    in that port what directory and function module needs to be given.

    in configuration ..tell me what is the sender adapter..??

    please guide me

    thanks and ragards

    Ram

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ram,

      Just check the following two welogs. I guess this will resolve ur query

      <a href="/people/prasadbabu.nemalikanti3/blog/2006/02/24/collecting-and-bundling-vendor-records-from-different-multiple-interfaces-file-systempeoplesoft-and-sending-to-sap-r3-system-part-1:///people/prasadbabu.nemalikanti3/blog/2006/02/24/collecting-and-bundling-vendor-records-from-different-multiple-interfaces-file-systempeoplesoft-and-sending-to-sap-r3-system-part-1

      <a href="/people/prasadbabu.nemalikanti3/blog/2006/02/27/collecting-and-bundling-vendor-records-from-different-multiple-interfaces-file-systempeoplesoft-and-sending-to-sap-r3-system-part-2:///people/prasadbabu.nemalikanti3/blog/2006/02/27/collecting-and-bundling-vendor-records-from-different-multiple-interfaces-file-systempeoplesoft-and-sending-to-sap-r3-system-part-2

      Regards,

      Akshay

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2007 at 04:57 AM

    Hi friends,

    in collecting idocs without bpm,

    i need to write function module which converts idocs into xml file and place on some path on sap and that need to be used in file xml port ..

    if i am wrong suggest me..

    thanks and regards

    ram

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2007 at 06:32 AM

    hi friends..

    thanks for your responses...

    i created port IDOC_FILE

    in that XML port

    XML format :Uncode

    Physical directory:\usr\sap\SRD\

    Function module :EDI_PATH_CREATE_DATE_TIME

    and later i changed in partner profile..

    i run the program ,3 idocs are generated .in we02 idocs are in satus 30.

    then i run the report RSOUT00 i given max no.of IDocs:2 ..then i run i gor message like 3 idocs are selected..

    but these idocs are not reaching to XI..

    in SM58 nothing selected...

    i didnt used sender agreement..i think i have to use file adapter for sender ..that is from sap..

    that means it is file --to --file now

    if i am wrong correct me..

    please suggest me..

    thanks and regards

    Ram

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2007 at 06:45 AM

    Hi prabhu..

    thanks for your responses..

    after i run RSOUT00..i check the status in we02 ..its 30..

    idocs are not reaching to XI..

    i used idoc to file only..

    no sender agreeement...receiver is file adapter..

    please suggest me..

    thanks alot..

    regards

    ram

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2007 at 11:11 AM

    hi friends ..

    logical systems are

    PRD100 (SAP)

    DCE100(XI)

    both the Logical systems are maintaing in SAP and XI.

    in sap: port is IDOC_FILE (XML File )

    in xi :port is SAPDCE (Transactional RFC)

    now i am getting error 37 ..An error was identified in the control record while adding an IDoc. The sender port IDOC_FILE is invalid.

    please tell me ...how tp correct the error..

    suggest me..

    thanks and regards

    Ram

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.