CO02 - Change Production Order

Hello,
I have setup a workflow event to trigger if a production order is released using tcode BSVZ - System/user status events (which I read about in the SDN forum).  This seems to work just fine for an order release.  However, I have not found a way to trigger an event if a production order changes using tcode CO02, for example.  Any ideas?
Thanks,
Kenneth

I think I may have solved the problem.  In tcode BSVW - Status Management, I had setup ORH for ZBUS2005 Release Event.  I had restricted this event with status I0002 - Release.  Therefore changing an order in CO02 would only trigger the event if you released the order.  I removed the restriction I0002 and tried changing the order total quantity.  The event now triggers when changing the total quantity.
I had tried adding the restriction I0558 - Changed, as Imthiaz had suggested, but this did not work in our system.  Totally removing the restrictions did work for this scenario.
Setting up change documents in SWEC did not work for some reason neither with change document ORDER nor RKAUFTRAG.
Thanks Imthiaz for heading me back in the right direction again.

Similar Messages

  • Functional module to change production order

    Hi,
    I tried with FM CO2H_PROD_ORDER_CHANGE
    to change production order quantity field GAMNG value, but it did not work.
    Please suggest me any FM or BAPI to change Production order quantity.
    Thanks
    Hema

    Hi Ferry,
    Thanks for your fast reply.
    I tested with the function modules
    KK_F_AFKO_AFPO_UPDATE
    RK_AUFTRAG_SICHERN
    First FM does not have GAMNG(total order qty) field.
    With 2nd FM, it is directly updating table AUFK and AFPO with order qty and order qty. It will not update operation quantity, that is alsor required.
    If we do manually in CO02 transaction, operation quantity also will update once we change the order quantity.
    Thanks
    Hema

  • How to change Production Order Number in CO01

    Hi,
    I have requirement to change the system provided production order number AUFNR to alphanumeric while creating Production Order in CO01 based on plant(WERKS) and Order Type(AUART).
    I have tried using below exits:-
    PPCO0006    - no exporting parameter for AUFNR
    PPCO0001   
    IQSM0001     - doesn't getting triggered
    But unable to resolve the issue.
    Please suggest any EXIT/BADI to meet the requirement.
    Thanks,
    Mayank

    Hi Dengyong,
    Thanks for your reply.
    My doubt is, Order type is already created in the system and whenever I am trying to change the number range it is asking for 'Numeric type only'. I am trying to do the same through CO82.
    We have to change the number range of Order Types which is already created in the system. Is it possible???
    Thanks
    Mayank

  • Problem in changing Production order components.

    The problem is happening while changing components in Production order.
    Take a look at the source code.
    data :      IS_ORDER_KEY  TYPE  COXT_ORD_KEY,
    IS_ORDER_COMPONENT_KEY  TYPE  COXT_S_ORD_COMP_KEY,
    IS_REQUIREMENT_QUANTITY TYPE  COXT_S_QUANTITY,
    IS_REQUIREMENT_QUANTITYX  TYPE  COXT_S_QUANTITYX,
    IS_CONFIRMED_QUANTITY TYPE  COXT_S_QUANTITY,
    IS_CONFIRMED_QUANTITYX  TYPE  COXT_S_QUANTITYX,
    I_MATERIAL  TYPE  COXT_MATERIAL,
    I_MATERIALX TYPE  COXT_MATERIALX,
    IS_ORDER_OPERATION_KEY  TYPE  COXT_S_ORD_OPR_KEY,
    IS_ORDER_OPERATION_KEYX TYPE  COXT_S_ORD_OPR_KEYX,
    IS_REQUIREMENT_DATE TYPE  COXT_S_DATE,
    IS_REQUIREMENT_DATEX  TYPE  COXT_S_DATEX,
    IS_STORAGE_LOCATION TYPE  COXT_S_STORAGE_LOCATION,
    IS_STORAGE_LOCATIONX  TYPE  COXT_S_STORAGE_LOCATIONX,
    I_BATCH TYPE  COXT_BATCH,
    I_BATCHX  TYPE  COXT_BATCHX,
    I_MI_CONFIGURATION_OBJECT TYPE  COXT_CONFIG_OBJECT,
    I_MI_CONFIGURATION_OBJECTX  TYPE  COXT_CONFIG_OBJECTX.
    DATA  :wa_resb type resb,
           ES_BAPIRETURN TYPE  COXT_BAPIRETURN,
    E_ERROR_OCCURRED  TYPE  C.
    IS_ORDER_KEY = '000002098003'.
    select single * from resb into wa_resb where aufnr eq IS_ORDER_KEY
       and bwart eq '531'.
    move-corresponding wa_resb to IS_ORDER_COMPONENT_KEY.
    IS_REQUIREMENT_QUANTITY-quantity = '10.23'.
    IS_REQUIREMENT_QUANTITY-uom = 'KG'.
    IS_REQUIREMENT_QUANTITYX-quantity = 'X'.
    IS_REQUIREMENT_QUANTITYx-uom = 'X'.
    *IS_STORAGE_LOCATION-lgort = '1060'.
    *IS_STORAGE_LOCATIONX-lgort = 'X'.
    I_MATERIAL = wa_resb-matnr.
    IS_STORAGE_LOCATION-werks = wa_resb-werks.
    IS_STORAGE_LOCATIONx-werks = 'X'.
    IS_STORAGE_LOCATION-lgort = '1060'.
    IS_STORAGE_LOCATIONX-lgort = 'X'.
    CALL FUNCTION 'CO_XT_COMPONENT_CHANGE'
       EXPORTING
         IS_ORDER_KEY                     = IS_ORDER_KEY
         IS_ORDER_COMPONENT_KEY           = IS_ORDER_COMPONENT_KEY
         IS_REQUIREMENT_QUANTITY          = IS_REQUIREMENT_QUANTITY
         IS_REQUIREMENT_QUANTITYX         = IS_REQUIREMENT_QUANTITYX
         IS_CONFIRMED_QUANTITY            = IS_CONFIRMED_QUANTITY
         IS_CONFIRMED_QUANTITYX           = IS_CONFIRMED_QUANTITYX
         I_MATERIAL                       = I_MATERIAL
         I_MATERIALX                      = I_MATERIALX
    *   IS_ORDER_OPERATION_KEY           = IS_ORDER_OPERATION_KEY
    *   IS_ORDER_OPERATION_KEYX          = IS_ORDER_OPERATION_KEYX
    *   IS_REQUIREMENT_DATE              = IS_REQUIREMENT_DATE
    *   IS_REQUIREMENT_DATEX             = IS_REQUIREMENT_DATEX
         IS_STORAGE_LOCATION              = IS_STORAGE_LOCATION
         IS_STORAGE_LOCATIONX             = IS_STORAGE_LOCATIONX
         I_BATCH                          = I_BATCH
         I_BATCHX                         = I_BATCHX
         I_MI_CONFIGURATION_OBJECT        = I_MI_CONFIGURATION_OBJECT
         I_MI_CONFIGURATION_OBJECTX       = I_MI_CONFIGURATION_OBJECTX
    *   I_BATCH_SEL_CUOBJ                = I_BATCH_SEL_CUOBJ
    *   I_BATCH_SEL_CUOBJX               = I_BATCH_SEL_CUOBJX
    *   I_XFEHL                          = I_XFEHL
    *   I_XFEHLX                         = I_XFEHLX
    *   I_SOBKZ                          = I_SOBKZ
    *   I_SOBKZX                         = I_SOBKZX
    *   I_KDAUF                          = I_KDAUF
    *   I_KDAUFX                         = I_KDAUFX
    *   I_KDPOS                          = I_KDPOS
    *   I_KDPOSX                         = I_KDPOSX
    *   I_PSPEL                          = I_PSPEL
    *   I_PSPELX                         = I_PSPELX
    *   I_KZAUS                          = I_KZAUS
    *   I_KZAUSX                         = I_KZAUSX
    *   I_NAFKZ                          = I_NAFKZ
    *   I_NAFKZX                         = I_NAFKZX
    *   I_NOMAT                          = I_NOMAT
    *   I_NOMATX                         = I_NOMATX
    *   I_NFUML                          = I_NFUML
    *   I_NFUMLX                         = I_NFUMLX
    *   I_NFPKZ                          = I_NFPKZ
    *   I_NFPKZX                         = I_NFPKZX
    *   I_NOMNG                          = I_NOMNG
    *   I_NOMNGX                         = I_NOMNGX
      IMPORTING
        ES_BAPIRETURN                    = ES_BAPIRETURN "initial
        E_ERROR_OCCURRED                 = E_ERROR_OCCURRED"blank not showing 'X'.
    CALL FUNCTION 'CO_XT_ORDER_PREPARE_COMMIT'
      IMPORTING
        E_ORDER_KEY            = IS_ORDER_KEY
        ES_BAPIRETURN          = ES_BAPIRETURN
        E_ERROR_OCCURRED       = E_ERROR_OCCURRED
    * TABLES
    *   ET_ORD_KEY_MAP         = ET_ORD_KEY_MAP
    *   ET_BAPIRETURN          = ET_BAPIRETURN
    write : 'dfdfdf'
    Notable point is that after executing CO_XT_COMPONENT_CHANGE' parameters ES_BAPIRETURN and E_ERROR_OCCURRED are initial.
    This explains that the FM has been executed successfully.
    But still the changes are not done in production order.
    Please let me know where i am mistaken.

    nabheet,
    this is called expilicitly for commit.
    Not in any exit or something.
    Have a look at the source code which i have posted while starting this discussion.
    This below FM is called just after CALL FUNCTION 'CO_XT_COMPONENT_CHANGE'
    Look at the source code in starting of discussion. U will understand when it is executed.
    CALL FUNCTION 'CO_XT_ORDER_PREPARE_COMMIT'
      IMPORTING
        E_ORDER_KEY            = IS_ORDER_KEY
        ES_BAPIRETURN          = ES_BAPIRETURN
        E_ERROR_OCCURRED       = E_ERROR_OCCURRED
    * TABLES
    *   ET_ORD_KEY_MAP         = ET_ORD_KEY_MAP
    *   ET_BAPIRETURN          = ET_BAPIRETURN

  • Mass change - Production Order?

    Is there a transaction to do a mass change on production orders? Please let me know. Thanks you all!
    Vishal.

    Hi Vishal,
    To my knowledge there is no standard option. The only possibiity is to create and execute a LSMW or BDC for your purpose.
    Following are the objects where MASS field value changes is possible,
    BUS0015     Profit center
    BUS1001     Materials (industry)
    BUS1001001     Materials (retail)
    BUS1133     Rental units
    BUS2012     Purchase orders
    BUS2032     Sales orders
    BUS2104     Appropriation reqs
    BUS2105     Purchase requisition
    BUS3003     Purchasing info recs
    BUS3006     G/L accounts
    KNA1     Customers
    LFA1     Vendors
    Hope this helps....reward your points if so,
    Regards,
    Prasobh

  • Changing Production order quantity and invoicing again

    Production order was completed for less than full quanity and invoice was generated. . Now can we cancel the invoice and change the quanity in Production oredr to full quantity and then regenrate the invoice? Are there any other steps?
    Thanks

    Hi,
    SAP Confirmation for Orders is to caputre the actual activity used and goods issue (if backflushing is activated). MRP cannot sense the confirmed Qty.
    If you want the MRP to Plan the difference qty, you have to do GR for the 95, remaining 5 will be generated as planned order in next MRP run.
    You can also assign automatic GR for the last operation in your routing. So after confirming the last operation, GR will happen for the Qty. then you can run MRP, then it will generate planned order for qty 5.
    Thanks,
    JK

  • Change production order position (AFPO) when creating

    Hi gurus!
    I'm looking for a Customer function or BADI that allow me to change data in AFPO structure when creating a Prod.order.
    I tryed EXIT_SAPLCOBT_001  but i cannot modify data, i also looked at badi WORKORDER_UPDATE but it got all IMPORTING parameters so changes are not taken.
    Any hint?

    Hi Manish,
    We use alternative PP BOMs. The description of the FERT material master carries the description of the alternate BOMs combined. When any one of the BOM is selected while creation of production order the order header description carries the material master description which is a combination of the alternative BOMs. We need this to be editable so that the correct description corresponding to the relevant alternate BOM can be maintained.

  • Change Production Orders

    Hello.
    I need to change the production order dates and create partitions.
    Is there any FM to do this?
    Thank you
    Nuno Silva

    Hello,
    U can use
    CKMO
    CKMO_INIT_PROD_ORDER_HIST
    CNM2
    CNM2_PRODUCTION_ORDER
    CO1O
    CO1O_PROD_ORDER_INTERFACE
    CO2H
    CO2H_PROD_ORDER_CHANGE
    CO2H_PROD_ORDER_CREATE
    CO2H_PROD_ORDER_READ
    CO2H_PROD_ORDER_RELEASE
    CO2H_PROD_ORDER_SHEDULE
    CO2H_PROD_ORDER_TECH_COMP_REV
    CO2H_PROD_ORDER_TECH_COMP_SET
    CO2H_PROD_ORDER_USER_STAT_REV
    CO2H_PROD_ORDER_USER_STAT_SET
    COSF
    CO_SF_CHECK_PROD_ORDER
    COZF
    CO_ZF_PRODUCTIONORDER_CREATE
    If useful plz reward points.
    Vasanth

  • Change production order with deletion indicator

    Hello
    We have some production order with deletion indicator, status 'DLT'. We want to reative them and do GR. How can we do, can we remove the status 'DLT'
    Thanks
    Hailiang

    Hailiang,
    Its not possible to revoke the deletion flag.
    so you need to create new orders, and thats why its being suggested that think twice before setting deletion flag.
    if you are not sure with the orders you can set TECO , and it can ve easily revokeas and when required.
    Regards
    Ritesh

  • Change Production order thru a SAP Query

    Hello,
    i have a SAP Query to recalculate some conversion factors in the routing of a production order.
    Because the header unit of the routing is M2 and the routing operation is PC for example.
    No i need a idea how it is possible to update the fields in the production order thru this query. I would like to put some codeing in an addidional field which update this values for me.
    I found this function module CLOI_CHANGES_UPL_31, but i am not sure if i can update the conversion factors with it.
    Also my ABAP knowledge is not the best so it would assist my greatly if you can give me some help.
    kind regards,
    Bernhard

    Solved.
    I use first SM35 to create a record for batch input and after this i use this record in the coding in the query.

  • Change production order screen selection

    Dear All,
    I wonder, can production order have sreen selection control (suppress, mandatory, etc) like material master in MM module. Any idea?
    Thank you.
    Best regards,
    Freddy

    Dear SAP expert,
    I check the tcode you gave. can;t find field for production scheduler CAUFVD-FEVOR, will try screen variant SDH0.
    Will be posted soon.
    Thank you.
    best regards,
    freddy ha

  • Change Production Order Header description

    Dear Gurus,
    When production order is created for a material using CO01 the order header short description is picked up as the Material Master description; however it is non-editable. I want to make this editable. Please let me know the customizing settings to make this editable.
    Thanks & regards

    Hi Manish,
    We use alternative PP BOMs. The description of the FERT material master carries the description of the alternate BOMs combined. When any one of the BOM is selected while creation of production order the order header description carries the material master description which is a combination of the alternative BOMs. We need this to be editable so that the correct description corresponding to the relevant alternate BOM can be maintained.

  • Change Production Order ?

    Hi All,
    I need to modify an existing Production order, I want add some operations and components to the order. Is there any FM or BAPI to achieve the same.
    Thanks and Regards,
    Navneeth K.

    hi
       This is the bapi
    BAPI_PRODORD_CHANGE
    Regards,
    Musarrat

  • BAPI or FM for Transaction CO02 (Production Order Change)

    Hi I have to change fields(CHARG,LGORT,RGEKZ,MENGE,EWAHR) in sap transaction (CO02-Change Production Order) in COMPONENT LEVEL
    Can anyone suggest one BAPI or FM for this.

    Hi Ravi
    Thanks for your Suggestion.
    I tried with BAPI <b>'BAPI_ALM_ORDER_MAINTAIN'</b>.
    It is updating in the transaction CO02 also.
    Actually it is using for Internal Orders.Can i use this one for <b>PRODUCTION ORDER</b> Also.
    Umashankar

  • User exits for production order

    Hello,
    Hope all had good weekend. I need some help and would appreciate if someone can guide me here.
    I have a requirement where I need to develop an enhancement point for production orders transaction CO02.
    The enhancement will check the user's authorization profile. Based on authorization profile, enhancement point will decide and direct 'CO02-Change production Order' OR 'ZCO02 - restricted production orders'.
    Here are few question I have related.
    1. What user exit I should use for this above requirement ? This should be triggered whenever CO02 is being called either from SAP easy access menu or from a different transaction.
    2. How can I check/read users authorization profile within this user exit/enhancement point ?
    3. Based on the profile, how do I direct to CO02 or ZCO02 ?
    Will highly appreciate if someone could please share their knowledge on this.
    Thanks,
    JMC

    Hi J,
    can u tell me whats there in ZCO02 - restricted production orders', have u seen SHD0 -->creating screen/transaction variants ?
    Disabling tabs in SHD0
    Regards
    Prabhu

Maybe you are looking for