Skip to Content
0

How to use setFiledsToNull array in SAP PI

Oct 28, 2016 at 10:56 PM

52

avatar image

Hi All,

From SAP PI, we are trying to connect to Salesforce application. We are required to send null values to target. The function "MapWithDefault" is not passing the Null values to target eventhough the null value is passed while running mapping locally in ESR.

After some reading, we find the option for using setFieldsToNull array to send the Null values to Salesforce.

But, we are not able to implement this in SAP PI.

If any of you has used this array in PI, please let us know how to us this.

Thanks,

Sowmya

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Praveen Gandepalli Oct 29, 2016 at 02:44 AM
0

Hi Soumya,

Use xsi:nil function under constants functions in message mapping to pass null values to web service.

Check my answer below discussion.

Mapping Function Doubt

Regards,

Praveen.


xsinill.png (7.2 kB)
Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Praveen,

Thanks for your information. Sorry I could not confirm the results.

I have used these functions to meet the requirement as explained. But, now I face issue with connectivity to Salesforce.

Please let me know if you have faced this earlier.

error.png

soap-receiver-ping-error.png

Thanks,

Sowmya

0

Hi Praveen,

Finally I was able to overcome the connectivity issue with CMT and test the original requirement with setFieldsToNull array.

The issue is resolved. I had never used this function. Actually not observed this:)

It works amazingly and thank you for the knowledge.

Thanks,

Sowmya

0