Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error when calling BAPI_ALM_ORDER_GET_DETAIL

Former Member
0 Likes
1,072

Hi,

I have a problem a problem when calling this BAPI.

First I call the BAPI_ALM_ORDERHEAD_GET_LIST where I search for orders entered by myself (with IW31 in the webgui, plant maintenance orders).

This returns a response with 4 orders and their header data, so far so good.

When I call the BAPI_ALM_ORDER_GET_DETAIL with the following XML

<n:BAPI_ALM_ORDER_GET_DETAIL xmlns:n="urn:sap-com:document:sap:rfc:functions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<NUMBER>000000815943</NUMBER>

</n:BAPI_ALM_ORDER_GET_DETAIL>

Then I get this in the response:

<RETURN>

<item>

<TYPE>E</TYPE>

<ID>CO</ID>

<NUMBER>112</NUMBER>

<MESSAGE>Enter order number</MESSAGE>

<LOG_NO/>

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1/>

<MESSAGE_V2/>

<MESSAGE_V3/>

<MESSAGE_V4/>

<PARAMETER/>

<ROW>0</ROW>

<FIELD/>

<SYSTEM>CF5CLNT800</SYSTEM>

</item>

<item>

<TYPE>E</TYPE>

<ID>IWO_BAPI</ID>

<NUMBER>121</NUMBER>

<MESSAGE>Error reading the order in the document tables</MESSAGE>

<LOG_NO/>

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1/>

<MESSAGE_V2/>

<MESSAGE_V3/>

<MESSAGE_V4/>

<PARAMETER/>

<ROW>0</ROW>

<FIELD/>

<SYSTEM>CF5CLNT800</SYSTEM>

</item>

</RETURN>

If I search for that ID with the webgui then it is found and I can see the details. The ID is also one of the four orders returned by the BAPI_ALM_ORDERHEAD_GET_LIST call.

Any ideas?

Thanks

/Anders

Edited by: Anders Berglund on Oct 6, 2008 1:39 PM

Hi,

I have a problem a problem when calling this BAPI.

First I call the BAPI_ALM_ORDERHEAD_GET_LIST where I search for orders entered by myself (with IW31 in the webgui, plant maintenance orders).

This returns a response with 4 orders and their header data, so far so good.

When I call the BAPI_ALM_ORDER_GET_DETAIL with the following XML

<n:BAPI_ALM_ORDER_GET_DETAIL xmlns:n="urn:sap-com:document:sap:rfc:functions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<NUMBER>000000815943</NUMBER>

</n:BAPI_ALM_ORDER_GET_DETAIL>

Then I get this in the response:

<RETURN>

<item>

<TYPE>E</TYPE>

<ID>CO</ID>

<NUMBER>112</NUMBER>

<MESSAGE>Enter order number</MESSAGE>

<LOG_NO/>

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1/>

<MESSAGE_V2/>

<MESSAGE_V3/>

<MESSAGE_V4/>

<PARAMETER/>

<ROW>0</ROW>

<FIELD/>

<SYSTEM>CF5CLNT800</SYSTEM>

</item>

<item>

<TYPE>E</TYPE>

<ID>IWO_BAPI</ID>

<NUMBER>121</NUMBER>

<MESSAGE>Error reading the order in the document tables</MESSAGE>

<LOG_NO/>

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1/>

<MESSAGE_V2/>

<MESSAGE_V3/>

<MESSAGE_V4/>

<PARAMETER/>

<ROW>0</ROW>

<FIELD/>

<SYSTEM>CF5CLNT800</SYSTEM>

</item>

</RETURN>

If I search for that ID with the webgui then it is found and I can see the details. The ID is also one of the four orders returned by the BAPI_ALM_ORDERHEAD_GET_LIST call.

Any ideas?

Thanks

/Anders

Edited by: Anders Berglund on Oct 6, 2008 1:39 PM

1 REPLY 1
Read only

Former Member
0 Likes
586

Ok, it works if i remove this: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

Looks like a bug but at least it works now..