05-17-2008 11:21 AM
I am using function module PM_ORDER_DATA_READ in my program to read production order details ... but getting short dump if I execute the same function module multiple times with diff. prodcution orders.
Is there any other funtion module available which will give me all the details of prod. order ?
pl. advice.
05-17-2008 11:33 AM
Hi,
Yes, you get short dump if you execute function module 'PM_ORDER_DATA_READ' multiple times with different production orders from the same session.
Reason: SAP does not clear variables defined in program SAPLCOIT.
Solution: Put Function 'PM_ORDER_DATA_READ' call into a separate Z program, and call the program once for each production order using submit command and export/import function module's parameters through memory.
Reward if helpfull...
Cheers,
Deepanker.
05-17-2008 11:37 AM
Hi,
although it´s not by a funtion module maybe this can help:
http://www.ct-software.com/abap-pool/yprod001.htm
(tables: AFKO, AFPO, ...etc)
Best regards.
05-19-2008 6:26 AM
BAPI_PRODORD_GET_DETAIL: Output Details of a Production Order
BAPI_PRODORD_GET_LIST: Output Production Order Header Data in a List