cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:- Mapping Issue - E1EDKA1-PARTN & E1J3P01-POSEX

0 Kudos

Hi,

I am having mapping issue with IDOC to File(FCC) scenario.

IDOC: /AFS/ORDERS06

Segment: E1EDKA1 (Address info), E1J3P01(Line item)

My requirement is to map a particular address type(WE-Ship to Party) - Partner no to target file as many times as Line item(E1J3P01-POSEX) contains.

IDOC contains Segment-E1EDKA1 - 3 records

E1EDKA1-PARVW (AG,RE,WE)

E1EDKA1-PARTN(1000015,1000015,1000015)

Line Item Segment - E1J3P01 contains 2 records.

Hence PARTN should repeat 2 times at target file.

I tried useOneAsMany(Node function) but no luck.

For node function: useOneAsMany -> passed Input parameters as E1EDK01-PARTN(Context w.r.t IDOC) as first paramter, POSEX(Context w.r.t IDOC) as second parameter and POSEX(Context w.r.t. E1J3P01) as third parameter and output to target file field.

Appreciate any suggestions.

Thanks in advance.

Krishna

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

> For node function: useOneAsMany -> passed Input parameters as E1EDK01-PARTN(Context w.r.t IDOC) as first paramter, POSEX(Context w.r.t IDOC) as second parameter and POSEX(Context w.r.t. E1J3P01) as third parameter and output to target file field.

POSEX(Context w.r.t. E1J3P01) as second, POSEX - splitbyValue as third.

First parameter is the result of

E1EDKA1-PARVW - equalS (WE) - ifwithoutelse (E1EDKA1-PARTN) in (Context w.r.t IDOC)

0 Kudos

Hi,

I solved myself.

1. Did E1EDKA1-PARVW - EqualsS and if it is true - pass E1EDKA1-PARTN(w.r.t. IDOC),

else pass blank value

2. Created UDF copyPerValue and passed POSEX(w.r.t IDOC) and the above one as inputs

3. Step 1 output is passed to splitByValue and passed to target field.

Regards,

Krishna

Former Member
0 Kudos

if you have solved the problem please close the thread.

Thanks,

Hetal

0 Kudos

I already closed the thread.

Answers (0)