BOM report on Production order

Dear All,
I need to make BOM report as per production order.
Very helpfull for me if any FM for that?
I need also the table where I can get the relation of that.
Can anybody help me?
Thanks in advance.

hi
hope it will help you.
Pls reward if help.
REPORT ZMULTIBOM NO STANDARD PAGE HEADING LINE-SIZE 195
                LINE-COUNT 60(2) MESSAGE-ID Z1.
TABLES: MBEW,           "Material Valuation
        MSLB,           "Special stocks with vendor
        MARA,           "Material Master
        MAKT,           "Material Descriptions
        MARD,           "Material Master: Storage Location/Batch Segment
        MAST,           "BOM Header
        STKO,           "BOM Detail
        STPO,           "Bom Components
        STAS.           "BOM Alternative
Text Elements
Plant
SELECT-OPTIONS: S_WERKS FOR MAST-WERKS DEFAULT 'CA',
Material
                S_MATNR FOR MAST-MATNR,
Material Type
                S_MTART FOR MARA-MTART.
Base Quantity
PARAMETERS: S_BASE TYPE I DEFAULT '1'.
Display up to Level
PARAMETERS: S_LVL  TYPE I DEFAULT '99'.
SELECTION-SCREEN SKIP.
Include Vendor Stock
PARAMETERS: X_MSLB  AS CHECKBOX.
DATA: W_MATNR LIKE MAPL-MATNR.
DATA: PARENT-MATNR LIKE MAST-MATNR,
      CHILD-MATNR LIKE STPO-IDNRK,
      CHILD-WERKS LIKE MAST-WERKS,
      CHILD-STLAL LIKE MAST-STLAL,
      W_MAKTX LIKE MAKT-MAKTX,
      W_STD TYPE P DECIMALS 5,
      W_MAV TYPE P DECIMALS 5,
      W_MENGE TYPE P DECIMALS 3,
      W_LEVEL TYPE I,
      W_DOT(1),
      W_LVL(12),
      W_LVL1(12),
      W_LVL2(2),
      W_COL TYPE I,
      W_LFLAG,
      W_TTL LIKE MARD-LABST.
DATA: BEGIN OF INT1 OCCURS 50,
        LGORT(6),
        LABST LIKE MARD-LABST,
      END OF INT1.
IF S_BASE EQ 0.
  S_BASE = 1.
ENDIF.
append multi level routing
SELECT * FROM MAST WHERE WERKS IN S_WERKS AND
     MATNR IN S_MATNR.
  SELECT SINGLE * FROM MARA WHERE MATNR = MAST-MATNR AND
       MTART IN S_MTART.
  IF SY-SUBRC NE 0.
    CONTINUE.
  ENDIF.
  IF MARA-LVORM <> 'X'.
    PARENT-MATNR = MAST-MATNR.
    CHILD-MATNR  = MAST-MATNR.
    CHILD-WERKS  = MAST-WERKS.
    CHILD-STLAL  = MAST-STLAL.
    SELECT SINGLE * FROM MAKT WHERE MATNR = MAST-MATNR AND
         SPRAS = 'E'.
    W_MAKTX = MAKT-MAKTX.
    REFRESH INT1.
    SELECT * FROM MARD WHERE MATNR = MAST-MATNR AND
         WERKS = MAST-WERKS AND
         LABST NE 0.
      MOVE MARD-LGORT TO INT1-LGORT.
      MOVE MARD-LABST TO INT1-LABST.
      APPEND INT1.
    ENDSELECT.
    IF X_MSLB EQ 'X'.
      SELECT * FROM MSLB WHERE MATNR EQ MAST-MATNR AND
           WERKS EQ MAST-WERKS AND
           LBLAB NE 0.
        MOVE MSLB-LIFNR TO INT1-LGORT.
        MOVE MSLB-LBLAB TO INT1-LABST.
        APPEND INT1.
      ENDSELECT.
    ENDIF.
    W_LEVEL = 1.
    NEW-PAGE.
    PERFORM GETCHILD.
  ENDIF.
