cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Issue in Triggering Email

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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].