Work Center update during work order save (SAP PM) using exit IWO10009

Hi All,
I am updating the work center in the operation record of a work order using exit IWO1009. In the debug, the internal table for operation is updated successfully. But once the processing is done and I see the order though t-code IW33, I couldn't see the updated workcenter. And surprisingly, plant field which I am updating with work center, is getting updated in the operation and I can see this in IW33.
Pls help.
Thanks,
Bhaskar

Here is the code:
    REFRESH : lt_afvgd.
Getting Operation details
    CALL FUNCTION 'CO_BO_OPR_OF_ORDER_GET'
      EXPORTING
        aufnr_imp = caufvd_imp-aufnr
      TABLES
        afvgd_get = lt_afvgd.
    IF caufvd_imp-AUART = lc_auart1 or caufvd_imp-AUART = lc_auart2 .
Determination of Work Centre for Operation Relevent To PTE Eng.
      CLEAR : ls_afvgd.
      READ TABLE lt_afvgd INTO ls_afvgd WITH KEY usr00 = 'PTE'.
      IF sy-subrc eq 0.
        ls_afvgd-arbpl  = caufvd_imp-VAPLZ.
        ls_afvgd-WERKS  = caufvd_imp-VAWRK.
        MODIFY lt_afvgd  FROM ls_afvgd TRANSPORTING arbpl WERKS WHERE usr00 = 'PTE'.
      ENDIF.
    endif.
**-- Updating operations buffer
    CALL FUNCTION 'CO_BO_UPDATE_OPR_OF_ORDER'
      TABLES
        afvgd_upd = lt_afvgd.

