Skip to Content
avatar image
Former Member

Depending on value mapping to specific file

Hi, well my Scneario is IDoc to File and i have no clue how to achive this:

we get an IDoc with different fields and one of this is field "No" which can have the value 1,2,3

Depending on these values the message should be split and collect all the data-fields wherein the No = 1 or 2 or 3.

After this, the so divided messages should be written in different files.

Can someone tell me how to achive this?!

br

Source looks like:

<ZBC0 SEGMENT="1">

<No>1</No>

<TYPE>1B20-6</TYPE>

<SPEC>152J</SPEC>

</ZBC21>

- <ZBC0 SEGMENT="1">

<No>2</No>

<TYPE>1B20-6</TYPE>

<SPEC>152J</SPEC>

</ZBC21>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 01, 2008 at 07:34 AM

    hi,

    Its possible If your using message split in message mapping.

    Go to Message Mapping.

    Select Message Tag.

    Change the Target Message Occurrence 0-Unbounded.

    In Mapping Map the Header Node of the Target according to your No field.

    Choose Interface Mapping.

    Change the Target Message Occurrence 0-Unbounded.

    In Integration Directory ,

    Interface Detarmination Choose Extented.

    Get Your mapping.

    In Receiver File Adapter choose add time stamp or counter.

    It will create multiple output files according to No field.

    *Reward Points If Useful*

    Regards,

    Prakasu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 01, 2008 at 08:27 AM

    Hi,

    Your question is not clear, tell me what exactly you want in target.

    regards,

    Ravi Siddam

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi, well this is possible yes.

      But perhaps i don't make the requirements clear - sorry.

      For each occurance of "No" the source message should be stored an all items with No=1 should appear in one file! so for each occurance of 1,2 and 3 a file will be created with the collection of all items depending on value in field "No"!

      Can you help?!

      br