ENDSELECT.
get child parts
FORM GETCHILD.
  SELECT * FROM STPO WHERE STLNR = MAST-STLNR
        ORDER BY POSNR.
    SELECT SINGLE * FROM STKO WHERE STLNR = STPO-STLNR
          AND STLAL = MAST-STLAL.
    SELECT SINGLE * FROM STAS WHERE STLNR = STPO-STLNR AND
          STLKN = STPO-STLKN AND
          STLAL = MAST-STLAL.
    IF SY-SUBRC EQ 0.
      CLEAR: W_DOT, W_LVL, W_LVL1.
      PERFORM WRT_DTL.
      CHILD-MATNR = STPO-IDNRK.
      W_LEVEL = W_LEVEL + 1.
      IF W_LEVEL <= S_LVL.
        PERFORM SUBCHILD.
      ENDIF.
      W_LEVEL = W_LEVEL - 1.
    ENDIF.
  ENDSELECT.
ENDFORM.
get grand children parts
FORM SUBCHILD.
  SELECT SINGLE * FROM MAST WHERE MATNR = CHILD-MATNR
     AND WERKS = CHILD-WERKS.
  IF SY-SUBRC NE 0.
    EXIT.
  ENDIF.
  SELECT * FROM STPO WHERE STLNR = MAST-STLNR
        ORDER BY POSNR.
    SELECT SINGLE * FROM STKO WHERE STLNR = STPO-STLNR AND
      STLAL = MAST-STLAL.
    SELECT SINGLE * FROM STAS WHERE STLNR = STPO-STLNR AND
        STLKN = STPO-STLKN AND
        STLAL = STKO-STLAL.
      IF SY-SUBRC EQ 0.
        W_DOT = '.'.
        PERFORM WRT_DTL.
        CHILD-MATNR = STPO-IDNRK.
        W_LEVEL = W_LEVEL + 1.
        IF W_LEVEL <= S_LVL.
          PERFORM SUBCHILD.
        ENDIF.
        W_LEVEL = W_LEVEL - 1.
        SHIFT W_LVL.
      ENDIF.
    ENDSELECT.
ENDFORM.
TOP-OF-PAGE.
WRITE:/ SY-DATUM,SY-UZEIT,
       85 'ABC PTE LTD',
      182 'Page', SY-PAGNO.
WRITE: / SY-REPID,
         75 'BOM STRUCTURE  (WITH LOCATION BALANCES)',
         182 SY-UNAME.
SKIP.
CLEAR W_LFLAG.
WRITE:/ 'Material No.:', PARENT-MATNR,
        60 'Plant    :', MAST-WERKS.
W_COL = 90.
CLEAR W_TTL.
LOOP AT INT1.
  IF W_COL > 195.
    IF W_LFLAG IS INITIAL.
      WRITE:/ 'Description :', W_MAKTX,
           60 'Base Qty :', S_BASE LEFT-JUSTIFIED.
      W_LFLAG = 'X'.
      W_COL = 90.
    ELSE.
      W_COL = 90.
      SKIP.
    ENDIF.
  ENDIF.
  WRITE AT W_COL 'Loc :'.
  W_COL = W_COL + 6.
  WRITE AT W_COL INT1-LGORT.
  W_COL = W_COL + 7.
  WRITE AT W_COL(12) INT1-LABST LEFT-JUSTIFIED.
  W_COL = W_COL + 16.
  W_TTL = W_TTL + INT1-LABST.
ENDLOOP.
IF W_LFLAG IS INITIAL.
  WRITE:/ 'Description :', W_MAKTX,
       60 'Base Qty :', S_BASE LEFT-JUSTIFIED,
       90 'Total :', W_TTL LEFT-JUSTIFIED.
ELSE.
  WRITE AT W_COL 'Total :'.
  W_COL = W_COL + 8.
  WRITE AT W_COL W_TTL LEFT-JUSTIFIED.
ENDIF.
SKIP.
ULINE.
WRITE: /001 'Level',
        011 'Item',
        017 'Component',
        037 'Description',
        079 '    Per',
        089 'UOM',
        094 ' Std Price',
        106 'Moving Avg',
        119 'Location',
        128 ' Balance',
        139 'Location',
        148 ' Balance',
        159 'Location',
        168 ' Balance',
        179 'Total Quantity'.
