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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • 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 comment
    10|10000 characters needed characters exceeded

  • 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 comment
    10|10000 characters needed characters exceeded

  • 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 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.