cancel
Showing results for 
Search instead for 
Did you mean: 

single iDOc to multiple files based on a condition

Former Member
0 Kudos
123

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Priyanka

That means i dont have to do anything in the IR (Design time).

can you explain me it in more detail if you have any screenshots or example on that .

Thanks

Former Member
0 Kudos

Hi Aquarian,

check these blogs

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2114] [original link is broken] [original link is broken] [original link is broken];

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3774] [original link is broken] [original link is broken] [original link is broken];

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4484] [original link is broken] [original link is broken] [original link is broken];

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2973] [original link is broken] [original link is broken] [original link is broken];

Hope they help.

Regards,

Lavita.

Former Member
0 Kudos

How can i achieve this without BPM.

As i am using BPM.

Is this scenario possible without BPM?

Thanks

Former Member
0 Kudos

Hi Sharma,

If you have multiple Data Types(ie, different Data Types for different files), then you'll have to use BPM.

Best Regards,

Tanuja Sarraju

prateek
Active Contributor
0 Kudos

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

Regards,

Prateek

Former Member
0 Kudos

Hi Tanuja

I just have one iDOC as a Sender but for the Target i need multiple files.

So is it multiple data types this might be very stupid but please bear with me as i dont have much understanding.

Thanks

Former Member
0 Kudos

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.

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Sharma,

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

Regards,

Tanuja.

Former Member
0 Kudos

Hi Tanuja

All my files are going to save at the same ftp SERVER.

Thanks