cancel
Showing results for 
Search instead for 
Did you mean: 

OR Function in PI 7.0

Former Member
0 Kudos

Hi Experts

I am trying to execute the following logic in

Ship Flag -


> Eqls 'X' or Sold Flag -


> Eqls 'X'

then Assign

KNOC (IDOC) -


> CustSales

The above condition writtens the KNOC to CustSales Node only when Ship Flag and Sold Flag are 'X' , but if any one of the condition fails then it is not assiging the KNOC to CustSales node on the Target side,

I have used OR function from Boolean functions

Please let me know how to resolve this

Edited by: PR on Nov 15, 2010 1:34 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Use "MapWithDefault" function just after Ship & Sold Flag. This will ensure to generate the Ship or Sold field in case they does not come with source data.

Answers (2)

Answers (2)

0 Kudos

Hi PR,

Add 'IF' condition before using 'OR' step to check if both of flags exist. If not exists you can map blank constant in 'else'. This will let you process the function further to 'OR'

Hope this helps.

Anand More.

Former Member
0 Kudos

I guess it will be failing whenever any of the Flag(Ship or Sold) does not exists. Try it when both Flag field exists and one of them contains 'X'.