Production Order on basis of Material and Plant

Hi,
I want to know the table name from which i can get the Production Order on the basis of Material No and Plant no

Hi,
  Production Order Header Table -
>AFKO
  Field Name :     
  Order Number      --- AUFNR
  Production Order Item Table   -
>AFPO
  Field Name:
  Order Item Number       -
POSNR
  Material Number         -
MATNR
  Plant                   -
DWERK
Regards,
nandha

Similar Messages

  • User Exit to check whether chapter id for Material and Plant combination is maintained while creating sales order

    Hello all,
    my requirement is, system should give error message while creating sales order, if chapter ID is not maintained for a material and plant combination.
    please suggest the user exit.

    Hi
    CASE 1 : All Plants are excisable.
    In Material master , Foreign Trade data tab-  mentioned Control code field mandatory. ( i.e nothing but Chapter ID)
    CASE 2 : Few Plants are excisable
    In the Case 2 you need to go for Enhancement
    Program Name : MV45AFZB 
    User Exit:            USEREXIT_CHECK_VBAP ( Item Level Check )
    By using above user exit you write a logic with the help of ABAPer
    Plant and Chapter ID combination table : J_1IMTCHID

  • Production order link to raw Material

    Hi
    Experts
    We have manual Production order system (NO MRP)
    System works like this
    Work order (Manually given to Production) Part name Material Qty and Dispatch date.
    Finish Material A
         This contains semi finish material X, Y, Z
    X contains Raw material and Scrap Generated
    Y contains X and Scrap
    Z Contains Y and Scrap
    Finish A Contains Z material
    Then Production people create the sub semi finish Production order of X before he checks raw material from store and accordingly by calculating he create Production order of X then Production order of Y and Z and then Create Production Order Of Finish Material.
    Our problem is that as we create manually Production order the material issued from store we are not able to link with the production order.
    As this material is issued to this production order. How to map this?
    The other issue is regarding consumables we also want to map this to Production order. Like Coolant used and inserts used on work center how to map?
    Please guide me.
    Thanks & Regards
    Pert

    Hi,
    If you are creating production orders with CO08 (With reference to sales order ) then RM tracking can easily be done.
    Just need to give sales order number in COOIS report or in table AFPO it will give you all the production orders and RM can be traced till FG.
    But if you have MTS then the calculation must be assumption basis .
    If the same RM used in same SFG with different production orders then that might be impossible to trace without batch and sales order.
    Now you want to trace tool then use PRT
    You need to create material as PRT .
    Assign that PRT in routing with Usage formula .
    So PRT will be copied on production order with routing . When ever you will confirm the operation the usage value of PRT will be updated.
    Regards,
    Vishal

  • Plannning Material and Plant for MRP Run

    Hi,
    If I have a material (01) extended on 2 plants, on one plant (A) we have production and planning/MRP + stock and on the other one (B), just stocking and transfer. B's requirements are to be entered and planned at A. I also want stock at B to be considered with stock at A when MRP runs at A. In the material master, I have some settings. I want to know if these would be any good:
    Material 01 on Plant A:
    MRP PD
    Strategy 40
    Lot size EX
    Coverage profile applied
    Material 01 on Plant B:
    MRP ND/PD tried both
    Strategy 40
    Lot size EX
    Coverage profile applied (same)
    Planning material: Material 01 itself
    Planning plant: Plant A
    I particularly want to know about points 5 and 6. Will they make any difference if I run MRP on scope of planning(all plants) or just plant A? Will stock at B be considered? What difference does that setting make in my case? Please help!
    Thanks!

    No sales on Plant A. Only transfers and STO's. Stock is STO'd to Plant B (and other Plants, as well)
    Plant B sells the stock.
    Yes, I want to load the forecast in Plant A (COPA to SOP to DM to MRP). What do I do in this case?
    I tried another case, as well. In that I put a special procurement on the material in Plant B view and marked it as external procurement. (the planning material and plant were there, didn't remove)
    Then I entered the forecast in both plants separately (PIRs for both Plants) The requirements from Plant B made STPO Planned orders in Plant B and STCK Planned orders in Plant A. I am using coverage profiles (period is month, standard length 25 days, target 10 days for 1st period for 2 months, target 10 days for 2nd period  for 1 month, target 10 days for the rest of the horizon) Not using any consumption modes.
    The results I am getting don't make sense to me. I have attached screen shots for both plants MD04 and the MRP + work scheduling views

  • Need help on enhancement of 0CO_OM_OPA_1 with Material and Plant

    Hi,
    I have a requirement that need to build a BW report which shows Actual costs and Planned Costs of Service Orders. We are getting Actual costs from 0CO_OM_OPA_6 and now i am getting planned costs from 0CO_OM_OPA_1. For actual costs we are getting Service Orders, Material and plant from Satandard DS 0CO_OM_OPA_6. Where as For Planned Costs standard data source 0CO_OM_OPA_1 is not having Material and Plant information. For this we decided to enhance 0CO_OM_OPA_1 with Material and Plant.
    But we are not sure the source tables for material and plant and the logic to extract these data from the tables. Can anybody please help me out.
    Thanks for your supprt in advance.

    It's possible you may need to use a CO-PA (profitability analysis) datasource instead of 0CO_OM_OPA_6.  0CO_OM_OPA_6 extracts data from CO tables. 
    Based on the path you provided "...Profit. segment...", the requested data might exist with CO-PA.
    If you determine the required data resides in CO-PA, you'll have to create a datasource based on the operating concern.  You can perform a search within the online docs for steps to create this datasource.
    Hope this helps.
    Rod

  • ABAP Code to get Production Order Quantity for a material-Status REL,CRTD

    hi all,
    I am new to SAP. I am stuck with a problem while writing a abap code for getting all the production order quantities for a material with System Status REL and CRTD. Please help me out. This is what i tried to do.
      IF t_mat[] IS NOT INITIAL.
        t_mat2[] = t_mat[].
        SORT t_mat2 BY matnr.
        DELETE ADJACENT DUPLICATES FROM t_mat2 COMPARING matnr werks.
        SELECT auaufnr afgamng af~plnbez INTO CORRESPONDING FIELDS OF
        TABLE t_ord1 FROM afko AS af INNER JOIN  aufk AS au ON
          afaufnr = auaufnr
        FOR ALL ENTRIES IN t_mat2
        WHERE af~plnbez = t_mat2-matnr
        AND   au~werks  = t_mat2-werks
        AND   af~gltrs IN s_gltrs
        AND   af~gstri IN s_gstri
        AND   au~phas0 IN s_phas0
        AND   au~phas1 IN s_phas1.
      ENDIF.
    Thanks. Regards.
    Sandeep

    Hi
    There is one std tcode COOIS where u can get the information what u have asked
    Pls check
    regards
    Vijay

  • Error in GR for a Production Order for a particular material....Unique case

    Hi Dear Gurus,
    I am facing the following problem:
    There is a production order for a material (say X, matrl type FERT) of order qty 21EA. First we did GR of qty 9EA. but when we are going to do GR for the rest of the qty i.e.12EA it is not happening system showing Error message " Account XXXXX requires an assignment to a CO object".
    But while we are going to do GR for the rest 12Ea qty in two parts i.e. first by doing GR of 11EA then 1EA system is accepting.
    Interestingly if do the GR for the same order as first by 8EA and then the rest 13EA that is also accepting.
    Eventhough, for any other material (of same type and group) if we make a production order of the same 21EA and then doing GR firstly by 9Ea and then 12EA that is also getting posted properly.
    What would be the reason for the error message for that particular case?
    Here the system is SAP4.5B version, material MRP type is M0, lot size  FX & fixed lot size 10Ea, safety stock 8EA, Reorder point 15.
    Thanks in advance for your inputs.
    Regards,
    Arghya

    REfer this link..
    [https://forums.sdn.sap.com/click.jspa?searchID=25161817&messageID=7040673]
    [https://forums.sdn.sap.com/click.jspa?searchID=25161817&messageID=7159723]
    hope the above helps..
    karthick

  • Outbound delivery allows only the unrestricted stock for particular material and plant

    Hi,
    In STO I have an problem the outbound delivery creations allows all stocks under unrestricted, Quality inspection, Block stock.
    I want the outbound delivery creation of a particular material and  plant it allows only the stock under the unrestricted only. It doesn't allows the stocks under the Quality inspection and Block stocks.
    I need to know how to configure this or how to solve my requirements.
    Regards,
    Ramesh N

    Dear Mohammed ,
    as per your scenario , there is two movement type has to trigger in the Delivery level according to the plant and material combination .
    as per my knowledge it will not configurable in standard process . this will possible with user exit logic only .
    follow the below logic to achieve your issue .
    you have to create two item categories and two schedule lines with (655 &653) , that means your movement type has to trigger at sales order level only . write a logic in the user exit - MV45AFZZ -USEREXIT_MOVE_FIELD_TO_VBAP , if this combination matches then automatically item category has to over write other wise it will copy the existing item category .at delivery level you can see two movement types in item level.
    wait for other experts solution , if any standard is possible or not  .
    Regards,
    C.B Reddy.

  • Creating order with out Company code and plant - just for pricing -possible

    Hi gurus
    Just for creating sales order (let us say no delivery and no billing, client was not intrested in the initial setup) for just pricing thing, does we really need Company code and plant. with out that just with sales org setup(sale org+D.C) can I create an order to full fil the pricing scenario.
    Please I need help on this
    Thanks
    Kris

    hi kris,
            we cannot create a order with out company code and plant , due to the following reasons
          we do not require the company code to create the order , but we require the plant to create a material and use it in the sales order .and we require a company code to create a customer .
    the pricing procedure is determined depending upon the sales area(sales org+distribution channel +division).
    please reward the points if it is helpful
    Regards,
    Murali

  • Transaction code to display exception messages by material and plant

    Hi,
    Is there a transaction code or standard report in SAP  to display exception messages by material and plant? I see the exception messages by individual material and plant in MD04 but I need to see a collective view. I tried Collective access in MD04 and MD46 but they are not giving me exception groups but I need exceptions listed out by material and plant.
    Thanks.

    Visu,
    I have never seen such a report.
    MD06 does support fine tuning the output display, once the list has been generated.  If you use this feature, the resulting display is the entire list as created by selecting the initial parameters (such as exception group), but with the specific items that contain your selected message highlighted.  If you are addressing the messages interactively, you can select the review (glasses)  screens, and scroll through just the ones which contain your  selected exception message(s).
    To try this, execute MD06.  Select the groups as necessary.  Execute.  Wait for the list.  Now, immediately, select 'search' (binoculars).  Experiment with the output.
    As mentioned in the previous post, if MD06 does not meet your needs, you will need to have a custom report written.
    Rgds,
    DB49

  • How to get material and plant by providing control key as input ?

    How to get the material and plant info based on control key values using a function module?
    kindly help..

    Hi,
    Check the FM
    K_VALID_PLANTS_OF_MATERIAL.
    Sandeep Kaushik

  • FM / BAPI to update STEUC field in marc Table basing on material and plant

    Hi,
    I need to to update STEUC field in marc Table basing on material and plant. please suggest FM / BAPI.
    Thanks.
    raviraj.

    Hi
    Try this BAPI function module:
    " BAPI_MATERIAL_MAINTAINDATA_RT "
    Data: LS_HEADDATA TYPE BAPIE1MATHEAD,
             LS_RETURN TYPE BAPIRETURN1,
              LT_PLANT TYPE TABLE OF BAPIE1MARCRT,          LS_PLANT TYPE BAPIE1MARCRT,
              LS_PLANTX TYPE BAPIE1MARCRTX,          LT_PLANTX TYPE TABLE OF BAPIE1MARCRTX.
            CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'
                   EXPORTING
                       HEADDATA   = LS_HEADDATA
                   IMPORTING
                       RETURN     = LS_RETURN
                   TABLES
                       PLANTDATA  = LT_PLANT
                       PLANTDATAX = LT_PLANTX.
    Check the PLANTDATA in the above fm in which pass your ''STEUC'' to BAPIE1MARCRT-CTRL_CODE......
    Hope this works.....

  • Any ideas why placing Material and Plant in same DIMENSION is a bad idea?

    Hi,
    I place Material and Plant in the same dimension and a colleague argued that it is a bad combination in the same dimension although he did not explain.
    Can you provide some examples to explain to me why  this is a good or bad combination?
    What are the rules in making decisions on which characteristics go into the same dimension?
    Thanks

    1.
    m:n relation
    If I place a Material and Plant in a dimension, let's say 5 plants and 1000 materials, then there will be 5 x 1000 = 5000 material-plant combinations.
    1. Is this 5000 material-plant combination taking place in the Dimension or in the cube?
    In the dimension table.
    Remember we are trying to see that the size of the dimension table is lot smaller than the size of the fact table.
    m:1 relation
    Similarly, if I place a Material and in a dimension, let's say 5 Material Groups and 1000 Materials, then there will be 5 x 1000 = 5000 Material-Material-Group combinations.
    2. What is the difference between the
    5000 Material-Material-Group combinations &
    5000 Material-Plant combinations ?
    Here the example is wrong. Imagine if 200 materials each fall under one material group, then there are not 5000 combinations but only 5 material groups with 200 each.
    3. And why does one improves performance over the other
    i.e. why is the
    5000 Material-Material-Group combinations better than that of 5000 Material-Plant combinations
    In the second case the dimension table is lot smaller and improves performance.

  • Characteristics values for material and plant

    Hi Experts,
    I need to fetch characterstic values from a class Y-xx . I belive badi BAPI_CLASS_GET_characteristics
    will give the result but my problem is in selection screen I am passing material no and plant
    for this material and plant i need to fetch the characteristics values from the Y_xx class
    Could any one suggest the BADI or FM or tables to fetch the results
    Thanks in advance

    Hi,
    Go to MEK2, here enter the freight condition type, go to the output screen as pr the access maintained and select the line item and click on "Scales" button to see the from and to value.
    Also you can check the same in "Conditions" button in Purchase Info record.

  • Costing the production order for the configured material

    We are trying to cost the production order for a configurable item.  But the system is not calculating any cost in the production order.  Sales order related to this configurable material is costed.  What additional setting I need to cost the production order for the configured material ?

    Hi Niki
    If your SO is costed, thats enough from a System's perspective... Planned cost will be the sales order cost estimate because SO saves the Chars required for the Configurable material
    Planned cost in Prod order depends on the Costing variant you have assigned in the order type... Check the error log if there is any error in cost calculation in prod order
    br, Ajay M

Maybe you are looking for

  • Displaying some records at a time

    does anyone know how to display only 10 records at one time from the database followed by the next button to display next 10 etc?

  • Finder doesn't like showing one of my external hard disks

    I have seen a few threads about on the internet relating to this but no permanent solution. I recently bought an iomega 500gb MiniMax drive for use with my MacBook, it was working fine and showing in finder for a day or so and then stopped automatica

  • In Lion, how do I change the folder's cover photo?

    In Snow Leopard, its easy to do, just drag the pic onto the icon after you right click to Get Info. I can't find how to do it in Lion HELP anywhere. Please advise. Thanks.

  • Calling a function module in a formula

    Hi All,      We want to call a function module in our planning function can somebody give me a sample code for this.I would also like to know how the messaging also works here. Thanks Edited by: rakshita hegde on May 25, 2009 8:18 AM

  • Not appearing under devices

    When I connect my iPod Classic, it does not appear under devices.  I do have it on my iMac desktop, so I think the USB is working properly.  The iPod also will connect to my PC with no problem; I synced yesterday evening.  I have the latest iTunes on