11-19-2007 2:48 PM
Hi all,
I want to create a production order to transfer data from legacy sytem to SAP via BAPI. Here the question is; there may be a specific routing available for the production order and do not want to change the standard routing or create a new one. Could not find an available BAPI for this application. Any help will be appreciated.
11-20-2007 8:09 AM
Hi
plaese check the this function module
BAPI_PRODORD_CREATE
BAPI: Generate Production Order
Functionality
You use this method to create an order.
Notes
Authorization Checks
Authorization object C_AFKO_AWK with the activity 01 (Create)
Order type
Plant of order
Initialization
When it is called, this method initializes the document tables for order processing and the document tables for status management. For this reason, a COMMIT WORK should be entered before the method is called if other BAPIs have already been called or there are other entries in the document tables for order processing or status management as a result of other actions.
Furthermore, the document tables for order processing and status management are initialized again at the end of the method.
Update Control
The method independently triggers the update to the database. After the method has been called you must not execute a COMMIT WORK again.
Termination of Processing
Under normal circumstances, if an error occurs during the execution of the method, then a message is returned in the parameter RETURN.
In exceptional cases, errors cannot be caught, meaning that the error message is output directly or a dialog is sent. In this case, the processing of the method terminates.
To avoid terminations of this sort, you must ensure the following before you use the method:
All the necessary master data has been created correctly (for example, material master, BOM, routing or recipe, work centers or resources).
All the necessary Customizing settings have been made to the orders.
Parameters
ORDERDATA
RETURN
ORDER_NUMBER
ORDER_TYPE
.
i think this will helps u.
<b>reward is usefull</b>
11-20-2007 8:56 AM
Thanks for the reply, but in our situation we do not refer to a precreated routing. The routing for production order must be specific, not a standard one.Which means the routing will be available only for that production order. When we use the BAPI_PRODORD_CREATE we have to refer to the standard routing I guess. So any suggestion to solve this issue is so valuable.