Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get blank xml tag in PI payload like .

mehnu9827
Explorer
0 Kudos
385

My scenario is ABAP proxy to File. ABAP program is sending data to PI with blank value. But in response the field is not showing at all.

For eg: If i send customer no = '' and custname = 'Anita'. In response , i'm getting only <custname>Anita</custname>.

Not showing <cutomerno> tag.

As per my requirement it should display empty tag<customerno/>.

I tried to pass space and ' ' but not working.

Do i need to change anything ABAP side or need to check with PI?

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos
316

Is your ABAP "program" consuming a Web service, or is it the Web Service itself which is consumed by PI? What is your ABAP code? How is your Web service defined? (request and response)

If your ABAP program consumes an external Web service and you complain about what the Web service returns, it's impossible to help with the few details you provided.

mehnu9827
Explorer
0 Kudos
316

yes .abap program consume a web service..

Web service defined with both request and response. My change is in response file.

difo--->is the field name where i should pass blank value

my abap code to send blank value:

IF output-response-header-status = co_success.

CLEAR: output-response-header-difo .

ENDIF.