ULINE.
FORM WRT_DTL.
  CLEAR: MAKT-MAKTX, W_MAV, W_STD.
  SELECT SINGLE * FROM MAKT WHERE MATNR = STPO-IDNRK AND
       SPRAS = 'E'.
  SELECT SINGLE * FROM MBEW WHERE MATNR = STPO-IDNRK AND
       BWKEY = MAST-WERKS.
  IF SY-SUBRC = 0.
    W_MAV = MBEW-VERPR / MBEW-PEINH.
    W_STD = MBEW-STPRS / MBEW-PEINH.
  ENDIF.
  W_MENGE = ( STPO-MENGE / STKO-BMENG ) * S_BASE.
  W_LVL2 = W_LEVEL.
  CONCATENATE W_DOT W_LVL INTO W_LVL.
  CONCATENATE W_LVL W_LVL2 INTO W_LVL1.
  WRITE: /001 W_LVL1,
          011 STPO-POSNR,
          017 STPO-IDNRK,
          037 MAKT-MAKTX,
          079(8) W_MENGE,
          089 STPO-MEINS,
          094(10) W_STD,
          106(10) W_MAV.
  W_COL = 119.
  CLEAR W_TTL.
  SELECT * FROM MARD WHERE MATNR = STPO-IDNRK AND
       WERKS = MAST-WERKS AND
       LABST NE 0.
    IF W_COL > 166.
      W_COL = 119.
      WRITE AT /W_COL ' '.
    ENDIF.
    WRITE AT W_COL MARD-LGORT.
    W_COL = W_COL + 5.
    WRITE AT W_COL(13) MARD-LABST.
    W_COL = W_COL + 15.
    W_TTL = W_TTL + MARD-LABST.
  ENDSELECT.
  IF X_MSLB EQ 'X'.
    SELECT * FROM MSLB WHERE MATNR = STPO-IDNRK AND
         WERKS = MAST-WERKS AND
         LBLAB NE 0.
      IF W_COL > 166.
        W_COL = 119.
        WRITE AT /W_COL ' '.
      ENDIF.
      WRITE AT W_COL(6) MSLB-LIFNR.
      W_COL = W_COL + 6.
      WRITE AT W_COL(12) MSLB-LBLAB.
      W_COL = W_COL + 14.
      W_TTL = W_TTL + MSLB-LBLAB.
    ENDSELECT.
  ENDIF.
  WRITE AT 179(15) W_TTL.
ENDFORM.

