cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI - how to put condition on graphical node ?

Private_Member_49934
Contributor
0 Kudos

Dear PI Gurus,

I have the following requirement of source target mapping. Source and target data type is shown bleow.

source-traget.jpg

My requirement is the target node ZNET_RATE_PROV should only be created when source node /HEADER/ZNET_RATE_PROV/SALES_ORG_GRP/SALES_GR_KEY = '01'.

In the exmaple source payload. the first 3 ZNET_RATE_PROV has '01' SALES ORG GRP KEY and last 2 had 02 and 03.

source.jpg

I want that target should have only the first 3 node and not the last two.

target.jpg

Kindly help.

Accepted Solutions (0)

Answers (1)

Answers (1)

holakac
Explorer
0 Kudos

Hello,

use node function createIF, there are many blogs/posts about this function, for example: https://blogs.sap.com/2005/12/08/message-mapping-simplified-part-ii/

or official help: https://help.sap.com/viewer/529d209a61374bc1bfb2ef94d2217f00/7.3.17/en-US/63308c4024d26e1de10000000a...