Disable certain changes in sales order after production order release

We are in the MTO scenario and are also using variant configuration. The business requirement is that after a production order has been released (REL status) the preceding sales order item should be “locked” for certain changes. Such changes would include VC and some other fields (e.g. quantity and dates). Some minor changes like texts should still be allowed.
The best idea we could come up with is to put some validation in the sales order user exits, but there are some disadvantages. It seems kind of strange though that there would be no such functionality in standard SAP (e.g. some changes in the order can’t be made after a delivery has been created). Is there by chance anything in the configuration that we missed?
I found this old thread, but it still seems to require user exits. Unfortunately couldn't find anything specifically on the production order / SO integration.
Thank you!

Hi Jelena,
Try in the userexit MV45AFZZ
  (form userexit_field_modification)
Example:
select * from afpo where kdauf = vbap-vbeln
and   kdpos = vbap-posnr.        
if sy-subrc = 0.
select single * from aufk where aufnr = afpo-aufnr.
if aufk-loekz = ' '.                                 
select single * from jest where objnr = aufk-objnr
and   stat  = 'I0002''   
and   inact = ' '.
if sy-subrc = 0.
screen-input = 0'.
endif.
endif
endif.
endselect.
.H.Terras

Similar Messages

  • Stanging indicator change in control cycle after production order released

    HI
    We have MM PP interface active
    i setup staging indicator 4 for one material via control cycle
    Production order is created and released
    now we would like to change staging indicator to 1 [pick parts]
    how we reread control cycles data in production order
    Thanks

    Try: CO02 > Functions > Read PP master data

  • Change input quantity of a production order in SAP - PP

    Hello,
    I am working in a custom code where one of the steps is to create production orders basically based on a product, workcentre and quantity for what I use 'COXT_BAPI_ORDER_CREATE' function module.
    Now I have a new requirement which is to be able to change the input component quantity to a different value than the output (similar to what you can do in transaction CO01, and like what the on-line help claims you can do).
    This new value should be on top of the ratio that is possible to specify in the BOM (i.e substract 5000 KG to what ever is in the input node after creation of the order).
    The GUI allows for this so I assume there is a way to do it in custom code as well, but has not find the way to do it or function to call.
    Can you advise on how to change the input quantity value without affecting other info of the order?
    Thanks
    Regards,
    Update: found this other thread Change components and Routing of production order
    Edited by: Mauricio Pego on May 3, 2011 6:00 PM

    Hi,
    The requirement can be met via BADi - MD_DISPLAY_ELEMENT (method - CHANGE_MDEZX_EXTRA).
    Give the specification your technical person & the same can be done.
    Regards,
    Vivek

  • Rescheduling Sales Order vs Production Order (Components)

    Hi gurus,
    Transaction V_RA rescheduling sales order with different filters.
    We need a transaction similar to V_RA that rescheduling sales order and production order (for availability check of components). Does it exist??
    I will reward points to all answers!
    Thank you!

    Daniel,
    It all depends on the business policy of each client. In our case, it was decided that in case Production orders and Sales orders compete for the same material, we will give priority to sales orders. Hence, we changed the timings of the nightly jobs. The backorder job was run first, so that stock was committed there first. Balance if any could go to Prod orders.
    But again, that depends on the strategy of your company.
    Ashutosh

  • After production order settlement, where does the cost go?

    Dear Experts,
    I understand after we did the "order settlement" for production order, the cost will be settled to material manufactured from the said production order.  Say, the total cost is $10,000 to produce 1000 units of finished goods (FG), then the cost settled to each individual FG at $10 each, am I right?  Where can I see the settled cost in the material master?..
    I checked in the cost center report, S_ALR_87013611, I can see the cost Credited from "production" cost center with a breakdown in settlement cost element such as machine hour, setup and personnel hour.  I understand the other side of Debit was to the production order, and only after order settlement, I'm not sure which cost center will be Debited.
    That would be the CO side, how about the FI, would there be any cost posted to the GL side after production order settlement to the material?
    Please advise..
    regards,
    Abraham

    Hi Abraham,
    It's not the button i mentioned. I was just trying to take u to the accounting document from the settlement screen. well just drill down the settlement screen and u'll get it. No big deal.
    But more important is the concept. I'll share my understanding here. (cost by production order)
    Any value that flow into controlling module should have a cost object. Here production order is the cost object.
    First u create a production order (cost object) for say 1 unit of X with a std price of Rs. 10
    Std price comes frm material master as a result of std cost estimate
    U start production - Raw materials are consumed - 2 qty x Rs.3.
    Entry RM Consumption Dr Rs. 6    Inventory Cr Rs.6 (Prod order is debited with Rs.6)
    Activity (Let's say machine hours - 3 Hrs x Rs.2) According to the routing it was  2 hrs but actual production took 3 hrs.
    Entry - None - But production order is debited with Rs. 6.
    When production is complete for 1 qty of X, entry flows
    Finished Goods Dr Rs.10    Change in Stock  Cr. Rs.10  (Production order is credited with Rs.100
    Abraham, now visualise both sides of the production order. It will have debit of Rs.12 and credit of Rs.10.
    Now accountant sees the production order and confirms the values are ok and puts the status of TECO to the order. which means the order is technically complete.
    Now when u run the order settlement, this production order is picked up by the system (due to it's status). System sees difference between debit and credit of Rs 2.
    So it cedits the production order with Rs. 2. Now both debit and credit of production order is equal (Rs.12)
    Entry Price diff A/c Rs,2     Change is stock A/c Rs.2
    Now this rs. 2 is settled to COPA. It does not flow to material.
    Reason:  in a std costing system materials are valued at standard cost and
    Hope this helps. Do revert in case of doubts.
    Best Regards
    Vimal

  • All default routing value has to be changed, while changed the work center in production order

    Dear friends,
    our client they want to change the work center in production order.according to production version work center also they are changed.so while change the WC,all the default value has be changed as per routing what we maintained in routing.At present we have to enter the manually change the W.C as well as set up time and operation time enter manually.Any other option to do the automatically capture value from routing while change in Work center in production order.pl help me on this.
    Thanks&Regards
    Sabhapathy R

    Hi Rahul,
    Thanks for reply. I am maintained in diff value  maintained routing , Ex :First routing i have  work center 'X' value maintained as a setup time in 15 Min's and operation time 10 Min's
    second work center 'Y' I have maintained as set up time 10 Min's and operation time 30 Min's,
    Now I want to change the work center in production order as a 'Y' so whatever value maintained in routing , it has to be changed automatically (10 min's and 30 Min's), but system will not change only old value only picked (15Min's AND 10 Min's).
    Now I think you get to know what the client requirement, kindly do the need full.
    Regards,
    Sabhapathy R

  • How to change the status of a production order

    Dear All,
    May i know how to change the status of a production order.I want to de-active the status like OPGN (Operation generated).This status is updated as there was no routing assigned to that particular production order during its creation
    Thanks and Regards,
    Varun Siddharth

    Dear,
    When you create a production order, an operation created by the system is generated automatically if no routing is used for the creation. As a result the order header receives the status HOGAN; the operation created automatically also has this status.
    If you delete the operation created automatically and then do not have the status HOGAN.
    To avoid this maintain the Routing for the material or delete the setting of default operation from OPJG.
    Regards,
    R.Brahmankar

  • Delevery(Sales invoice) against Production Order

    Dear  All
    In COOIS report can we check the Sales  according to Production order.
    Within a month  can we check the booked sales of that particular order. (Not 1 by 1)
    It should be commulative.
    Rgds
    Pankaj Agarwal

    Pankaj,
    You cannot see these informations in one report
    i.e. sales order qty/delivered qty/production order target qty/GR qty/WIP qty. input being sales order creation date.
    You need to refer to sales order VA05 to get sales order for a perticular month.
    take this sales orders ifrom this report(click on the column and CONTROL C)
    goto COOIS
    in the sales order field, click multiple selection icon click on the green button(import from text file)
    you will get import from local file screen, you click on "upload from clip board" icon...you will get the sasles orders and then you can get the details of thoses production orders for the saales order in that month.

  • Any stanard BAPI have both sales order and production order

    hi Experts,
    i need to Identify any standard BAPI have both sales order and production order. If such BAPI is not available, create 'Z' BAPI to do the same.it's my require ment?plz give me suggestion it's useful for my project. i will give good points.
    thanks and regards,
    bbm

    hi eswar,
    can you give me how to do? and what i can use import,export,table and sourcecode bcz i am new in BAPI side even now i am working in SAP XMII project.
    so plz guide me.
    thanks and regards,
    bbm

  • Assign batch number from sale order to production order automatic

    Dear all, I have a question for all. Please help me in this case
    My scenario is make to order
    I have a sale order, when i create sale order, i have assigned batch number at each line item.
    When i run MRP for sale order (MD50), the system generate a planned order for it and I've converted to production order.
    So when I view production order, I think that batch number what I've assigned to sale order will be assign to production order but that is not happen.
    So, can you help me solve this problem. I think that sap can assign batch number from sale order to production order automatic but i don't know how to configure that
    Thanks all

    Hi,
    To the best of my knowledge, when system is generating planned order / production order from sales order system doesnt copy batch number from sales order.
    In fact , you are following wrong practice for generating batch no.
    Follow procedure like this :
    Create sales order without any batch assigning there. Run MRP with MD50 and then convert planned order to Production Order.
    While creation / releasing of Production order, you have option to generate batch automatically by following way :
    Go to OPKP (Production Scheduling Profile) -> Take your plant & give suitable name to Production scheduling profile-> Batch Management tab -
    > Automatic Batch creation in the order maintain this field as
    1     Automatic batch creation at order creation
    or
    2     Autom. batch creation at order release
    This will generate batch number automatically at the time of creation or release of order.
    Then follow same process i.e. Goods Issue, Confirmation & GR for production order.
    So you will get sales order stock in the form of batch managed.
    Check & revert if any issue in above flow.
    Regards,
    Tejas

  • Is possible to create a TO automatically after production order confirmation?

    Hi all
    I have just a question in order to know if we can configurate a procedure to a Production Order, so my question
    is possible to create a TO automatically after production order confirmation in a standard enviroment?
    Thanks in advance for all your comments

    Hi Gurus,
    Thank you for your help in this case.
    Process:
    The customer create a production order in CO01 and then they confirm the order in CO15, after confirmation TR is created ( we can see this in LB10 ) and negative stock is created (  we can see this in LS24 ).
    Requirement:
    They are asking to create the TO automatically after the production order confirmation. Negative stock is afecting the process.
    Workaround:
    They are creating the TO in background in LB10. ( negative is fixed )
    Question:
    Can we create the TO automatically after confirmation in standard configuration?
    if no ,  how can we confirm this TO .using a JOB option?
    TR created after confirmation
        TR header
    LS24 negative units.
    Regards!!
    Ronald

  • Costing affect with MRP at planned order level and after production order

    Dear all,
    How the costing affect with MRP at planned order level and after production order completion?
    Edited by: Maulik on Jun 24, 2009 1:59 PM

    Dear Maulik,
    check Mr. Vinod's inputs abt costing
    1. Maintain following master data:
    MM01 Material Master with Costing and accounting view. Make sure all the cost Std, Moving avg etc is maintained along with valuation class in Accounting view 1. In costing tab pls make sure "with qty structure" and "Material Origin" are ticked.
    CS01 BOM with components marked with costing relevance in Status/Long Text Tab. Also check all the qty are correct.
    CR01 Work Center in Basic data tab maintain standard value key sau SAP1 and in costing tab maintain the workcenter, activity type and formulas (Usually standard formulas like for Machine Hours SAP006, Labour SAP007, Setup Activity SAP005 is used).
    KL01 Cretae activity types, in basic data tab maintain ATyp Category AS "1" and cost element (as provided by your FI Guy).
    KP26 Activity pricing, here with the combination of Activity type and the cost center you assign price to the activity.
    2. SPRO Activity
    Maintain Costing sheet IMGControllingProd cost controllingProd Cost PlanningBasic settingoverheadsdefine costing sheet.
    OKKN Define costing variant, you define costing type (In the costing type, you define the purpose of a material cost estimate by specifying, for example, which field in the material master record the costing results can be transferred to like std price, moving avg etc), Valuation Variant (defines how the prices are prioratized), date control and transfer structure.
    3. Costing Process Flow:
    1. CK11N CREATE COSTING RUN
    2. CK24 CREATE PRICE UPDATE (You Mark and release the prce to be updated)
    4. COSTING VARIANT WRT PP
    1. OPL1 DEFINE COSTING VARIANT WRT PP
    2. OKK4 or OPN2 DEFINE VALUATION VARIANT
    3. OKK1 or OPM1 DEFINE COSTING TYPE
    4. OPL8 ORDERTYPE DEPENDENT PARAMETER (assign the above creted costing type for both planned and actual)
    Hope this will throw some light on product costing.
    Regards
    kumar

  • Pegging gets broken after conversion planned order to production order

    Hi All,
       I am getting pegging of finish product and dependent product planned order in MRP after taking MRP run.......But after converting the planned order to production order all order gets start from today by breaking the  relationship of each other..........can anybody explain me why this is happening.............your answer will be appreciate ........thanks in advance.........waiting for reply........
    Best Regards
    Sharad

    If it is backward scheduling, system takes the requirement date and starts going back…
    If the start date calculated is less than today date, then there are two ways system will do the adjustment.
    If in scheduling setting for production order, if there is a setting – start date allowed in past and you have entered some days, then system will go back to that date and schedule so that production order will start from past i.e. from today.
    Now if past days are not allowed then system will switch over to today scheduling I.e. the start date is today.
    In your case production order start date is today….this may be your case.
    Just for the case of testing see what is the production lead time and calculate the start date manually and see whether it is going beyond today?
    What is the exception message you have in the production order line in MD04…this also will give some idea…

  • Sales order and Production order status

    Hi Colleagues,
    We need to use sales order status functionality, so that when sales manager set status , for example, "dont produce" a production order can not be released.
    Has any one dealt with that?
    Thank you.

    Dear,
    You can give the reason for cancellation  of Sales Order item & block the sales order. When the sales order will get block it will get disappear from MD04 so in next MRP run if there is any planned order it will get deleted. But suppose by that time you had converted the Planned order in Production Order you will get Exception message no. 20 in MD04 list. So this means that there is no requirement & order should be cancel.
    Still you want to have restriction of checking the Sales order is open or not, then i hope you are working in MTO scenario & every production order is created w.r.t SO. You can use following Exit in such case.
    PPCO0021 Enhancement for Order Release
    Exit - EXIT_SAPLCOZR_003.

  • Relation between Sales order and Production order

    Hi,
    In Make to stock scenario how the relation between Sales order and production order are related.In which table we will get the related fields (expect AUFK,VBAK,AUFO).
    warm regards,
    Surendar reddy.

    The relation between sales order and prodution order  is as follows.
    Pass AUFNR to AFKO/AFPO  Get AUFPL.
    Pass AUFPL to AFVC Get BANFN.
    Pass BANFn to EBAN Get EBELN.
    Hope this works .
    Cheers,
    Lakshmi Prasanna Gandham

Maybe you are looking for

  • Query with totals in last row

    Hi All, My query below works well for my purpose of showing open deliveries and info, however It does not display drill down arrows because I am using UNION operator. For Browse does not work. Could anyone help/advise me on any other options or metho

  • Iphone can not be turn off

    My Iphone can not be turn off, and I need to restart it. It is stuck in the white screen  with the  black apple in the central area. Help , advise? iPhone 5s

  • How to modify the title of the main BP screen??

    Hi experts, We have done an initial load to upload the business partners from R/3 to CRM. All the business partner have benn created as Organizations, although many of them are considered Persons for my customer. We have written a OSS note and SAP ha

  • Sockets and FileConnection in J2ME

    hi can anyone pls help me with FileConnection in j2me...i want my j2me program to read from a file.....do i need to download additinal package, if yes, which one? I also need some guidance in j2me socket programming....i want my j2me client program t

  • Force downloads/kill streaming in Podcasts app?

    I need to know that my podcasts are downloaded and available when I am not connected to the internet. With iOS7 and the new podcasts app, is there any way to FORCE them to download and not ever try to stream?  I listen to sometimes dozens of podcasts