Similar Messages

  • Statistic condition values not updated during Sales order Settlement

    Hi,
    In our client we have different Price condition types for based on scenario wise. Ex: Domestic Sales (ZPR1) and Export Sales ZPR2. I have maintained separately value fields for each price condition types.
    We are booking some financial charges, and interest on working capital etc., this cost we need to transfer to COPA each Material wise based on sales revenue.
    For this purpose we have created one COPA Assessment Cycle.  Tracing factor is Sales Revenue and receiver is Materials.
    In COPA Assessment cycle we can give only one base means ZPR1 related value field or ZPR2 related value field.
    For this reason we have created one new statistic condition type,  what is amount there in ZPR1 that amount will updated automatically in statistic condition place and so that we can give once one trance factor in COPA Assessment Cycle. We have assign this statistic condition all pricing procedure
    Now my problem is in MTS scenario statistic condition values updated correctly. But in MTO scenario sales order settlement time statistic condition values not updated.
    So is it possible update during sales order settlement time statistic condition values.
    Please give me suggestion.
    Regards,
    Thiru

    Hi Ajay Sir,
    As you said is correct.
    But in our client we have around 9 Plants and each plant manufacturing product are different. Client Requirement is in COPA Report they need see each product wise sales revenue. In this way we mapped product wise value field.  System already mapped one guy in this way earlier. Now I am doing some changes for relevant to month end activities.
    Some financial changes transfer to COPA each plant wise on Material. Here sender is cost center and receiver is Material. Base is Sales Revenue.
    Please suggest me is there any alternative.
    Regards,
    Thirumalesh .

  • Work center selection during UD

    harhe e Hi,
    We have the following scenario,
    Production guys confirmed order confirmation or make backflushing confirmation to update the WIP/FG stock,
    then quality cleared such stock through posting to unrestricted or blocked stock or rejection store location,
    Quality person requires during UD posting ,work center/Machine selection should be there in QA32 transaction,
    so that the analysis could be made for the work center,
    Best Regards,
    Devendra

    Using Inspection Point assignment, you can record the Work Center / Machine.
    But with Inspection Point, you can't have F4 selection option in standard. You have to type the Work Center code manually which may prone to error.
    You can check for some user exits to define Sub screens to pop up.
    QEEM0029  User-Exit for Characteristic Overview Subscreen
    QEEM0030  User-Exit for Subscreen: Characteristic Single Screen
    QEVA0004  Exit for changing information line in usage decision header
    QEVA0005  User subscreen for displaying add. data for usage decision
    QEVA0006  Entry to usage decision transactions

  • Dyanmic work center selection in production order based on material

    Hi ALL,
    We’ve a business requirement to support the following functionality.
    There are four similar type of milling machines say MILL1 MILL2, MILL3, MILL4, we create a single work center called MILLMC by specifying total capacity of four milling machines in the capacity header screen of work center with 4 individual capacities. And we mention work center MILLMC in the operation of routings for respective materials.
    However, during production order creation, there needs to be provision for detailed planning of work centers as per the following requirements
    In production order, some operations can be performed on any one of the machines MILL1 MILL2, MILL3, MILL4, so provision needs to be there to enter exact machine on which it is performed in the production order operation after the details are copied from respective routing during production order creation.
    In production order, some operations can be performed on only MILL3, so system should select only MILL3 in the respective operation of the production order
    In production order, some operations can be performed on either MILL1 or MILL2 or MILL4 and not on MILL3, so system should not select MILL3 in the respective operation of the production order.
    Please provide your valuable feedback to support the above requirements.
    Regards,
    Satya.

    Hi Satyanarayan,
      Please do refer to the below document. I think the same concept can be used for work centers as it is used for resources in PI industry.
    Resource Classification in Master Recipe for Planning
    Regards
    Kalyan

  • Work center change in Service order not happening

    Hi Experts,
    I am facing a problem when i try to Call a function module in update task where the Function module contains a call to BAPI_ALM_ORDER_MAINTAIN without COMMIT WORK.
    This is done in order to update the Work Center while there are changes to the Warranty Status of the Repair Order.
    So , i have written the Code in the Userexit_SAVE_Document so that the Update gets done.
    But there might be problems when the Repair order does not get saved.
    So keeping that scenario in mind, I tried using the Update task Function  Module in which i wil lbe calling the BAPI for Changing/Updating the Service order.
    BUT , The Change is not getting reflected in the Work centre of the Service order.
    Thanks
    VIJAYB
    Edited by: Rob Burbank on Jun 5, 2009 10:10 AM

    Hai experts,
    i have found the way to do the work center change in update task method .
    I did call the BAPI_ALM_ORDER_MAINTAIN but without using COMMIT since this function module is called in Update task method so whatever is the change being done by that BAPI will be reflected in the Service order once the Update  task has been done for that service order.
    Thanks and regards,
    VIJAYB.

  • Work Center Mandatory  in PM Order

    Hi Experts,
    May i know how can i make Mandatory, both  Work center (Mn.wk.ctr) Under Person Responsible sub screen and the work center ( WkCtr/Plnt ) under first Operation sub screen  of the Header TAB in PM Order.
    Regards,
    Kavvya

    Hi,
    The Work Center (CAUFVD-VAPLZ) field under 'Person Responsible' should always be mandatory as it is hardcoded.
    The Work Center (AFVGD-ARBPL) of operation can be set with transaction OIOPD. If the 'work center' field is not available in OIOPD, then see the correction from note [1282463|https://service.sap.com/sap/support/notes/1282463].
    -Paul

  • PM Order - Change operations Work Center to Main Work Center

    Hi Experts,
    We have prepared a tool for client, which create Maintenance Plan and order in the background.
    The order created is having "Main Work Center" defined at header and "Work Center" at the operations level. In the current scenario the "Main Work Center" and "Work Center" are different say 'ABC' & u2018XYZu2019.
    Client has the requirement that work center maintained at operations should be same as the main work center.
    We need to implement the solution to take care of work center to be same as main work center while creation of the order in the background.
    Has anyone worked on the similar requirement before?
    I checked for existing USER EXITS for IW31/32/33 and found only one IWO10012. This doesnu2019t seem to be much useful.
    Please suggest any possible solution.
    Thanks,
    Ankur Sharma

    Hi,
         The work Center entered by default comes in operation work center, u can do validations while saving the Order :-using user exit : IWO10009 PM Order: Customer Check for 'Save' Event.
    regards
    pushpa

  • Require help on coast center and work center tables through sales order

    dear experts
    my requirement is to report the cm05(capacity planning ) transaction.
    The original capacity planning consists of workcenter details.
    but my client needs the report as follows
    on which sales order and on which work center we require the capacity of materials.
    any tables and fields for this report please.
    help needed.
    kindly update me.

    hi,
    Please explore table CAUFV View "Order Headers PP/CO" ,here you will find the relationships between the three.
    Regards,
    Neha

  • Read Routing and work center details from transfer order

    Hello
    I am using transaction LT31 to print a form for the transfer order.
    The customer wants me to print a field that is in the work center details of the routing for this material and plant.
    I can see this data with transaction CA02 where i enter material and plant,and then the work centers are beeing displayed.From here i can double click on the work center and see the field Supply area that i have to print.
    My answer now is,how to read details on the work center starting from my transfer order number.Which is the table connection between transfer order table LTAK and the tables where i can find the work center details.
    Thank you

    I have found the solution:
    ltak-tanum = mseg-tbnum
    read aufnr from mseg and go to afko
    mseg-aufnr = afko-aufnr
    read plnnr from afko and go to plpo
    afko-plnnr = plpo-plnnr
    from plpo read arbid and go to crhd
    plpo-arbid = crhd-objid
    from here,we can find the arbpl and the field that i was looking for PRVBE

  • Work center change during MFBF

    Hi,
    In REM scenario, During backflush, i am replacing workcenter while posting actual activities.
    In which report can I check quantities confirmed with new work center.
    Regards,
    Wadajkar

    Mangalraj,
    I checked MCP7, Its not showing any entry. If i check with MCP6, system shows quantities confirmed on different workcenter than planned. However, field of new workcenter name and description is blank.
    Regards,
    Wadajkar
    Edited by: wadajkar on Sep 22, 2011 1:29 PM

  • Operations Executed at a Particular Work Center for a Sales Order

    Hi All,
    We are using a MTO scenario. I have to get a report in which I have to list work center wise operations (and the corresponding material) which are carried out for a particular sales order.
    User will create a sales order, and then do Sales Order based MRP in MD50. System will do a BOM explosion for the header material and will generate planned orders for the production relevant materials. User will then convert all these sales order specific planned orders to production orders. For a particular sales order these would be many operations (at different BOM levels may be ) that would be carried out at a particular work center. I need to get a logic for generating this report. Is there any FM etc or table table-field fetchig logic....
    Regards

    hi,
    maintain initial screen entry as sale order.
    Pass values to AFPO table. Identify all AFPO-AUFNR values which satisfies AFPO-DAUTY = 10
    Transfer AUFNR values to AFKO and check AUFPL (Routing number of operations in the order)
    Transfer AUFPL  to AFVC and check the value of AFVC-ARBID (Object ID of the resource)
    Transfer ARBID to CRHD and check value of ARBPL (Work Center)
    Regards,
    Pavan

  • Cost work center A to work center B

    Dear All,
    I must to modeling this situation:
    I created an production order. In routing I used an work center A.
    After I confirmed a half of quantity, I want to transfer the cost the work center A to and other work center B.
    I want to keep the history u2018s confirmations on the work center A.
    The first confirmation CO11N on the order 1 and work center A => Quantity 1 hrs.
    Actually we transfer the cost by KB15N by at the level EOTP.
    We want to push the cost down at the work center.
    So we want this situation :
    The first confirmation CO11N on the order 1 and work center A => Quantity 1 hrs.
    The second confirmation on the order 1 and work center A=> Qauntity -1 hrs ( Itu2019s possible and how?)
    The third confirmation CO11N on the order 2 and work center 2 => Quantity 1 hrs.
    Thank you for your answer.
    Regards,
    Géraldine

    Hello,
    The user clock in his time by CO11N, for example 2 hrs, on the posting date 2011.02.01 (on the project A).
    After the cost transfer into CO.
    At the end of the project, on the posting date 2011.06.01 , we want to transfer 1 hrs and the cost to an other project B.
    I try two incorrects solutions :
    - The first : I can't use the CAT5 by negative value.
    - The second : The user don't want to modify or cancel the initial confirmation.
    How can i to deduct one hour from the initial project to the second project, and i want to keep the information work center ?
    Can you help me ?

  • RG23D Updation during returns Order Cycle.

    Hi,
    My client is not a manufacturing company,but a Depot,hence they cannot claim modvat.
    The customers they sell goods to,can be manufacturing companies and can hence claim modvat for the same.
    For this,we use j1ig in MM and J1iJ in sales to capture and tehn pass it on to the customer during sales order processing.
    at the billing level.
    Now, when the customer returns the goods,thru returns configuration,during PGR, i want to know wether the RG23D Register gets updated or not ?
    Also that, is there any other alternative way,where we can configure the same, in case of DEPOT Excise.
    If you have any solution on soft-copy,you can mail me on:   [email protected]
    Regard;s
    Priyanka

    Hi,
    For credit memo, you can get return order numer if you maintain "B" in copy control
    If you need  Previous sales order number then maintain sales order number in PO field of return order and you will get in credit memo if you set "A" in copy control
    Thanks
    Chidambaram

  • Serial nos entry during production order confirmation in CO15 - User Exits

    Hi all,
    Is there any user exit existing for a serial nos screen pop-up during production order confirmation.
    Regards,
    Sravan Kumar V

    Hi,
    For serial numbers at the time of goods receipt, u have to activate sr. no. mgt for that particular finished product. This can be done by assigning sr. no. profile in the material master record of that material in work scheduling view. once this is done , system will automatically prompt for sr. nos at the time of goods receipt. I am not aware about any user exit.
    Thanks & Regards,
    Vijay Patil

  • Partner update during IW31 Order creation

    Dear all,
    In one of my requirements, I am trying to create a PM Order through IW31 and not filling the Partner on the screen. The requirement is to calculate the PM Partner in the flow ( Currently calculating it in the WORKORDER_UPDATE BADI ).
    I need to fill in the Partner function and partner on the partner tab during the same course of flow with the calculated values, but I don't find a way yet !
    Is there a user exit or a BADI which can be used for filling the PArtner function and Partner on the partner tab during the flow of IW31? I looked at all the BADI's by setting a break-point on CL_EXITHANDLER, but none seems to serve the purpose.
    Your inputs are awaited and much appreciated. Thanks!
    Warm regards,
    Vijay.

    I run into the same issues with my partner function in a solution that I am currently working on.  If the solution doesn't call for a reference object at the time of order creation, the service order won't determine the partners correctly off the customer master as it does in SD.  I believe a user exit has to be inserted to determine the partners from the order header partner because CS is expecting that service orders will be created with a reference object at all times.

Maybe you are looking for

  • Connecting a dataset to a crystal report

    How we can connect a  blank crystal report created by visual basic 2005 IDE to a data set. Backend database is in SQL server 2005.

  • User exist for purchase order with account assingment

    As our org has gone with Project specific stocks. we are maintaing seprate "Z" table which conatisn datas like WBS element, material code & material price. And when we raise a P.O for a particular project with WBS element and when we enter material c

  • InDesign crashes when opening saved document

    I have working on a indd-file for a couple of weeks and saved it all the time with no problem but yesterday when was working on it and used backtrack + Z (undo) to go back to regret my changes the application crashed. When i was trying to reopen it a

  • How to create a folder

    I have a group of pages with the same theme.  How do I create a folder for them on desktop?  I don't want to save them in Cloud.

  • Solaris 10 3/05 x86 partition problem

    I have tried to install Solaris 10 Express 3/05 on a blank 30GB IDE HDD(c0d0). When I tried to install, install shows error: slice "/" cannot exceed 1023 cylinder in HBA (something like that). I tried to keep /var, /usr, /home, /opt out of /, but sti