2023 Mar 28 4:42 PM
Hi,
I am reading order data using BAPI “BAPI_ALM_ORDER_GET_DETAIL” where order number being passed is “000970000995”.
This return me errors in return table “Error reading the order header 970000995 from the document tables”
What could be the problem? Also this is happening only for a perticulat order type and not for others.
Best regards
Anvesh Kumar
2023 Mar 29 9:15 AM
Is it after creating the order by program?
Which message number is it?
I see many answers in the forum by Google:
BAPI_ALM_ORDER_GET_DETAIL Error reading the order header site:sap.com
2023 Mar 29 1:29 PM
Hi Sandra,
No this not after creating the order by program but while updating Inspection data back to order from mobile device.
iN code are instansing order object and this fails in constructer on this BAPI.
The message number is 121.
I also find threads but they ar enot relevant or have no solution in th end. Please let me know if you can help. Thanks!
Best regards
Anvesh
2023 Mar 29 1:29 PM
Hi Sandra,
No this not after creating the order by program but while updating Inspection data back to order from mobile device.
iN code are instansing order object and this fails in constructer on this BAPI.
The message number is 121.
I also find threads but they ar enot relevant or have no solution in th end. Please let me know if you can help. Thanks!
Best regards
Anvesh
2023 Mar 29 2:22 PM
Are you able to display the order with transaction IW33 (order doesn't exist or wrong type)
2023 Mar 29 3:10 PM
Yes I am able to display the order with Iw33. Even when I run independently "BAPI_ALM_ORDER_GET_DETAIL" from SE37, I get correct result and no error, only when this BAPI get executed by the code then only it returns error. Also this is for only one order type and for others it work fine.
2023 Mar 30 1:26 PM
anvesh.kumar3 Are you saying that if you execute BAPI_ALM_ORDER_GET_DETAIL from your program, it returns the error IWO_BAPI121 (Error reading the order header), but if you run it from SE37, it runs well without error? If it's what you say, just debug the parameter values of BAPI_ALM_ORDER_GET_DETAIL passed via SE37, and compare with the values you pass in your program.
2023 Mar 30 1:58 PM
Some possible causes
2023 Mar 30 1:24 PM
I guess you mean IWO_BAPI121.
Are you sure it's the only error message?2023 Mar 31 12:04 PM