Skip to Content
avatar image
Former Member

File1-RFC-File2-IDOC design help

Hi,

Here is the business requirement. Please help with design options.

There are two files(Business Partner.XML & Vendor.xml) on FTP server.

Pick up BP.XML file, call RFC(BAPI) to post the data in R/3(ECC).

If BAPI return code is success, then pick up 2nd file(Vendor.xml) and post corresponding record(vendor#) as the IDOC(CREMAS) in R/3.

If BAPI retrun code is failed, then do not post the IDOC(corresponding record in 2nd file).

Both files has vendor number as the key field.

<b>File1 & File2 may have upto 10 records in each file</b>.

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 21, 2007 at 08:45 PM

    Hi Mallik,

    You can have both the files processed at the same time using two different interfaces.

    1. File ->RFC and

    2. File ->IDOC.

    Now for the IDOC in the receiver system, partner profile make sure that for the message type CREMAS, <i><b>the IDOC configuration is to be collected.</b></i>.

    In the first scenario RFC, make sure that if the business partner posting have been done successfully then submit the program RBDMON00(t-code is BD87) with the IDOC type and IDOCs having the status 64.

    Cheers

    JK

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Mallik,

      From your posting what you require is that say in the first file if there are around 10 records and if 2 out of them failed then the idocs corresponding to the 2 should not be processed.

      If so when you submit the processing of the IDOCs in 64 status, the IDOCs corresponding to the 2 failed will go into the failed status which is 51. If you need to add additional checks then you need to add your checks in the exits provided. This will be the case if the IDOC processing is done by a standard SAP function module.

      Cheers

      JK

  • avatar image
    Former Member
    Apr 22, 2007 at 10:31 AM

    Hi,

    See the below link

    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step

    Regards

    Chilla

    Add comment
    10|10000 characters needed characters exceeded