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.

Similar Messages

  • Production Order outbound from SAP to PI

    Hi
    Can anyone help me to send Production Order outbound from SAP to PI?
    I have used message type LOIPRO and Basic type LOIPRO01. But I have to enhance it for some customer fields. I am triggering the IDOC from user exit of Production order.
    Let me know followings:-
    1. Is there any AFS specific IDOC type available?
    2. What is the triggering point for Production order IDOC?
    Regards,
    Subhankar
    Edited by: Subhankar Chattopadhyay on Nov 12, 2010 3:57 AM

    Hi,
    I am not aware of AFS specific...
    But in order to get trigger the idoc you can use the output types...using NACE for generating and sending to PI...
    if you are using change pointers then i think you need to schedule the job for triggering the data in the form of idoc...
    Hope this gives some clues..
    Regards
    Rajesh

  • 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

  • Release a production order thru sales order

    Hi all,
    Hope everyone's doing well.
    Can anyone guide me as to how we can release a production order thru a sales order and henceforth confirm it?
    Thanks in advance,
    Thanks & Regards/Aryan

    yes it is [possible to convert sales order to production order directly.
    You can use strategy 82 for this.

  • 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

  • How to make plant mandatory field in Sales order thru standard SAP process

    Hello,
    There is requirement in business that User wants to make plant field Mandatory in Sales order line item once material number is entered. Can you please guide me how I can make Plant field mandatory thru Standard SAP process.
    I had checked it thru Incompletion process & Order type incompletion messages but still Plant field is not becoming mandatory in Sales order. It only gives incompletion log while saving the SO. Please suggest how to do it thru Standard SAP process.
    Thanks & Regards,
    Saurabh

    HI
    Plant will determine based on Customer-material Info Record, Customer Master data & material Master
    If plant is not mandatory in customer Master and Customer material no problem
    but at the time of creating the material master  Plant Mandatory as per my knowledge, so system will pick plant from Material master  that is the case why you required plant Mandatory in Sale order level
    and you need to do Shipping Point Determination for that plant
    Did you check by using User Exit ? if not try once what i have suggested
    Try with User Exit
    MV45AFZZ , FORM USEREXIT_SAVE_DOCUMENT
    VBAP - WERKS = " "
    if VBAP - MATNR , POSNR = not initial
    Error Messgae "E"
    Check and Revert
    Regards,
    Prasanna
    Edited by: prasanna_sap on Feb 14, 2012 11:41 AM

  • 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

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

  • 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

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

  • Archving production order in sara - sap content server

    Hello,
    we run the sap content server. I have successfully created a content repository that is supposed to store the production orders.
    Now when I go to SARA and enter object PP_ORDER, go to storage system - store files and select the archive file I've created, I get the following error message after starting the archive job:
    HTTP error: 401 (Unauthorized)  "Security SsfVerify failed rc=7, lasterror=4129,PSE not existant, PSE=
    ?\C:\Program Files\SAP\Con
    Message no. CMS025
    Diagnosis
    Error in accessing via HTTP
    401 (Unauthorized)
    "Security SsfVerify failed rc=7, lasterror=4129,PSE not existant, PSE=
    ?\C:\Program Files\SAP\Con
    Any help?
    Thanks
    Anne

    Hi all,
    I got the same issue after sent certificate successfully in OAC0.
    "HTTP error: 401 (Unauthorized)  "Security SsfVerify failed rc=7, lasterror=4129,PSE not existant, PSE=C:\Program Files\SAP\Content"
    Dis you have the solution?
    Thanks,
    Hung.

  • Production Order to FI - Amoratization Query

    Dear Gurus
    Kindly need some assistance on the issue, now sure if its the right forum - Regarding transferring Production order to CO Order Int Order Amoratisation Query.
    The business have unfortunately reused over 40 material when they should have created new ones.
    From an MM viewpoint it is not advised reusing materials. New material numbers should have been created. However as stock has now been receipted and sold it is not possible to use a new material number.
    These materials originally had stock transferred from other materials onto batch and valuation 01. This was fully sold but now the Business have re used the materials with a new description and a new Production Order created.
    Because stock was previously transferred onto batch 01 via - old prod order it appears the business have created the Production orders for batch 02 which has been Goods receipted against. However the business have added the costs to an Internal order batch 01 not 02.
    So essentially our batch and valuation numbers for the production order and internal order are out of sync. Would this cause a problem.
    I believe the Business want to know if the goods receipt they have done against Production order 02 viewed via MMBE - Stock Balances will trigger the amortisation of the costs on First cost order 01 Internal Order.
    Because the production has already been sold and GR, we will need to look for a solution going forward, so the business does not encounter this problem again. Would this be in FICO or can they do anything to amend the production order batch so in matches with the internal order/asset to be amoratized to.
    Thanks
    Edited by: Rick Desilva on Jan 26, 2011 9:24 PM

    Hi Gordon and Joseph,
    Thanks to both of you for giving me queries.
    Gordon, I made 3 production orders for testing from MRP order recommendation window from which 2 production orders has release date of today 9th July, 2010 (due date 12th July monday) and the 3rd one has release date of after weekend i.e. 12th July 2010 (due date is 13th July). release dates are calculated by MRP acording to the items' lead time and due date.
    Gordon, when I applied your query It gave me msg 'no data was found as a result of this selection criteria' Can you explain what your query will give me in result?
    where as Joseph, when I applied your query on alert, it gave me all 3 production orders as an alert to be released. I was expecting it will give me alert for 2 production order for today as their release date in MRP is today(9th July, 2010) and the alert for 3rd production order should come on 12th July and not today.
    what I understood your query is displaying all production orders which have status 'planned' regardless of their release date.is it?
    Joseph can you edit this query in such a way that It should consider the release date (calculated from due date and lead time in MRP order recommendation window) and display only those production orders which should be released today and exclude those which have release date in future. so that I can get alert for only those production orders which should be released today.
    I hope good response from both of you
    Thanks and best regards,
    Farhan

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

Maybe you are looking for

  • How to get hardware's attention as soon as it gets plugged in?

    I have this joystick with a cthulhu board, in case anyone has one and could use the details, and it seems to disconnect right after I plug it in. According to the person who builds the PCBs it appears the cthulhu is trying to go into PS3 mode since n

  • BPM and UI5 interaction

    Hi all, I'm investigating how BPM human-centric tasks can be developed with UI5. I've gone through the available excellent blogs, so I'm aware of the OData API exposed by BPM. However I still have one major question: For a number of reasons, I might

  • Retrieving documents from UCM

    Hi I have created a webcenter portal application that retrieves contents from UCM using the RIDC api. Currently any ucm user is able to access any document from UCM. I want the application to work such that a particular user say 'x' is able to access

  • Re-Implementing Standard Class's Method

    Hi , I want to Enhance a Standard class's Method. For this class "/SAPSRM/CL_CLL_PWL_A_SC_H" i want to write a new implementation for method "IF_POWL_FEEDER~GET_DETAIL_COMP". This method is inherited from "/SAPSRM/CL_CLL_POWL_BASE_AGENT" and is imple

  • Photo Booth Plug-Ins?

    I'm not sure exactly where my question fits, so please let me know if I'm mis-posted, and where to repost if necessary. My question is, can any sort of "plug ins" be had for Photo Booth? I'm speaking of somethhing that adds more "effects" than the tw