on 05-29-2013 7:01 PM
Hi All,
Currently dealing with an IDoc to file scenario where we are using an order response (ORDRSP.ORDERS05) IDoc to xml as below:
Element CUSTOMERS contains the following attributes which relate to PARVW of AG:
Element DESTINATIONS contains attributes which relate to PARVW of WE
CUSTOMER_CODE, ADDRESS_2, ADDRESS_3, etc. should pull from E1EDKA1 when PARVW = AG
DEST_CODE, CITY, STATE, POSTAL_CODE, etc should pull from E1EDKA1 when PARVW = WE
I'm using the following attribute mappings for element CUSTOMERS (replace ORT01 with any other IDoc field needed)
I'm using the same map in element DESTINATIONS as below:
What changes do I need to make to this map (or both maps) in order to get attributes relating to PARVW of WE in element DESTINATIONS? The values for PARVW of AG continue to show up in my testing.
Thanks!
CUSTOMER_CODE, ADDRESS_2, ADDRESS_3, etc. should pull from E1EDKA1 when PARVW = AG
Map root element CUSTOMERS from E1EDKA1 when PARVW = AG.
Condition: if-without-else(equalsS(E1EDKA1->PARVW, "AG")) then E1EDKA1 is mapped to CUSTOMERS.
Then simply map 1 to 1 without conditions required fields inside. Context must be saved.
Do the same for DESTINATIONS, just change AG to WE.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You dont need to check the existence of E1EDKA1 Segment and check the context of source fields are same at runtime i.e by using the option display queue in order to check this ...
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
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.