Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Empty IDoc fields do not show up in payload

Hi everyone!

I have a scenario where XI receives an IDoc from a SAP R/3 system and posts the IDoc data to an external HTTP receiver. Everything works fine. However, when an IDoc field is empty, it doesn't show up in the payload. This leads to problems in my mapping, since those empty fields also do not appear in the output message (these fields are optional in the target structure).

Now I <i>could</i> encode some logic in the mapping to check whether the respective source field is empty, and insert some standard values. But this is tiresome since there are many fields involved. Is there a better solution to do this? Mabye some configuration in the IDoc adapter???

Thanks in advance,


Former Member
Former Member replied

Hi Joerg,

If you are above XI3.0 SP14 then you can use the node function <b>mapWithDefault</b> in between the mapping. This will create the xml tag for the field on the target side even if you are not having those fields in the source side i.e., the incoming idoc.



PS: Pls mark helpful answers

0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question