on ‎2016 Sep 26 11:23 AM
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
Request clarification before answering.
Hi Abhishek,
If the field context is set to its parent node then its not an issue. mapWithDefault will work.
If you make entire value of the field in one context that time it wont work.
Solution to handle the above situation:
Like in the above example, You can solve it source Node- mapWithDefault-removeContext-target Node
Hope this will be helpful.
Thanks
Sagarika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.