on 01-23-2012 5:43 PM
Hi All,
I am having problem in PI Mapping.
Requirement: Trigger an email target structure only if ReturnCode is not equal to 0 and 1.
Source Structure Target Structure
Invoice 1..1 Mail1 1..1
Return 0..unbounded Mail2 0..unbounded
ReturnCode 1..1 ReturnCode 0..1
Kindly help me out with the Mapping to be implemented for the same.
I tried below logic,
Mapping 1st Node:
I ReturnCode I I SplitByValue I
I = I I Not I
I or I I createif I I Spltbyvalue I I removecontext I I Mail1I
I Constant(0) I
I ReturnCode I I SplitByValue I
I = I I Not I
I Constant(1) I
Mapping 2nd Node:
I ReturnCode I I SplitByValue I
I = I I Not I
I and I I createif I I Spltbyvalue I I removecontext I I Mail2I
I Constant(0) I
I ReturnCode I I SplitByValue I
I = I I Not I
I Constant(1) I
Regards,
Santhu
Hi, you have to use the function equalsS in order to compare strings. After that, createIf seems appropriate.
e.g. Constant(1) equalsS ReturnCode createIf Mail1.
Not is a boolean function and works only for
true
and
false
Please refer to [standard functions on sap help|http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm].
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.