Skip to Content

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

Produce an empty xml tag from ABAP proxy

Hi all,

I have a scenario where when a field, say <type>, contains a blank value from an ABAP proxy, the XI output is not producing an empty tag because the proxy cant send a blank value and thats xml's way of staying light by not producing a bunch of empty tags. But that is our goal is to produce an empty tag when <type> is blank. Therefore, we have decided to pass the value 'blank' to XI when there is no value found in the field. How would one create the mapping inside of XI to produce an empty tag when the value is 'blank' and if not 'blank' produce whatever the value may be?

Thanks!

Former Member
Former Member replied

Why not using node function mapWithDefault? This will create an empty tag, when the source field is missing. So you need not pass a value in ABAP proxy.

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