Skip to Content

Change Production Order s Group Counter

Hi

Is that Posible to Change Production Order s Group Count With FM:CO_SE_PRODORD_CHANGE ?

LD_IS_HEADER-ROUTING_COUNTER = 02.
LD_IS_HEADER-ROUTING_X = 'X'.

DATA : AUFNR_ type AFKO-AUFNR.
AUFNR_ = '000062000180'.

CALL FUNCTION 'CO_SE_PRODORD_CHANGE'
EXPORTING
IV_ORDER_NUMBER = AUFNR_
IS_HEADER = LD_IS_HEADER
IV_COMMIT = 'X' "COMMIT WORK
IMPORTING
ES_RETURN = LD_ES_RETURN.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Dec 04, 2017 at 11:58 AM

    What do you conclude of your tests, value in ES_RETURN?

    1694267 - BAPI_ALM_ORDER_MAINTAIN not for work orders

    " Check if the changes that you want to make can be made using BAPI BAPI_PRODORD_CHANGE (for production orders) or BAPI BAPI_PROCORD_CHANGE (for process orders). Both BAPIs can change the order header.
    " Use the  remote-enabled function module CO_SE_PRODORD_CHANGE that is released by the customer to change the ORDERHEADER, SEQUENCES, OPERATIONS, AND PRODUCTION RESOURCE/TOOL OF PRODUCTION ORDERS. See the detailed documentation for the function module.
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2017 at 07:30 AM

    There is no help ?

    I Want change production Orders Master Data ( just Group Counter ) ,

    I try BAPI_PRODORD_CHANGE and CO_SE_PRODORD_CHANGE But Not work and Group Counter Not Changed ...

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2017 at 10:49 AM

    Hi Masoud,

    How many production order you want to update?

    If just few production orders you can try

    1. Correct your production version or routing
    2. T-code: CO02. Goto Functions > Read PP Master Data
    3. Choose the desire Production version or desire routing's Explosion date

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Masoud,

      Check this link. Someone managed to reread of master data in pp orders with BAPI_PRODORD_CHANGE.

      table :

      ORDERDATA

      - EXPLOSION_DATE

      - EXPLODE_NEW

      ORDERDATAX

      - EXPLOSION_DATE

      According to him the BAPI will update BOM and routing at the same time. Hope it is useful to you.

      Thanks.

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.