Skip to Content
0
Former Member
Aug 02, 2006 at 11:39 AM

Mapping Problem

73 Views

Hi

I have a problem in mapping of from IDOC to file structure. In IDOC I have multiple segments in each segment in my idoc orders05

- <E1EDP01 SEGMENT="1">

<POSEX>00010</POSEX>

<ACTION>001</ACTION>

<PSTYP>0</PSTYP>

<MENGE>15.000</MENGE>

<MENEE>EA</MENEE>

<BMNG2>15.000</BMNG2>

<PMENE>EA</PMENE>

<VPREI>11</VPREI>

<PEINH>1</PEINH>

<NETWR>165</NETWR>

<GEWEI>KGM</GEWEI>

<MATKL>01</MATKL>

<BPUMN>1</BPUMN>

<BPUMZ>1</BPUMZ>

<WERKS>5302</WERKS>

- <E1EDP20 SEGMENT="1">

<WMENG>10.000</WMENG>

<AMENG>0.000</AMENG>

<EDATU>20060630</EDATU>

</E1EDP20>

- <E1EDP20 SEGMENT="1">

<WMENG>5.000</WMENG>

<AMENG>0.000</AMENG>

<EDATU>20060701</EDATU>

</E1EDP20>

- <E1EDP19 SEGMENT="1">

<QUALF>001</QUALF>

<IDTNR>E104392790</IDTNR>

<KTEXT>L1237EE8.8 TRANSFORMER</KTEXT>

</E1EDP19>

</E1EDP01>

- In this E1EDP01 is Line Item and E1EDP20 Schedule line. In my target structure I have get the same out put. First Line item values and Schedule line. My target structure isÂ…

<?xml version="1.0" encoding="UTF-8" ?>

http://demo.com/POCreate">

<recordset>

<POHeader> (min 1 max 1)

</POHeader>

<POLineItem> (min 1 max unbounded)

</POLineItem>

<POScheduleLine> (min 1 max unbounded)

</POScheduleLine>

<POPromiseScheduleLine> (min 1 max unbounded)

</POPromiseScheduleLine>

</recordset>

</ns0:MT_CreatePurchaseOrder>

I have mapped E1EDP01 to <POLineItem> and E1EDP20 to <POScheduleLine>. I am not getting the exact out put first I have to get line item values and schedule linesÂ…..help me