cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC to (multiple) file design help

Senthilprakash1
Participant
0 Kudos

Hi all,

i am trying to do a IDOC to multiple file scenario.

Requirement:

An outbound idoc has 4 segments.

now i want the output of first 2 segments in one file and second 2 segments in another file.

How to approach this design (without BPM).

Waiting for reply,

Senthilprakash.

Accepted Solutions (1)

Accepted Solutions (1)

madhusudana_reddy2
Contributor
0 Kudos

Hi,

Use multimapping (use external definition of Idoc in source side) in which target message occurance should be 0..unbounded.

write one UDF like below

for(int i=1;i<=4;i++)

{

if(i==2||i==4){

result.addValue("");;

}

}

so that it will split the target structure 2 time(when i=2 and i=4). so that you map all the source fields to target fields(all one to one mapping except UDF).

start doing this so that you will get the required output easily.

thanks,

madhu

Answers (1)

Answers (1)

Former Member
0 Kudos

This can be done by refering this blog.

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

You can also refer this thread which will help you in testing your scenario..

P.S. Search the forum before you ask any question on SDN.

Senthilprakash1
Participant
0 Kudos

Thanks sarvesh\madhu.

Problem solved.

I have created the udf to generate receiver structure multiple times while using Multi mapping.

Regards,

Senthilprakash.

Edited by: senthilprakash selvaraj on Jun 7, 2010 10:45 AM