Skip to Content
0
Former Member
Dec 01, 2006 at 04:54 AM

Response not coming from bapi

38 Views

hi all,

I am sending a request from XI to bapi and it is going but the response is not coming from the BAPI.Below is the structure of the response bapi which is required

<i><?xml version="1.0" encoding="UTF-8" ?><ns0:ZLS_BAPI_SAMPLE_DUE_DATE_CHK.Response xmlns:ns0="urn:sap-com:document:sap:rfc:functions">

<EQUIPMENTID>

<item>

<EQUIPID/>

</item>

</EQUIPMENTID>

<LOCATIONID>

<item>

<LOCID/>

</item>

</LOCATIONID>

<OILID>

<item>

<OILID/>

</item>

</OILID>

<OUTPUT>

<item>

<ZSAMPLEID>22</ZSAMPLEID>

<ZSAMPLEDUEDATE>20061205</ZSAMPLEDUEDATE>

<VCODE>55</VCODE>

<KURZTEXT>ww</KURZTEXT>

<ZEQUIPDES>dddd</ZEQUIPDES>

<MAKTX>33</MAKTX>

<ZPLANID>3</ZPLANID>

<ZPLANIDESC>hhh</ZPLANIDESC>

</item>

</OUTPUT>

<RETURN>

<item>

<TYPE/>

<CODE/>

<MESSAGE/>

<LOG_NO/>

<LOG_MSG_NO/>

<MESSAGE_V1/>

<MESSAGE_V2/>

<MESSAGE_V3/>

<MESSAGE_V4/>

</item>

</RETURN>

</ns0:ZLS_BAPI_SAMPLE_DUE_DATE_CHK.Response></i>

Equip id,loc id and oil id are mapped in the request mapping and in response we need the output fields.But during runtime we get the below as the payload structure

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

- <rfc:ZLS_BAPI_SAMPLE_DUE_DATE_CHK.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

- <EQUIPMENTID>

- <item>

<EQUIPID />

</item>

</EQUIPMENTID>

- <LOCATIONID>

- <item>

<LOCID>1</LOCID>

</item>

- <item>

<LOCID>2</LOCID>

</item>

- <item>

<LOCID>3</LOCID>

</item>

- <item>

<LOCID>4</LOCID>

</item>

- <item>

<LOCID>5</LOCID>

</item>

- <item>

<LOCID>6</LOCID>

</item>

- <item>

<LOCID>7</LOCID>

</item>

- <item>

<LOCID>8</LOCID>

</item>

- <item>

<LOCID>9</LOCID>

</item>

- <item>

<LOCID>10</LOCID>

</item>

</LOCATIONID>

- <OILID>

- <item>

<OILID>BP260</OILID>

</item>

</OILID>

<OUTPUT />

- <RETURN>

- <item>

<TYPE />

<CODE />

<MESSAGE />

<LOG_NO />

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1>Invalid Customer Number</MESSAGE_V1>

<MESSAGE_V2 />

<MESSAGE_V3 />

<MESSAGE_V4 />

</item>

</RETURN>

</rfc:ZLS_BAPI_SAMPLE_DUE_DATE_CHK.Response></i>

Can anyone plz help me out

thanks and regards,

Nisheeta