Skip to Content
0
Former Member
May 26, 2008 at 10:57 AM

XML - ABAP conversion, empty tag

1140 Views

Hi.

Im sending data from a DB to a proxy using XI.

But when I get an empty response from the DB, wich gives me an empty XML tag the proxy shows me an error:

-PARSE_APPLICATION_DATA Error during XML => ABAP conversion (Response Message; error ID: CX_ST_MATCH_ELEMENT;

-Error during XML => ABAP conversion (Response Message; error ID: CX_ST_MATCH_ELEMENT;

-System expected the end of the element 'STMT_DC_response'

This is the message that originates the fail:

<ns0:MT_xxx_response xmlns:ns0="urn:s-com:xi:SD">

<STMT_response>

<row>

<c11>P</c11>

<c12>55062330</c12>

<c13>1</c13>

</row>

</STMT_response>

<STMT_DC_response />

</ns0:MT_xxx_response>

In case that the tag is filled runs ok

s.com:xi:SD">

<STMT_response>

<row>

<c11>P</c11>

<c12>55062330</c12>

<c13>1</c13>

</row>

</STMT_response>

<STMT_DC_response>

<row>

<c21>P</c21>

<c22>55062330</c22>

<c23 />

</row>

</STMT_DC_response>

</ns0:MT_xxx_response>

The definition for the data is:

STMT_DC_response 0..1

row 0..n

tipo 0..1

Thanks for the help you can give me about my problem with empty tags.