on 12-02-2011 5:48 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anshul,
I have built my transaction referring to same blog.
By the way i am only passing mandatory values to the structure and rest are blank. Also I have found the solution for the problem.
The problem was when i was looping the record with repeater and then assigning it, I was not appending it. so only last record would be there.
Hope it helps others who faced similar issues. Queries are welcomed.
Thanks,
Swapnil
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.