cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc To File mapping problem.

Former Member
0 Kudos
47

Hi Friends,

I need a help. I am a beginner in XI , working in the development of idoc to file senerio.

Previously the requirement was,there would be an idoc, with 2 segments, say segment 1 and segment 2. Segment 2 being child of segment 1 . We need to pull the STORE and Sales Organisation field from segment 1 and MATNR field from segment 2. Say store value is 1002 , the value of *sales org is HBOO and matner value is 12345.

We needed to push the data in a file such that a row is developed as

1002,HBOO,12345, -


this is for the first idoc.

Now say for the next idoc, say where store is 1001 sales org is DR00 and matner as 67890, this will come as

1001,,67890. Fine!!....so if 2 idocs are posted, then the file would look like

1002,HBOO,12345,

1001,DROO,67890, .....This has been mapped and developed.

Now the current requirement is , the idoc will contain 1 segment 1 and multiple segment 2 s. So now the data of the fields would be like this .

Say,, store value is 1002 , the value of *sales org is HBOO and matner value is 12345,

matner value is 123,

matner value is 1236777,

matner value is 12345445555,.

Now the current requirement in the file for this idoc would be

1002,HBOO,12345,

1002,HBOO,123,

1002,HBOO,1236777,

1002,HBOO,12345445555,

.Now friends , pls tell me, how to repeat the value

1002,HBOO,

and alter the value of matner and represent it in multiple rows the same as shown above for a given idoc !

Points would be rewarded.

Pls revert back in case of any clarifications

Thanks to all.

Arnab

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Map the main node in target side with Segment2 at sender side.

Check these blogs too..

/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

thanks,

vijaya.

Answers (3)

Answers (3)

former_member193376
Active Contributor
0 Kudos

Hi

For those 2 values ie(1002,HBOO) right click and set the context to a higher level.

Thanks

Saiyog

Former Member
0 Kudos

Hi,

If you have a problem of populating the data when duplicating the node change the context to next segment it will solve the problem. When ever you are testing a scenarion if you will find this problem then change the context.

Thanks,

RamuV

former_member181962
Active Contributor
0 Kudos

Hi Arnab,

YOu have to use the use the context of Segment 2 for the fields store and sales org.

IN the mapping, right click on the Stire field and chose the context of Segment 2.

Regards,

ravi