Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Mapping Problem ORDERS Idoc to Edifact

Hi,

I have a mapping problem with the IDOC ORDERS:

I get the IDOC with several E1EDP01. Each E1EDP01 has several E1EDPT1, where i want only the first one (which I get over the TDID value). Each E1EDPT1 has min. 1 E1EDPT2.

Now I have to map each field TDLINE from first two E1EDPT2 of the first E1EDPT1 to the Edifact fields /LIST/S_UNB/S_UNH/G_SSG25/S_LIN/S_IMD[1]/C_C273/D_7008 (from the first E1EDPT2) and, if a second E1EDPT2 exists in /LIST/S_UNB/S_UNH/G_SSG25/S_LIN/S_IMD[1]/C_C273/D_7008_2.

I use following UDF:

//a = TDLINE
//b = Number of entry in the List
int pos =Integer.parseInt(b[0]);

if ( pos < a.length )
result.addValue(a[pos]);
else
result.addValue(ResultList.SUPPRESS);

Unfortunatly, I think becaus of the context problems (not every E1EDPT1 has two E1EDPT2), it's not working. Could somebody help me with this problem?

Thanks in advance

Dominic

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question