cancel
Showing results for 
Search instead for 
Did you mean: 

context change in mapping

Former Member
0 Kudos

Hi All,

I got an issue while doing a mapping. This is a File ->IDOC scenario

In File I have a structure as below:


<Recordset>
<Header_Rec0>
<STYPE>0</STYPE>
<GROUP>I2139_SMART</GROUP>
<MANDT>/</MANDT>
<USNAM>/</USNAM>
<START>/</START>
<XKEEP>/</XKEEP>
<NODATA>/</NODATA>
</Header_Rec0>
<Header_Rec1>
<STYPE>1</STYPE>
<TCODE>FB01</TCODE>
<BLDAT>27082001</BLDAT>
</Header_Rec1>
<Detail>
<FDTAG>/</FDTAG>
<FDLEV>/</FDLEV>
<HKONT></HKONT>
<ANLN2>/</ANLN2>
</Detail>
<FDTAG>/</FDTAG>
<FDLEV>/</FDLEV>
<HKONT>770304000</HKONT>
<ANLN2>/</ANLN2>
</Detail>
<Detail>
<FDTAG>/</FDTAG>
<FDLEV>/</FDLEV>
<HKONT>770304000</HKONT>
<ANLN2>/</ANLN2>
</Detail>
<Detail>
<FDTAG>/</FDTAG>
<FDLEV>/</FDLEV>
<HKONT>770304000</HKONT>
<ANLN2>/</ANLN2>
</Detail>
<Detail>
<FDTAG>/</FDTAG>
<FDLEV>/</FDLEV>
<HKONT></HKONT>
<ANLN2>/</ANLN2>
</Detail>
<Detail>
<FDTAG>/</FDTAG>
<FDLEV>/</FDLEV>
<HKONT>770304000</HKONT>
<ANLN2>/</ANLN2>
</Detail>
</Recordset>

In IDOC I need to map Detail -> HKONT to two values in IDOC

The IDOC is FIDCCPO2

One is to E1F1SEG ->HKONT & then in E1F1SEG->E1FINBU->LIFNR

When I am mapping the value is coming to HKONT, but as LIFNR is a value inside E1F1SEG->E1FINBU this value is not getting populated.

Please suggest a solution, if you have come across a situation before.

Regards,

Tiny

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Tiny,

From my point of view the problem is in the node E1FINBU with cardinality 0..1. You must to indicate that this node must appear, if the node hkont in the source always appear is easy to do:

In the test mapping:

Correct me if i'm missing any of your requeriments.

Regards.

Former Member
0 Kudos

Thanks Iñaki Vila. Now mapping is working fine.

Answers (0)