Skip to Content
avatar image
Former Member

single iDOc to multiple files based on a condition

Hi Friends

need your help in one scenario which is something like this:

there is one iDOC as the sender and this iDOC has to be mapped to files based on a condition means let us say if there is a particular field "R" in iDOC(WPDBBYY01) than it should go and create the file "ABC"

and if the particlar field is P or G or M than it should create another 2 files named "XYZ" and "WUV" .

Please guide me how can i put this condition ?

Any help would be rewarded with points

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 12, 2008 at 06:33 AM

    You can do conditional receiver determination.Insert the above conditions in the receiver determination

    for the concerned field and route it to different inbound interfaces with different mappings.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sharma,

      Are you using the same Data Type for all the Target Files or is the structure of every Target File different?

      I mean, Are all the Target File structures different from each other or they are the same?

      Best Regards,

      Tanuja Sarraju.

  • avatar image
    Former Member
    Feb 12, 2008 at 06:48 AM

    Hi Sharma,

    Is there a single receiver for all these files or different receivers for different files?

    Regards,

    Tanuja.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 12, 2008 at 09:53 AM

    Have a single receiver and 2 inbound interfaces.

    So you will have 2 different mappings. In the first mappng source is IDOC and the target is file ABC.

    In the second mappping the source is IDOC and the target is 2 files XYZ and WUV.

    In Interface determination, add both the inbound interfaces and put the condition for each interface.

    Regards,

    Jaishankar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 12, 2008 at 09:54 AM

    Hi Sharma,

    You'll have to use either Message Mapping or JAVA Mapping.

    If you are going for Message Mapping, then it's better to use a Multi-Mapping.

    Let me know if you have further queries.

    Best Regards,

    Tanuja Sarraju.

    Add comment
    10|10000 characters needed characters exceeded