Showing results for 
Search instead for 
Did you mean: 

Single iDOC to multiple files based on a condition

Former Member
0 Kudos

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 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 ?

Another thing in the same scenario is that i have to map one segment of the iDOC on its occurance to target fields.

Forex :

let us say E1WPB003 segment in the sent iDOC has only one occurance than it should be mapped to field ALT1

if this segment is repeated let us say 3 times

so the next occurance of the segment should go to the field ALT2 and next in ALT3 and so on.....

The max number of repeatation can be 9.

Please help me in this as i dont have any clue about how to go for this.

Do i have to make 2 DT 2 MT like that.....step by step things would be a favour.

Any help would be rewarded with points


Accepted Solutions (0)

Answers (2)

Answers (2)

Active Contributor
0 Kudos

Hi Sharama,

please use the X-path for condition.

and maintain the same in Receiver determination.

Based on X-path condition,the data routed to paricular receiver...



Former Member
0 Kudos

Hi Mahesh

Can you please explain it how to go about this.


Former Member
0 Kudos


plesae refers to the links how to use Xpath for giving condition in reveiver determination.





0 Kudos

Hi sharma,

Which IDoc you are using?

Based on the QUALF Filed value you can do fixed value mapping for your second requirement.

Former Member
0 Kudos

Hi Prabu

can you explain it a more, i am new to Xi so dont know this...