Use a IF condition and a value map in a mapping
I want to use a IF condition and a value map in a mapping. Can I and if yes, how? This is what I have now and mapper doesn't like it
IF CONDITION{$Input_X12_4010_266_IN/EDIRoot/TS_266/Loop2_LX/API/API01 !='A1' and $Input_X12_4010_266_IN/EDIRoot/TS_266/Loop2_LX/Loop3_N1/N1/N101='57' and $Input_X12_4010_266_IN/EDIRoot/TS_266/Loop2_LX/Loop3_N1/N1/N103='EQ'} VALUE=[Value-Map-BOAMpns_266($Input_X12_4010_266_IN/EDIRoot/TS_266/Loop2_LX/Loop3_N1/N1/N104 ) ]
In short, if API01 != A1 and N101=57 and N103=EQ, map incoming value (1 of 5) to a different value (1 of 5). Value map contains:
132631719AK -> 5102030186
132631719GR -> 0451550269
etc
etc
etc
-
Place the "Value-Map-BOAMpns_266($Input_X12_4010_266_IN/EDIRoot/TS_266/Loop2_LX/Loop3_N1/N1/N104 )" portion into a local variable, then put the variable in the VALUE = [variable] location
0
Post is closed for comments.
Comments
1 comment