2008 Oct 21 4:14 AM
Hi
Can sales order line item text be replicated to production order through standard PP configuration? If so how can it be done?
If that is not possible through standard configuration then can it be possible to read both sales order line item information and production order information using a BAPI or a program?
Please help me, i have been trying hard for this and also searches sdn for relevant posts but could not find any, I thank all people who can help me with some information on this.
Regards,
Jessica
2008 Oct 21 5:12 AM
Hi,
Check BAPI 'BAPI_PRODORD_GET_DETAIL' here you can find all the production order details, and sales order details like sale order number.
Thanks & Regards,
Navneeth K.
2008 Oct 21 5:12 AM
Hi,
Check BAPI 'BAPI_PRODORD_GET_DETAIL' here you can find all the production order details, and sales order details like sale order number.
Thanks & Regards,
Navneeth K.
2008 Oct 21 5:14 AM
In the above BAPI check the tables "HEADER" fields (SALES_ORDER, MATERIAL_TEXT), I think material_text is sales order line item text.
2008 Oct 23 8:41 PM
Hey Navneeth, Thanks for your reply
Can you post the code, how to acheive this?, Code to make use of BAPI and read the text?
2008 Oct 24 11:44 AM
Sample code:
DATA:
wa_order_objects TYPE bapi_pp_order_objects.
DATA:
it_order_header TYPE STANDARD TABLE OF bapi_order_header1.
*--Setting Flag to get details of BAPI
wa_order_objects-header = c_x.
CALL FUNCTION 'BAPI_PRODORD_GET_DETAIL'
EXPORTING
number = "Order number"
order_objects = wa_order_objects
TABLES
header = it_order_header.