Mapping problem:from E1EDK14-ORGID to PORDCR102-PUR_GROUP
E1EDK14 occurs 4 times in the source sys:
1 E1EDK14-QUALF = '014'
E1EDK14-ORGID = 'YP01' <= purchase organization
2 E1EDK14-QUALF = '009'
E1EDK14-ORGID = '001' <= purchase group
3 E1EDK14-QUALF = '013'
E1EDK14-ORGID = 'NB' <= document type
4 E1EDK14-QUALF = '011'
E1EDK14-ORGID = 'C999' <= company code
I always want to copy "E1EDK14-ORGID = '001'" to PORDCR102-PUR_GROUP.
I have a solution which works but not perfect:
E1EDK14-ORGID=>copyvalue[1]=>PORDCR102-PUR_GROUP
I want to have the perfect mapping as follow:
IF E1EDK14-QUALF = '009'.
E1EDK14-ORGID = '001' => PORDCR102-PUR_GROUP
ENDIF.
I did it in the data flow editor as follow:
/PORDCR102/IDOC/E1PORDCR1/E1BPMEPOHEADER/PUR_GROUP=
ifWithoutElse([keepss=false]stringEquals
(removeContexts(/ORDERS05/IDOC/E1EDK14/QUALF=),
const([value=009])), /ORDERS05/IDOC/E1EDK14/ORGID=)
But the result in the target sys is always 'YP0'(The first E1EDK14-ORGID)
How to solve this problem?
Thanks
ming yu