cancel
Showing results for 
Search instead for 
Did you mean: 

File to multiple IDOCS

silentbull
Participant
0 Kudos

Hello

This would have been discussed a lot in SDN. But I would not want an idoc occurrence changed to 0..unbounded as my mapping is not split on record level but using various conditions.

To put it simple, the same source file is used to create 3 different idocs with many fields changing. I can't accommodate in one single mapping as it is very complex.

Easiest way for me is to have 3 different idoc messages in the target and do one to one mapping. I know this is not possible as idoc does not go through adapter engine.

I am using old version of PI which is 7.01.  So, I thought about having multiple receivers using ED, but again that will let me create only mutiple business service but not same business systems triggered for 3 times.

One other way is to route those business services through soap adapter and send it to 3 different scenarious to create the idocs. But again this seems to be more complicated.

Is there any way where I can copy the source file and pick it up again 3 times. This might solve the issue.

Regards

Sam

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Sam ,

You can create three different communication channels from sender side and follow two options :

1. First two channels in test mode and last one in delete mode.

2. Archive file from first sender and use archive directory as source directory for second channel and so on.

For the above approach you have to schedule ATP to start channels one by one.

Another approach will be to create another interface to pick up the source file and copy it to three different directories and then use your secondary interfaces.

Thanks.

silentbull
Participant
0 Kudos

Hello

If i change the idoc occurrence to 0..unbounded and keep the ORDERS05 to occurrence 1 only and duplicate the idoc into 3 times, will this work?

silentbull
Participant
0 Kudos

Hello Gaurav

For the second approach, how can you copy the same file into three different directories. Is this possible with single receiver channel?

Former Member
0 Kudos

Hello Sam ,

You will need one sender and three receiver channels and one ICO.

Thanks

Former Member
0 Kudos

You can use one more mapping before the actual mapping may be to duplicate your source three times based upon some condition and use that as an input to the main mapping. Just my thought.

Thanks.

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Gaurav,

That was really creative! Adding to that, checking 'Sender Uses Virtual Receiver' is a must for this scenario.

Regards,

Mark

silentbull
Participant
0 Kudos

I am on 7.01 and will not have ICO

silentbull
Participant
0 Kudos

Hello

My issues is not on the source but on the target, if i change the idoc occurrences to 0.unbounded and then duplicate it 3 times, i can then use the same source in the main mapping to create 3 different idocs under one ORDERS05.

I don't understand how duplicating the source will help me

Former Member
0 Kudos

Better approach will be to copy source file in to three different directories and then use each one of them in separate mappings. Even if you are not having ICO , 1:n scenario is possible in earlier versions also.

Thanks.