Skip to Content
avatar image
Former Member

Single IDOC to multiple files

Hi All,

Im working on a IDOC to multiple files scenario.

There is a single IDOC WP_PLU03 that is triggered as a batch job every night . So there is 1 outbound interface (IDOC)

There are 2 types of stores (Premium stores and Regular). So if the Store number in IDOC (SNDPRN) is 101 or 102 then the Premium Store inbound interface(MI_PREMIUM_IB) should be called and filename should be prem.00611 or premium.00612 . And if any other Store number it should call regular store inbound interface(MI_REGULAR_IB) and file name should be regpluXXXXX.txt where XXXXX is store number . So there are 2 inbound interfaces .

Apart from this i have 2 questions -

1. In extended interface determination, I do not have the condition editor . How do I configure that for SNDPRN = 101 or 102 it should call (MI_PREMIUM_IB) and for others it should call (MI_REGULAR_IB)

2. Will I have 2 receiver communication channels, since I have 2 inbound interfaces?

Jo

Edited by: johannd on May 12, 2010 11:13 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    May 12, 2010 at 09:17 AM

    Create two different receiver services for this....in receiver Determination make use of the condition and then route it to proper receiver and then maintain a different set of Interface Determination, Receiver Agreement and Receiver Channel.

    You will require different channels not because the Interfaces are different but your naming convention is different.

    Regards,

    Abhishek.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 12, 2010 at 09:18 AM

    Hi

    You can give your condition in Receiver Determination.

    Under configured receivers you give both of your receivers and then specify a condition at the left side using XPATH.

    You can specify condition on a specific field using XPATH.

    yes you should have two receivers communication channels.

    Regards

    Dheeraj Kumar

    Add comment
    10|10000 characters needed characters exceeded

  • May 12, 2010 at 09:20 AM

    > 1. In extended interface determination, I do not have the condition editor . How do I configure that for SNDPRN = 101 or 102 it should call (MI_PREMIUM_IB) and for others it should call (MI_REGULAR_IB)

    Do not use "extended" in this scenario. Do standard interface determination and add both target interfaces here.

    > 2. Will I have 2 receiver communication channels, since I have 2 inbound interfaces?

    No, this is not necessary.

    Add comment
    10|10000 characters needed characters exceeded

  • May 12, 2010 at 09:21 AM

    Hi Johann,

    There are some questions that you should clarify to us before we can answer.

    1) How many store numbers can occur in ONE idoc?

    2) Can you tell us if there is a possibility of having multiple output files , simultaneously?

    I assume that you will have either a Premium store or a regular store but not both at a time.

    In such case, you just need a condition in the condition editor of the receiver determination.

    And yes, you need two communication channels, if you are transferring the file to two file systems/ locations.

    And to get the file names in the specified format, you should use Variable substitution concept.

    Regards,

    Ravi Kanth Talagana

    Add comment
    10|10000 characters needed characters exceeded

    • > May be instead of using modules he can opt for Variable substitution, when multi-mapping is to be used.

      Yes, when the filename is part of the target structure, then this is the better solution.

      > having Interface Determination in Standard Mode and then including two different Mapping Programs one for each of the receiver structure can help.....will it work?

      Hm, here he can have one two files as result, but the last answer was:

      "Yes, I will need multiple output files, simultaneously."

      whatever that means 😉