cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Handling Null Values

itabhishek9
Participant
0 Likes
4,409

Hi SDNites,

I am getting multiple <null> values in a field in the source structure where all other fields for that records have values.

My requirement is in case value is null (field not present in IDOC sent from SAP to PI), I would map it with default value in the target. I have tried to use mapwithdefault function but it is not recognising the null values. Also I tried to write the UDF but with in UDF when I use loop with condition input.length then this loop is not working as input.length is also not recognising the null values.

Can you please guide how can I achieve the same in SAP PI.

Regards,

Abhishek

View Entire Topic
Former Member
0 Likes

Hi Abhishek,

The mapWithDefault will work.

Regards,

Praveen.