Skip to Content

How to use setFiledsToNull array in SAP PI

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.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 29, 2016 at 02:44 AM

    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



    Add comment
    10|10000 characters needed characters exceeded

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