on 06-17-2010 2:08 PM
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
> 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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.