cancel
Showing results for 
Search instead for 
Did you mean: 

Segment fields do not get populated from second IDoc onwards.

Former Member
0 Kudos

This is a xml file to idoc mapping scenario.

Source XML Structure.

<MT_message type> ( Occurs 1 )

<session header> ( Occurs 1)

-


<session header/>

< Header > ( Occurs 1 to unbounded )

< Document Header > ( Occurs 1 )

-


Currency

<Line Item> (occurs 1 ....unbounded)

-


<Line Item/>

<Line Item> (occurs 1 ....unbounded)

-


<Line Item/>

< Document Header/>

< Header/>

< Header > ( Occurs 1 to unbounded)

< Document Header > ( Occurs 1 )

-


Currency

<Line Item> (occurs 1 ....unbounded)

-


<Line Item/>

<Line Item> (occurs 1 ....unbounded)

-


<Line Item/>

< Document Header/>

< Header/ >

< MT_messagetype/>

Each Header tag creates an IDoc of the basic type acc_documnet01.

This IDoc has a segment E1BPACCR09 which is repeated for every ocurrence of line item in the header.

Lineitems -


> E1BPACCR09.

The currency field in this segment comes from the currency field in the documnet header tag of the source xml structure.All other fields are mapped from Line items tag of XML source structure.

When i test the mapping,with the exact source structure as above,

2 IDocs are output, (for two header tags)

First IDoc -: For two line items in XML source , 2 E1BPACCR09 are created in IDoc and the currncey field is mapped correctly.

Second IDoc-: For two line items in XML source, 2 E1BPACCR09 are created in IDoc but the currncey field is not mapped at all neither does the currency fieldname appear with null value in the output IDoc.

Can someone help me with this issue?

Himani

Edited by: Himani Pandey on Jul 10, 2008 5:10 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey

You need to use copyValue standard function,to repeat the source side to occur as many times as receiver side.else it will populate only the first occurence not after that

Thanx

Aamir

Former Member
0 Kudos

Thank you for your help.

It solves ny issue

Answers (0)