Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error when calling BAPI_ALM_ORDER_GET_DETAIL

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

Not what you were looking for? View more on this topic or Ask a question