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,
Add one more layer of validation and check-
First use exist() node function and then check whether the value is null or not null.
Thanks,
Apu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 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.