Similar Messages

  • Report on production order status and shortage report

    I want to know standard report on production order status and shortage report. Kindly suggest.

    COOIS - Production order information system . In this report you can give system status in selection screen  and in report you can get complete status details (both system and user status) .
    shortage report - CO24

  • I need help in Report for production orders for my customer.

    Hi All
    I have scenario where plant A needs the following report for Material XXX which has setting as Stock Trnasfer order from Plant B.
    Need report withthe following details, Storage Unit number, Material No, Quantity, Planned Order Date in plant A,  Date Produced in plant B, Date Received by Plant A. 
    Please tell me if there is any standard report to take the following details. Scenario is that the header material YYY in Plant A has one material XXX as BOM component. Now this material has setting as Stock transfer from Plant B. On creating a plan order for Header material it will create a Plan order in plant B for component XXX. The above said detail is required for component XXX in plant A.

    Dear
    Did you explore the report in CO46-Order Progress Report based on Sales Order /Material /Production Order
    Or COOIS/COHV  for your requirement.Here you can get the Planned Order Details and also Production Order Details .
    Regards
    JH
    Edited by: Jiaul Haque on Sep 27, 2010 2:57 PM

  • Operation wise Report of production order

    Dear Experts,
    I am having total 4 operations in production order .I want operation wise report ( For example ,I am having production order of 10 quantity , I want a report through which I can check how much quantity is lying in operation 10 ,20 30 & 40 )
    waiting for inputs.
    Warm Regards,
    Satya

    hi,
    Work Center
    CRHD Workcenter Header Data
    CRCA Workcenter Capacity Allocation
    CRCO Workcenter Cost Center Assignment
    CRHH Hierarchy Header
    CRHS Hierarchy Structure
    CRTX Workcenter Text
    KAKO Capacity Header
    KAZY Intervals of Capacity
    Routing
    PLPO Routing Operation Details
    PLKO Routing Header Details
    MAPL Routing Link to Material
    PLAB Relationships - Standard Network
    PLAS Task List - Selection of Operations
    PLMZ Component Allocation
    PLPH CAPP Sub-operations
    PLFH PRT Allocation
    PLWP Maintenance Package Allocation
    PLMK Inspection Characteristics
    Bill of Material
    STPO BOM Item Details
    STPU BOM Sub Items (designators)
    STKO BOM Header Details
    MAST BOM Group to Material
    STZU BOM History Records
    STAS BOM Item Selection
    STPF BOM Explosion Structure
    Thanking you

  • Report for Production orders with name of Customers

    Dear Expert,
    Kindly suggest to view the production orders with customer numbers for which the sales orders is created.
    I tried in MB51 with layout settings but the customer number comes out be blank despite the sales order number is populated for an production order.
    Kindly suggst a way or any report in the system  to get the corresponding information of production order number and corresponding customer name mentioned in the sales order .
    Thanks in advance for your help and inputs..
    Best regards,
    Nitish jain

    Nitish,
    MB51 is a Material Document list.  Many production orders exist that have no entries in this report, so it would be an unlikely candidate to be a solution for your requirement..
    The standard production order reporting tool is COOIS.  The output for MTO orders can be configured to display Sales order and Item and Soldto.
    Obviously, displaying even the customer order number in COOIS is impossible in a MTS scenario.
    In addition, a user experienced in using SAP Query  (SQVI or SQ01/SQ02/SQ03) could also create a production order report without having to know ABAP, by properly linking tables AFKO, AUFK, AFPO (production order data) with VBAK (sales order header data) to get customer number, and KNA1 to get customer name..
    If you are not expert in SAP Query, I suggest you discuss this requirement with a local ABAPer.
    If you are feeling like educating yourself in the wonders of SAP query, try this doc.  Although old, SAP query hasn't changed very much since this document was written.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    Rgds,
    DB49
    Edited by: Dogboy49 on Apr 20, 2010 10:47 PM

  • Report for Production order list

    Dear all,
    I need your help..
    we have two plants in which we divided total qty of customer order for production
    now i want a list in which i got the details like which sale order and how much qty we punched in plant one and plant 2
    to compare total valve produced for customer
    how to find such kind of report..?
    which t code is helpfull.
    Neha

    If you're working with a MTO stg. (eg: 20), then the sales order details will be linked to the production order & you can then use COOIS report by specifying the sales order nos.
    But if you're working in a MTS environment, then there will not be a specific link between the Production order & the sales order, so if you have maintained the SO nos. in some field, then you will have to execute the COOIS report & then use the filter option on the field where you've maintained the SO nos.

  • BOM, Routing and production order

    Hello Guru,
    we notice something, our material 1256 has maintain four alternative bom as of this date:
    Alt BOM       MRP4 Prod version  BOM stat       PV lot size  Routing Grp    Route Lot
    1                          ACA                            02                 0 to 0             5000001            0 to 999
    2                          ACB                            02                 0 to 0             5000002            0 to 999
    3                          ACC                            02                 0 to 0             5000003            0 to 999
    4                          ACD                            01                 0 to 0             5000004            0 to 999
    can the difference be of lot size can be a factor why still even though alt BOM 1 with PV ACA was still pick when we do CO01 and CO41 in creating production order? we have already set-up in master data MRP4 tab Selection method = 3 which a expert also advise us to do for those inactive bom material not create a order, but doing this still not solve our problem
    and also does in MRP4, under the selection method, INDIVIDUAL/COLL can affect the selection of production version when creating order? what does the following works:
    blank = ?
    1 = individuals requirements only
    2 = collective requirements only
    thanks a lot
    ryan
    Edited by: Ryan on Dec 12, 2008 9:40 AM
    Edited by: Ryan on Dec 12, 2008 9:42 AM

    Hi Ryan,
    - As all the production version containes same Lot size.So system will pick first which system finds in C223.
      So each time you will find default selection of Production version ACA in Plan Order and Production Version.
    blank = ?
    1 = individuals requirements only
    2 = collective requirements only
    Blank means Individual and Collective both.
    What I have observe with this selection is whenever you are going to plan for MTS system will plan with collective requirement and in case of MTO it will plan with Individual requirements.
    May be others have some other idea (Actually I also want to verify it).
    - No there is no impact of Individual/Collective requirements on Selection of Production Version.
    Regards,
    Dhaval

  • Report for production order with actual and target cost for each

    Hi
    Is there any report that gives me the list of all production orders in a month with its respective actual and target costs?
    I can use COOIS to get a list of production orders, then double click on the prod order, then click on goto and then to cost analyis.. but can i avoid going through all this and get a report with the details i need?
    thanks in advance

    Thanks a lot for that.
    I'm a little confused with the columns in the report.
    Which columns should I keep for my requirement? -
    Production Order
    Total Target Cost
    Total Actual Cost
    Total Actual Qty
    Total Target Qty
    Thanks

  • Standard report  for production order

    Dear all
    Is there any standard report with reference to material for all procuction orders ie open,closed etc

    Hi,
    COOIS - Production order information system
    For Open Prod orders
    Enter material number and sys. status CNF tick Excl.
    For Closed Prod orders
    Enter material number and sys. status CNF, DLV.
    Regards,
    Sankaran

  • Report for Production order operation

    Hi
    Is there any standard  report which will give the list of production orders which are confirmed upto a particular operation.
    For Ex: Lets say routing has  operations 0010,0020 and 0030. I want to know which production orders are  confirmed upto operation 0020 and not beyond that.
    Thanks in advance.
    Maruthi Ram

    Hi,
    Options:
    1. Use COOIS.
    In the drop down LIST options select Operations. In the Select at Operation Level specify the Syst. Status as CNF & CRTD, click exclude check box, specify the Plant at Select at Header Level & execute the report.
    The output will display all operations which are not confirmed or created, now you can set filter on the operation column & get the info you're looking for.
    2. Use MCP1 - Check if this report helps.
    Hope the above answers your query.
    Regards,
    Vivek

  • Report on production orders

    Guys,
    I describe the problem with example.
    Header material X. It has sub components Y1(phantom). Y1 has Y2(phantom) below it. Y2 has Y3(Phantom) below it. Y3 has A(inhouse production) and B(External procurement).
    When Material X is order in sales order, and MRP is run, how many production orders will be created. Only for X or for Y1,Y2,Y3 separately. Is there any report which will show the link of these production orders at one place or do I need to analyse then one by one in MD04 and link to each other for understanding?
    For your info, it is MTO with project stock.
    Reg
    Sunny

    Dear Sunny,
    For the phantom assembly the system does not create any planned order and the system creates planned order/purchase req
    for the component's of the phantom assembly skipping the phantom assembly.
    You can use the reports COOIS or else CO26.
    Regards
    Mangalraj.S

  • 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

  • BOM updation in production order

    Dear All
    I have created production order against one specific BOm
    Then i changed the BOM line items & again i have created one more production order but new BOm items are not updaetd in the new production order
    pl help
    regards
    Kiran

    Kiran,
    I would suggest you to check the Valid from Date of specific component you are taking about, probably you would have added with effectivity date 10.01.2008. Now when order is exploded it is looking for valid components as on 03.01.2008, this may be the problem.
    A simple suggestion here is that you execute Read PP Master data for this order in the change mode(CO02), from the menu bar Functions--->Read PP Master Data. You would get a Pop-up screen Read PP Master data.. here in the screen "Cont." button. One more screen pops up, here in the BOM explosion date you give it as 10.01.2008. Hope you will get the new component also in your production order now.
    Regards,
    Prasobh

  • Plan v/s actual materail consumption report for production order - urgent

    Dear all Hi,
    Is there any report or T code from which i can get the plan v/s actual material consumption for a production order or wbs element after completion of order, please suggest / help, the requirement is very urgent.
    thanks in advance

    Hi shaiz,
    You can get that in COOIS tcode
    Select components again List
    then give the plant,Order details
    execute
    You can find 2 fields reqmn qty(nothing but planned) & qty Withdrawn(Actual consumption) in the report
    Hope this hepls
    Rgds,
    SVP

  • Standard Vs Actual Cost report for Production Order

    Hi Expert,
    I have an requirement that i need report for Standard Cost (CK40N) and Actual cost (261 Movement) for multiple production order or Multiple Material.
    Please suggest standard report if available or FS for creating Z Report.
    Regards,
    Pranav

    Hi Pranav
    There are Standard reports
    Option 1
    You can use Product Drilldown reports in KKO0
    For this:-
    a. Do settings in OKN0 - assign a Cost Comp Structure and Choose Material group = Product Group
    b. Run KKRV to collect data and then use KKO0 reports
    I have replied this in SCN many times.. You can search here. Just google as "SCN" "Ajay Maheshwari" "OKN0" and you can see some posts answered by me
    Option 2
    You can use Summarization Hierarchy KKBC_HOE
    For this
    a. Set up Summ Hierarchy in KKR0.
    b. Run KKRC
    c. Run KKBC_HOE report
    Br Ajay M

Maybe you are looking for