cancel
Showing results for 
Search instead for 
Did you mean: 

Handling Suppres value in SAP CPI

sachin999940
Participant
0 Kudos

Hello Everyone


I had a requirement to create a field if the count of a field is greater than 1. I created the below mapping.



Till greater condition I am getting everything as expected Below is the display queue



But at final point I am getting SUPPRESS instead of the values

How to tackle this SUPPRESS thing?

Thanks and Regards

Sachin Kumar Singh

Accepted Solutions (0)

Answers (2)

Answers (2)

SivaPO
Participant
0 Kudos

Hi Sachin,

Please place 'removeContext' after 'createIf' as below. You should get the desired output.

Test result :

(instead of actual 'count' I have taken hardcoded values for testing)

0 Kudos

Hi Sachin,

Create If is used when you want to create target node or element based on some condition.So Target node generated if the condition is true,for suppress values node wont gets generated.

you can refer below blogs.

https://answers.sap.com/questions/2098025/difference-between-exists-and-createif.html

https://blogs.sap.com/2005/12/08/message-mapping-simplified-part-ii/

sachin999940
Participant
0 Kudos

Hi Prashanth,

The requirement is that if the value is 1 then the node shouldn't get created and if its more than 1 then the node has to be created.

I do have a condition that when the count of particular field is more than 1 then I have to create the node(this is why I am using CreateIf). In my case I am getting suppress values in case when the count is 1(when the condition is false).

Thanks and Regards
Sachin Kumar Singh.