cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Problem

Former Member
0 Kudos

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" ?>

<ns0:MT_CreatePurchaseOrder xmlns:ns0="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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hey

i just now tried ur scenario,

jus set the context of the <E1EDP20 SEGMENT="1">

to the same context to which <E1EDP01 SEGMENT="1"> setment is set.

i tried using this sample structure

<header>(0....ub)

-


<node1>(0...ub)

-


<name>

-


</node1>

-


<node2>

-


<age>

-


</node2>

</header>

target

<header>(0..ub)

</header>

<node1>(0..ub)

</node1>

<node2>

</node2>

in the source structure i set the contxt of the node1 to same context to which <header> so i got the required output.

jus try that out.

cheers

jithesh

former_member181955
Contributor
0 Kudos

Hi,

Use nodefunctions SplitByvalue() and removeContext()

thanks

Prasad Babu Nemalikanti

former_member181955
Contributor
0 Kudos

Hi,

What output you got please specify clearly .

And what you expected?.I worked with this idoc in my project.

thanks

Prasad Babu Nemaliknati