on 03-07-2006 5:58 PM
ORDERS05, E1EDK1 segment has path /ORDERS05/IDOC/E1EDKA1,with occurance 0..99 and all the fields underneath
Nam1, Addrs etc.
My target file requires output_Dt/contactadd with occurance as 1 and all the samilar fields underneath like
Name1, addrs1 etc
payload comes as path /ORDERS05/IDOC/E1EDKA1,path /ORDERS05/IDOC/E1EDKA1,path /ORDERS05/IDOC/E1EDKA1 and Name1 is empty in first few segments of E1EDK1 occurances.
How do i map to target with having output_Dt/contactadd as one occurance and Name1 which is 1.1 cordinality. ?
Any help greatly appreciated.
Thanks
Hi Kumar,
the ORDERS05 IDoc can have multiple E1EDKA1 segments for the different partner roles available. Typically you want to map one specific partner role to your target structure. The partner roles in the IDoc are determined by a qualifier (E1EDKA1-PARVW). Here you find entries such as
WE for ship-to party
LF for vendor
etc.
If you know which role you want to map to your target, you can use the <b>createIf</b> feature in your graphical mapping to create your target field if the value of E1EDKA1-PARVW is the correct one. Make sure you set the context to level IDOC.
Hope this helps,
Claus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
It is working with if codition, i have another scenario -
frieghtcharge should be mapped from orders05, i was advised to map /ORDERS05/IDOC/E1EDK05/UPRBS to target field lineitem/frieghtcharge(1-1).
i am getting error as
1. e1edk05 is in another segment at header level
2. e1edk05 is not sent in the payload
Any input greatly appreciated
Hi Kumar,
E1EDKA1 in ORDERS05 has fields like PARVW and PARTN in addition to NAME1. The PARVW will have values like AG,WE,RG,RE(partner Roles) and so on. You can use this field value as condition in your mapping. Even though there are many E1EDKA1 segments, each segment will have a unique PARVW value.
You can use "if" function or "if without else" function using the value in PARVW and map the Name1 field to the Target based on that condition.
Rgds,
Sam Raju
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
6 | |
6 | |
6 | |
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.