cancel
Showing results for 
Search instead for 
Did you mean: 

how to XML toString?

Former Member
0 Kudos

Hello

i want to BAPI Error Messages(xml items) return XacuteQuery

so

i think have to XML toString

i use Mii12.0

BAPI RETURN XML is

<BAPI>

<TABLE>

<OUT1>

<ERROR_CODE>

<ERROR_MES1>

<ERROR_MES2>

</OUT1>

<OUT2>

</OUT3>

</TABLE>

</BAPI>

i want to select <OUT1>......</OUT1>

how to XML toString?

Accepted Solutions (1)

Accepted Solutions (1)

jcgood25
Active Contributor
0 Kudos

A pattern for error handling can be found in the Module Library template transactions and web pages, please look at the top of this forum for the "MII Manufacturing Templates Updated" thread.

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Atsushi,

you can take one string type transaction parameter (output) in your transaction which is configured in your execute query.

and assign your xml node value to this parameter and in your execute transaction under transaction details select above transaction parameter as a o/p parameter.

Regards,

Manoj Bilthare

Former Member
0 Kudos

Hi,

If you want to see the output of Bapi using xacute query in MII you need to use Document action which is available under SAP MII XML OUTPUT and define the columns and use row action to map the colums of Bapi to the colums of Document action , finally map the output of Document action to transaction out using Assignment action.