Skip to Content
0
Dec 02, 2011 at 05:48 AM

Problem in execution of a BAPI with XML input to a transaction in MII

94 Views

HI,

I am trying to call our custom BAPI with JCo Interface which takes a RESULT_INPUTXML and other single input parameter and returns the required tasks( ie, UD, Results & Remarks). The required RFC is not taking XML INPUT and is return failure.

I have put a repeater to the RESULT_INPUTXML and also created an XML structure & Table. After that i have used Assignnment to assigned the values from RESULT_INPUTXML to XML structure and than to XML Table from the structure.

XML structure:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<item>

<INSPCHAR/>

<CHAR_DESCR/>

<SPECIFICATION/>

<UP_TOL_LIMIT/>

<LOW_TOL_LIMIT/>

<RESULT/>

</item>

XML TABLE:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<T_INSP_CHAR_RESULTS>

</T_INSP_CHAR_RESULTS>

RESULT_INPUTXML:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<Rowsets>

<Rowset>

<Row>

<INSPCHAR>0010</INSPCHAR><RESULT>111</RESULT>

</Row>

<Row>

<INSPCHAR>0020</INSPCHAR><RESULT>11</RESULT>

</Row>

<Row>

<INSPCHAR>0030</INSPCHAR><RESULT>11</RESULT>

</Row>

<Row>

<INSPCHAR>0040</INSPCHAR><RESULT>11</RESULT>

</Row>

<Row>

<INSPCHAR>0050</INSPCHAR><RESULT>1</RESULT>

</Row>

<Row>

<INSPCHAR>0070</INSPCHAR><RESULT>1</RESULT>

</Row>

<Row>

<INSPCHAR>0080</INSPCHAR><RESULT>1</RESULT>

</Row>

<Row>

<INSPCHAR>0090</INSPCHAR><RESULT>1</RESULT>

</Row>

<Row>

<INSPCHAR>0100</INSPCHAR><RESULT>1</RESULT>

</Row>

<Row>

<INSPCHAR>0110</INSPCHAR><RESULT>11</RESULT>

</Row>

<Row>

<INSPCHAR>0140</INSPCHAR><RESULT>1</RESULT>

</Row>

<Row>

<INSPCHAR>0150</INSPCHAR><RESULT>1</RESULT>

</Row>

<Row>

<INSPCHAR>0160</INSPCHAR><RESULT>1</RESULT>

</Row>

</Rowset>

</Rowsets>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<Rowsets>

<Rowset>

Kindly provide a solution to the problen. Help would be appreciated.

Thanks in advanced..:)

Regards,

Swapnil