Skip to Content
author's profile photo Former Member
Former Member

Create Production Order and specific routing for order by BAPI

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 08: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>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 08: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.