Application Development 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: 

Reading Production order

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

former_member182371
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

BAPI_PRODORD_GET_DETAIL: Output Details of a Production Order

BAPI_PRODORD_GET_LIST: Output Production Order Header Data in a List