Sales order stealing components from Production order

In MTS scenrio, we have a main assembly "A" which has a sub assembly "B" as its component.  "A" is produced inhouse and "B" is externally procured. For producing one  ea of "A", a quantity of one ea of "B" is required.Sales order 001 is created for "A" for quantity 10 ea. "B" has a stock of 7 ea, where as there is no stock of  "A" . MRP run for "A" creates a planned order for "A", and also a purchase requisition for "B" for 3 ea. The purchase requisition of B is converted to a Purchase order. Now, the planned order of "A"  is converted to Production order. The material availability check for the Production order has no missing parts. Now, a Sales order 002 for 8 ea is created for "B". The sales order now steals the stock that was already reserved for the production order. We do not want this to happen. We would like the sales order propose a date based on the replenishment lead time. Your valuable suggestions to solve this problem is appreciated. Also the following settings were made,but still it is not working. The  SD checking rule A  has "include dependent requirements" selected andalso the reservations are also considered for the availability check,

I have a very similar configuration but still sales orders are getting confirmed when we move the inventory and  not for the released production orders.
We would want the released production orders to get the inventory first followed by customer sales order and STOs
any pointers will be of great help.
Message was edited by: Joe Aravindanbb

Similar Messages

  • Class for Purchase order item components and Production order components

    I'm looking for a some classes.   I'm very new to objects, so I could be searching for them incorrectly.
    The first class I'm looking for is a purchase order class that contains the item components.  I've looked at CL_PO_ITEM_HANDLE_MM and CL_PO_HEADER_HANDLE_MM.  I couldn't find components as a part of either of the classes.
    The second one I'm looking for is not as critical.  It is for the components for a production order.   I have a function module: BAPI_PRODORD_GET_DETAIL that gets the components for the order.  However, to take advantage of objects - I read somewhere - that if possible I should avoid calling a function module.
    Any help that you could give would be greatly appreciated.
    Thank you!
    Michelle

    Hello Michelle
    I do not think there are already classes available on ERP 6.0 for reading production order (yet I might be wrong...). However, regarding purchase order you are already on the right track.
    *& Report  ZUS_SDN_OO_READ_PO
    *& Thread: Class for Purchase order item components and Production order components
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1206523"></a>
    "& NOTE: Coding adapted from BAPI_PO_GETDETAIL1
    REPORT  zus_sdn_oo_read_po.
    TYPE-POOLS: abap, mmpur.
    PARAMETER:
      p_ebeln   TYPE ebeln  DEFAULT '3000000045'.
    DATA: gs_document    TYPE mepo_document,
          go_po          TYPE REF TO cl_po_header_handle_mm,
          gs_header      TYPE mepoheader,
          gd_tcode       TYPE sy-tcode,
          gd_result      TYPE mmpur_bool.
    data: gt_items       type PURCHASE_ORDER_ITEMS,
          gs_itm         type PURCHASE_ORDER_ITEM,
          gs_item        type mepoitem.
    START-OF-SELECTION.
    *  prepare creation of PO instance
      gs_document-doc_type    = 'F'.
      gs_document-process     = mmpur_po_process.
      gs_document-trtyp       = 'A'.  " anz.  => display
      gs_document-doc_key(10) = p_ebeln.
    *  object creation and initialization
    **  l_ebeln = purchaseorder.
      CREATE OBJECT go_po.
      CALL METHOD go_po->po_initialize( im_document = gs_document ).
      CALL METHOD go_po->set_po_number( im_po_number = p_ebeln ).
      CALL METHOD go_po->set_state( cl_po_header_handle_mm=>c_available ).
    *  read purchase order from database
      gd_tcode = 'ME23N'.
      CALL METHOD go_po->po_read
        EXPORTING
          im_tcode     = gd_tcode
          im_trtyp     = gs_document-trtyp
          im_aktyp     = gs_document-trtyp
          im_po_number = p_ebeln
          im_document  = gs_document
        IMPORTING
          ex_result    = gd_result.
    *  there was a problem in reading the PO
      IF ( gd_result EQ mmpur_no ).
    **    l_messages = l_handler->get_list_for_bapi( ).
    **    PERFORM return TABLES l_messages return
    **                          poitem poschedule poaccount.
    **    CALL METHOD l_po->po_close( ).
      ELSE.
        gs_header = go_po->if_purchase_order_mm~get_data( ).
        WRITE: / gs_header-ebeln,
                 gs_header-bukrs,
                 gs_header-bsart,
                 gs_header-lifnr.
      ENDIF.
      gt_items = go_po->if_purchase_order_mm~get_items( ).
      LOOP AT gt_items INTO gs_itm.
        gs_item = gs_itm-item->get_data( ).
        write: / gs_item-ebelp,
                 gs_item-matnr,
                 gs_item-menge.
      ENDLOOP.
    END-OF-SELECTION.
    Regards
      Uwe

  • Update of Sales Order Delivery Dates from Production Order Date Changes

    I work at a discrete made-to-order manufacturer. 
    When our factories maintain their production orders, they will often have to change their order dates.  Is there a way so that these changes can automatically update our sales orders so we can re-send sales order confirmations?

    hi,
    this comes under development part.
    please check the feasibility with your abaper because you will have to change standard code.
    regars,
    balajia

  • Spare Sales order stealing stock from a Released production order

    Hi Gurus,
    This is not a new problem. I read the below link only a hundred time now.
    Sales order stealing components from Production order
    Business scenario-
    Top Assembly material - XYZ (Let's say Desktop PC), Proc type - E, Plng Strat - 40 (regular MTS scenario)
    Sub Assembly material - ABC (Let's say Monitor), Proc type - F, Plng Strat - blank. But we sell this part sometimes (Let's say - customer wants an additional monitor).
    Roy is a shop supervisor working on a $1 million Sales order for Top assembly XYZ which is already late and customer is screaming.
    He released the production order with no missing parts, printed and fretting to finish this order.
    After couple of hours of setup & machine prep - Roy went to pick up the parts and to his surprise material ABC is not available. 
    Tina is at shipping department working on a $1000 Sales order that arrive today. System said 'sure you can ship it 3 days in advance'. So created a delivery and shipped it to the customer.
    Now, Roy ran TCode: MB52 and found out that Tina just shipped his component ABC.
    SAP gave the part ABC to a $1000 sales order and business lost sales on a $1 million order.
    Please find the attachment for config screen shots TCode: OPJJ
    Sales order Checking rule
    Production order Release checking rule
    Please help me resolve this issue.
    Let me know if you need more info.
    Thanks,

    Praneeth,
    There are two separate concepts here.  "How do I ensure that production orders and Sales orders are on an equal footing" and "what is the purpose of 'check without RLT'.
    You have an ATP check relevant for Sales orders (checking rule "A" for Make To Stock).  You have an ATP check for production orders (I assume it is checking rule "PP").  If you want these two objects to have equal priority on stock and supplies, then make the two rules (OVZ9 for A and PP) identical.
    Now, to RLT.
    Prod Order Release has 'Check without RLT' active, that means - it'll let the sales orders (also that are outside the RLT) steal the stock.
    Sales orders that are outside RLT will automatically confirm.  "Stealing" stock is a result of combination of the ATP for the sales orders, plus the ATP for the sales order delivery, combined with the ATP for production orders. and any ATP you may have on Goods Issues against a production order.  I cannot possibly tell you what you should do to prevent stealing stock, since there are so many permutations of scenarios that can affect the outcome.
    I suggest instead that you give me concrete scenarios, telling me of specific problems, illustrated with screenshots of CO09, and I will help you through one or two specific scenarios.
    Best regards,
    DB49

  • Purchase order from production order for stock material

    Hi,
    Can we issue purchase order for stock materials (item category L) for components in production order. We want a PO account assigned to production order . How can we achieve that.
    With regards,
    Mrinal

    Dear
    1.Goto MM02-Enter componenet item code -Selec MRP4 view -Keep Individula nad Collective indicator as 1
    2.Goto MM02-FG Material -MRP4 view -Keep Individaul and Collective indicator -1 and in Sale.Org1 view keep item categoery as MTO .
    3.Create Sales Order  and run MRP in MD02 (NETCH , 2,1,1,3,2, 2)-If the compoenets are not available , then it will generate PR  with an Account Assing Categery E with sales order refernce and line item .Converthis PR into PO cnd check the same in Accounting Tab .
    This is only possible in MTO scinarion in case you want to have PO account assinged for FG production Order .
    Regards
    JH

  • BOM explosion from Production Order

    Hi All,
      I understand from SAP Help files that we can explode BOM from Production Order using Read PP Master Data. But it also says, that we cannot do this if items have already been issued out. So would like to know is there anyway out to ensure that the production order is reading the latest version of BOM.
      The reason i want to know is because, at present the BOM keeps getting updated & so the work order has to reflect the new items. The BOM contains about 300 or more items, so manual changes is very tedious & error prone at the moment. Furthermore some components are outsourced. So i want to receive them back & post new materials for them. Hope my problem is clear & await inputs
    Vivek

    Hi All,
    Thanks for the inputs. I think for the situation am facing, the Order change management method, should be of help, as the BOM changes does not take place on scheduled dates, for me to fix the BOM explosion dates & assign them. As of now the BOM gets changed, depending the customer requirements, which is unpredictable.
    Clarification required:
    1. The profile which is created using OPL7 & assigned in OPL9 is unique, i.e. for any change numbers of BOM will always follow the profile entered in 'Overall Profile' in Work Scheduling view & i do not need to create new profiles for each new change number of BOM
    2. Once i run the COCM with the new change number, in the production order - components view will i be able to see any error message for those items which no longer feature in the new version of BOM? & will the materials added in the new BOM automatically feature in that list or do i have to manually add these to the order & if so, how will i know which materials need to be added?
      Hope the clarifications sought are clear, await inputs
    Vivek

  • Function Module /BAPI for changing the components in Production order

    Hi,
    We are in ECC5.0. We have requirement wherein we want to change /delete the existing component of the production order and add new component through RFC call from an external system. We tried to use CO_XT_COMPONENT_ADD FM for adding new components and when we tested this FM in SM37  with data there were no error messages . When we checked the Production order ,no changes were made to the production order component. Tried to use Commit statement and there is no change in the system behavior.Can some one help me to  understand the system behavior . If possible kindly suggest me some alternate FM/BAPI .
    With regards,
    Joseph Anand B

    Dear,
    Please check this link,
    ADD COMPONENTS TO PRODUCTION ORDER
    Regards,
    R.Brahmankar

  • Open Multiple PDF files from Production order/Routing

    Hi Everyone
    We are in ECC 6.0 environment. We have a scenario where multiple documents were attached to single operation and also at multiple operations. But when I was trying to open these PDF documents, only the last file was getting opened and closing the previous file. How can I open multiple PDF files at one time from Production order or Routing?
    Any help is appreciated.
    Regards
    Prasad

    Hi Prasad,
    from DMS standard I regret but such a functionality is not available. In the standard originals can be opened only one after another.
    I think for realising this functionality an individual modificatoin is necessary.
    Best regards,
    Christoph

  • Assembly to order: change in sales order with change in Production order

    I want to activate change in the sales order data when a production order(which is created w.r.t the sales order) data is changed (Strategy 82 used); I have de-activated "No Update" for the corresponding requirement class 201; also the material for which SO created ,is not a part of any Delivery group.
    But when I am changing the production order (date/qty.), SO isn't getting updated accoringly.
    Please tell me the reason why it isn't happening!!

    Hi
    The sales order requirement can be made as the production order receipt once you save the order in the system.
    so it is possible to change the receipt according to the sales order reqmt if any changes made in the sales order,
    in every entry or changes in the sales order ( if you use the stategy 82) . in back end system explode the BOM and the create the production order as per the order reqmt,
    even while you do the changes mad in the sales and save that time sytem re explode the BOM once again and change the production order qty.
    but if you change the production order , system not re run or explode the BOM , Routing . such setting is not made in the system . so obviously updation will not happen for the sales order .
    Edited by: raj on Jun 9, 2009 11:22 AM

  • Valuated Sales order stock with CO Production Order

    Dear All,
    Our clinet is manifatcuring cables and having  2 plants, for one plant we have configured PP module so we are arriving valuated sales order stock, for another plant we didnt configured PP module so we planned CO production order, but where as we are not meeting our ultimate goal i.e; valuated sales order stock.
    So please guide me how to arrive valuated sales order stock  with CO Production Order.
    Thanks & Regards
    Narasimham T

    Valuated sales order stock is not dependent on PP, so you should be able to still to use it.  The requirements class associated with the sales order item determines whether the item is valuated sales order stock and it also determines the valuation method.  If you do not have Boms and routings in this plant you can still value the line item based on the material valuation in the material master. You can also value it based on a unit cost estimate that can be created seperately for the sales order item.  Justt make the desired settings in the requirement class.
    thanks,

  • How to output serial number from production order in GLM ?

    how to pull serial number from production order in wwi template for GLM ?

    Hi,
    Please have a look to this thread:
    BAPI/RFC to get serial numbers for a production order
    Hope it helps,
    Kr,
    m.

  • Purchase Order from Production order

    Hi,
    This purchase order is created directly from production order.( My problem is the material number is no where shown on PO. but when I print it (print preview) i can see the material number along with the Production order number. I am writing a new report and need material no.
    Interesting thing is, even when the Material no is missing. I can see the short txt for material as 'Galvanise'.
    Pls help me in finding the material number.(item wise)
    Thanks & Regards
    Hrishi

    Hello
    To optimize the workflows, you can change certain functions of the standard material master by using customer exits.
    You can tailor the display of the material number to your requirements by using the SAP enhancement MGA00003. If, for example, a material has the number 123, you can use this enhancement to determine that the material number is to be displayed with a prefix such as MAT-. (The number 123 is still saved in the database.)
    Control for the material number assignment
    MGA00002
    EXIT_SAPLMG02_001
    (Internal number assignment)
    EXIT_SAPLMG02_002
    (External number assignment)
    Control for the material number display
    -{}-MGA00003
    EXIT_SAPLOMCV_001
    (Number conversion from display format to database format (input: start))
    EXIT_SAPLOMCV_002
    (Number conversion from display format to database format (input: end))
    EXIT_SAPLOMCV_901
    (Number conversion from display format to database format (input: start))
    EXIT_SAPLOMCV_902
    (Number conversion from display format to database format (input: end))
    Regards

  • Purchase order from production order !!  (Missing material no)

    Hi,
    This purchase order is created directly from production order.( My problem is the material number is no where shown on PO. but when I print it (print preview) i can see the material number along with the Production order number. I am writing a new report and need material no.
    Interesting thing is, even when the Material no is missing. I can see the short txt for material as 'Galvanise'.
    Pls help me in finding the material number.(item wise)
    Thanks & Regards
    Hrishi

    Hi
    1. Check table EKPO, if material number is stored against said PO,
    2. Check ME23N, ME23N, ME22, ME23 screens are u able to see material no. in any of T-code.
    If one of T-code not showing material number, it is sort of bug in system
    Regards,
    NNK
    PS:Award points for useful ans

  • Committed Date For Components in Production Order

    Dear All,
    I m facing this,  Committed Date For Components in Production Order,
    the date appeared as 31.12.9999,
    How can i make this correct.
    please tell me..
    Thanks
    Raghu

    Hi, Thnkx,
    You Are correct, I got this while doing Availability Check, 2 dates.
    Requirement Date, and Committed Date.
    I tried your solution,
    I change the Quantity of one of my BOM , I tried to change the Quantity by Change Number,
    So in CS 03 I can see the Validity of that component up to 01-09-2010,
    I run MRP agian, new planned Order, tried to convert, the question is same.
    I still get the date as 31-12-9999.
    Thanks
    Regards
    Raghu

  • Deletion of Serial numbers/ Parallel sequences from production order

    HI ,
    I am trying to delete the Serial numbers from the production order programatically using the FM SERNR_DEL_FROM_PP. I dont get any error , but the serial number is not getting deleted from production order. If anyone have used this FM for deletion Please let me know what extra has to be done.
    Similarly i have a requirement or deletion of parallel sequence from the production order. Any FM to do the same?
    Code screenshot below
    CALL FUNCTION 'SERNR_DEL_FROM_PP'
           EXPORTING
                material              = i_matnr
                j_vorgang             = 'PMP2'
                ppaufnr               = i_paufnr
                ppposnr               = i_itemno
           IMPORTING
                anzsn                 = l_num_serno
                ZEILEN_ID             =
               SERIAL_COMMIT         =
           TABLES
                sernos                = gt_sernos
           EXCEPTIONS
                serialnumber_errors   = 1
                serialnumber_warnings = 2
                OTHERS                = 3.
      DATA ls_afpod_po TYPE afpod.
      MOVE-CORRESPONDING gs_afpod_po TO ls_afpod_po.
    *.....Update Number of serial numbers in parent order
      ls_afpod_po-anzsn = l_num_serno.
      update afpo
      set anzsn = l_num_serno
      where aufnr = i_paufnr and
            posnr = i_itemno.
      commit work AND WAIT.

    Hello,
    the function module SERNR_DEL_FROM_PP calls the function module SERNR_DEL_FROM_DOCUMENT within. There, the changes are only written into the memory.
    See also the code below:
    CALL FUNCTION 'STATUS_BUFFER_EXPORT_TO_MEMORY'             "P99K058111
            EXPORTING                                             "P99K058111
                 I_MEMORY_ID = MEMID_STATUS.                      "P99K058111
    The variable memid_status has the value 'SN_STATS'.
    So if you want to update the data, you have to call the following function module:
    CALL FUNCTION 'SERIAL_LISTE_POST_PP'
      EXPORTING
        MEMORY_ID_STATUS       = 'SN_STATS'
    Regards Simon

Maybe you are looking for

  • How do i file a formal complaint against ATT Uverse?

    That would depend on who you want to file the complaint to (e.g. another department of AT&T, a watchdog group, or a government entity), as well as what the complaint entails, and what you expect to come of your complaint. Care to fill us in?  Don't h

  • [SOLVED] KDE 4.5.2: lost icons of Pidgin, Skype... from System tray

    Plasma crashed today and I lost, so called, "Default panel". After restart, I manually added panel, added System tray widget on it but System tray is no more displaying icons of non KDE applications such Pidgin, Skype and DeaDBeeF. Tried to change ic

  • TOTAL AND EXTRACTS IN TMG

    hi experts,             while going through the postings in forums regarding   events in table maint. generator I came across the terms   extracts and total . Can anybody please explian to me what is this extract and total? regards pankaj

  • The privacy panel in "options" does not give me the option to say how long to keep cookies

    I have it set to use custom settings for history, always use private browsing mode, and accept cookies from sites, but not to accept third-party cookies. Then underneath that is "keep until. . . " with a dialogue box but that is unavailable to me.

  • Page navigation cache delete on back navigation

    Hi, Building a Universal WinRT app. Is there any way to delete a pages navigation cache when a user navigates backwards via the WP back button? e.g. page saves state when user follows link in that page and returns to it. However if a user navigates a