Query for a Multi level BOM

For a parent item, I require all the child items that are there in multi - level BOM

Hi Hema
This query not give you exactly what you need, but can give you an idea of who to get the result you want.
select S0.ItemCode, S0.ItemName, isnull(sum(S5.Quantity * S6.AvgPrice), isnull(sum(S2.Quantity * S3.AvgPrice), S0.AvgPrice)) 'Costo del artículo'
from OITM S0 left join OITT S1 on S0.ItemCode = S1.Code
            left join ITT1 S2 on S1.Code = S2.Father
            left join OITM S3 on S2.Code = S3.ItemCode
            left join OITT S4 on S3.ItemCode = S4.Code
            left join ITT1 S5 on S4.Code = S5.Father
            left join OITM S6 on S5.Code = S6.ItemCode
group by S0.ItemCode, S0.ItemName, S0.AvgPrice
order by S0.ItemCode
Hope this help you
Slds.,
Esteban

Similar Messages

  • Difference Between Summarized & Multi Level BOM Comparison

    Hi Colleagues,
    Could you please help me on this? I would like to know what is the difference between Summarized BOM & Multilevel BOM Comparison.
    Currently I am using Tcode CS14 to compare the BOM but I could not find the differences. Also I am using FM CS_BOM_EXPL_MAT_V2 to explode the BOM so I would like to know the difference to write a report for this.
    Thanks & Regards,
    Nagaraj

    Hi,
    Refer this link which explains clearly the Difference Between Summarized & Multi Level BOM Comparison
    http://help.sap.com/saphelp_45b/helpdata/EN/ea/e9befc4c7211d189520000e829fbbd/frameset.htm
    After going through  this link on the left hand side there is heading for BOM compariso,under that 4 sub headings are there please refer that
    hope this will help,if you have any query revert back
    Edited by: Girish  Adaviswamy on Apr 15, 2009 5:40 AM

  • Gneration of multiple Production Order from multi level BOM

    Hi Experts,
    My customer has multi level BOM. meaning child item also has its own BOM - 4 Level.
    FG-Pack - Make
          FG - Make
               SFG - Make
                    RM - Buy
    Their process is once they create Production Order for final Finished Good, System should also create Production order for child which it self are of make type and has own BOM defined in system.
    They wish that once the create Production order for FG-Pack, system should automatic generate production order for FG and SFG as both of these has BOM defined and are of procurement type Make.
    So first they will close the chile production order and receives qty. in ware house, they will issue this child qty. against main production order, and then completes the main production order.
    So they remains informed about the child item stock.
    My question is SAP Business One supports creation of multiple Production Order?
    BR
    Samir Gandhi

    Hi Samir Gandhi,
    There is no build-in function for this task. You need add-on or SDK for the job.
    If the sub level BOM items are phantom, you can create a big production order including all sub BOM components. That is system supported.
    Thanks,
    Gordon

  • Multi Level BOm is not working in SAP afs

    Hi Experts,
             I am facing issue in MRP.For multi level bom's ,Requirements is not getting generates.Is there any settings is there to active multi level bom for afs materials.
    please suggest solution
    Thanks and Regards,
    Deepika.

    Hello Deepika,
    As we know AFS materials are planned at SKU level (Grid and stock categories)  you can use AFS MRP (/N/AFS/MD02) only.
    Please refer OSS note Note 981747 - FAQ - AFS Production Planning
    Question 5 Made-To-Order Planning -Multi-Level (MD50) does not work for AFS Materials and Sales Orders containing AFS materials.
    Answer: Made to Order Multi level planning functionality was never enhanced for AFS and hence transaction MD50 is not supported.
    Steps are as,
    1. Create a MTO/PTO sales order for an AFS material.
    2. Run AFS MRP using transaction code /AFS/MD02.
    3. Convert the planned order to production order.
    Best Regards,
    R.Brahmankar

  • Multi-level BOM explosion using CS_BOM_EXPL_MAT_V2

    Hi All,
    I would like to know, if anyone has used the function module 'CS_BOM_EXPL_MAT_V2' to prepare a report to read multi-level BOM just like CS12. If anyone has, can you please let me know how we can read the individual materials in the BOM from this FM.
    Hope my question is clear, await inputs.
    Vivek

    Hi vivek,
    We use this code to restrict the BOM line item for particular movements. C if that can help u out.
    CALL FUNCTION 'CS_BOM_EXPL_KND_V1'
        EXPORTING
          capid                       = ''
          datuv                       = sy-datum
          emeng                       = 1
         mehrs                       = 'X'
          mtnrv                       = i_mseg-matnr
          stlal                       = '1'
          stlan                       = '1'
          stpst                       = 0
          svwvo                       = 'X'
          werks                       = i_mseg-werks
          vbeln                       = aufk-kdauf
          vbpos                       = aufk-kdpos
            VERID                       = ' '
          vrsvo                       = 'X'
          IMPORTING
            TOPMAT                      =
            DSTST                       =
         TABLES
           stb                         = ZStb
            MATCAT                      =
        EXCEPTIONS
          alt_not_found               = 1
          call_invalid                = 2
          material_not_found          = 3
          missing_authorization       = 4
          no_bom_found                = 5
          no_plant_data               = 6
          no_suitable_bom_found       = 7
          conversion_error            = 8
          OTHERS                      = 9
      IF sy-subrc <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      SORT zstb BY mtart.
      LOOP AT zstb.
        IF zstb-mtart = 'Material type ' OR zstb-mtart = 'Material type ' .
        ELSE.
          DELETE zstb .
        ENDIF.
      ENDLOOP.
      CLEAR: v_menge, v_matnr, v_bwart, vv_menge, vvv_menge, zstb.
      LOOP AT zstb.
        SELECT menge matnr bwart
        INTO   (v_menge,v_matnr,v_bwart)
        FROM   aufm
        WHERE  aufnr = i_mseg-aufnr
        AND    werks = i_mseg-werks
        AND    matnr = zstb-idnrk
        AND    ( bwart = '261' OR bwart = '262' ).
              and    meins = 'FT2'.
         LOOP AT zstb.
          SELECT SINGLE matnr INTO vv_matnr FROM mara  WHERE  matnr = v_matnr
                                       AND mtart = zstb-mtart.
          IF sy-subrc = 0.
            CASE v_bwart.
              WHEN '261' .
                vv_menge = vv_menge + v_menge.
              WHEN '262' .
                vvv_menge = vvv_menge + v_menge.
            ENDCASE.
          ENDIF.
             ENDLOOP.
        ENDSELECT.
        CLEAR vf_menge.
        vf_menge = vv_menge - vvv_menge.
        CLEAR vv_menge.
        CLEAR vvv_menge.
    Regards,
    Vishal

  • Multi level BOM explosion

    Hi,
    For multilevel BOM explode I have to use the "Functional Module" CS_BOM_EXPL_MAT_V2. I checked it in system but I didnt understand which input parameters I need to give (Which are mandatory) as ther are lot of input fields available.
    Please suggest whether this Functional Module is fine OR there is any other way? also suggest about the input field data.

    Dear
    Function module CS_BOM_EXPL_MAT_V2 is used for BOM explosion for a given material. It belongs to function group CSS4 u2013 BOM explosions. This function module can explose multi-level BOM with a given validation date.
    You need to specify necessary input parameters to call this function module, such as CAPID u2013 App ID, DATUV u2013 Validation date, MEHRS u2013 Multi-level, MTNRV u2013 Material number, STLAL u2013 alternate, STLAN u2013 BOM usage.
    Some useful tables you can provide to your ABAPer and discuss the same .
    TABLES: MARA,                               "Master Data
            MAKT,                               "Matl Desc.
            MARC,                               "Plant Data for Matl.
            MAST,                               "Bom to material link
            STKO,                               "Bom Header
            STPO.                               "Bom Item
    Refer : Multi-level BOM explosion using CS_BOM_EXPL_MAT_V2
    Regards
    JH
    Edited by: Jiaul Haque on Jan 3, 2011 10:24 PM

  • Product Costing - Standard Cost Component Split on Multi Level BOM's

    Hi,
    We are the process of introducing SAP for all back office and manufacturing activities.
    I am currently trying to verify that the product cost calculation for Multi-Level BOMs in our Legacy system matches the cost roll up or cost estimate in SAP at not only a Total Cost Level but the cost component split must be accurate also. So far, all the costs roll up correctly at a total cost level but I have noticed one issue:
    When I run a cost estimate for a single level BOM the cost estimate will split the components accurately into Material, Labor, Fixed Overhead and Variable overhead, However, when this component is then used in the next level of manufacturing all the Labor, Fixed Overhead and Variable Overhead Cost is grouped under Material.
    Q1.) Is there a SAP setting or config change that will keep the previous Labor, Fixed OH and Variable OH cost in these categories as the material is rolled up to finished product level?
    Q2.) Is there a standard report / view where I can see the Finished Goods Standard Cost split by each of there rolled up Components? This would need to split the Total Material, Total Labor, Total Fixed OH and Total VO required to make the Finished Product. 
    Q3.) Is there a standard report / view where I can see the added value (Absorption) by component split (Labor, Fixed OH, Variable OH) for every Manufactured Part?
    Any help you can provide would be greatly appreciated.
    Thanks & Regards,
    Brian

    Actuall I just tried again and it did ask for me S number and I put it in and I did not have "authorization" to access
    Error Message - Access denied (R/3)
    What happened?
    You do not have permission to access this Object
    What can you do?
    Please contact a consulting adminstrative
    Error code: WEBSMP106-20080214172231-0015
    Error details: 2491DD9-702/1A053/3162-71A9CFA5-3CB9265-2992F9
    Service Name: SAPIDB
    Service Server: WEBSMP106
    Process-ID: 4640
    Thread-ID: 6020
    Sorry for any inconvenience.
    Your SAP Service Marketplace Team

  • RE: how to explode multi level bom ?

    hi sd experts,
    I really appreciate if anyone explain me how explode multi level BOM
    if possible pls send me best practices
    thanks
    regards
    shabnum

    Hi Shabnum,
    For ex:
    main material is 101(material No)
    Subitems for 101 are: 102,103, 104 & 105
    102 also has 2 two sub items i.e., 106 & 107
    I created material masters for all the items i.e., 101 to 107 and posted stocks and maintained prices individually in VK11.
    I created BOM in CS01 seperately for 101 & 102
    I changed the Item Category Group for both the main items 101 & 102 from NORM to ERLA and tried creating the Sales Order.
    For 101 BOM is exploding correctly in order but for 102 it is not exploding.
    If I enter both the materials 101 & 102 as 2 line items then BOM is exploding for both the materials.
    Then do the Config in :
    Pls check the Item category configuration for your header material for the following field:
    Structure Scope: whether it is A or B...A is for explode single level & B is for explode multi-level bill of material. In your case, it should be maintained as "B"
    This would work for you
    Reward if it helps
    Regards
    Srini

  • For  MTO scenario,multi level bom is not working sap afs pp

    Hi Experts,
                  We are implementing MTO scenario for our client. I have maintained  strategy group for FERT is 40 and strategy group for HALB and ROH are 20.
                   For single level BOM , requirements is not getting generates properly.
                  I would like to know What are all the settings is required to create AFS BOM.(single and multi level)
                   Please suggest me.
    Thanks & Regards,
    Deepika.

    Hello Deepika,
    As we know AFS materials are planned at SKU level (Grid and stock categories)  you can use AFS MRP (/N/AFS/MD02) only.
    Please refer OSS note Note 981747 - FAQ - AFS Production Planning
    Question 5 Made-To-Order Planning -Multi-Level (MD50) does not work for AFS Materials and Sales Orders containing AFS materials.
    Answer: Made to Order Multi level planning functionality was never enhanced for AFS and hence transaction MD50 is not supported.
    Steps are as,
    1. Create a MTO/PTO sales order for an AFS material.
    2. Run AFS MRP using transaction code /AFS/MD02.
    3. Convert the planned order to production order.
    Best Regards,
    R.Brahmankar

  • Import multi-level BOM into Oracle

    We have a client requirement to create BOM based on level using Pl/Sql, Data will be coming in the below format:-
    Item Description      BOM LEVEL
    a               *1*     
    aa               *2*     
    aaa               *3*     
    aab               *3*     
    aaba               *4*     
    aabb               *4*     
    ab               *2*     
    aba               *3*     
    abb               *3*     
    we want the above data in table to be inserted in below format:
    Assembly Item     Component Item
    a               Aa
    Aa               Aaa
    Aa               Aab
    Aa               Aac
    A               Ab
    Ab               Aba
    Ab               Abb
    Aab               aaba
    Please suggest.
    Thanks,
    Urvashi Arora
    Edited by: user10992307 on 08-May-2012 23:07

    When you look at one row in your source data, there is no way to tell what is the parent item for the component you are looking at.
    So you will have to write a program that walks thru the data and builds parent=child relationship. It will be a tricky program but once that is done, all you have to do is to insert into bom interface tables and Oracle will take care of the rest.
    Oracle BOM interface will take care of building a multi-level structure.
    Sandeep Gandhi

  • Multi level BOM explosion in CS11/12/13 Cost of items are not displayed

    Hi,
      I want to display cost of the components in CS11 / CS12 / CS13 T.codes Std SAP will not display the cost of components. for this they have given note 177006 and asked to change some manual correction. In the post processing of the note they have asked put "your_display_profl" This is making me confusing I wanted know whether I want to create a new display pofile using CLVL t.code or can I make the correction as said by SAP "your_display_profl". Could some body guide me in this regard.
    Regards
    Ramana

    >
    Venkata Ramana wrote:
    > Hi,
    >
    >   I want to display cost of the components in CS11 / CS12 / CS13 T.codes Std SAP will not display the cost of components. for this they have given note 177006 and asked to change some manual correction. In the post processing of the note they have asked put "your_display_profl" This is making me confusing I wanted know whether I want to create a new display pofile using CLVL t.code or can I make the correction as said by SAP "your_display_profl". Could some body guide me in this regard.
    >
    > Regards
    >
    > Ramana
    Ramana,
    Which version of SAP you are using, if its below 4.6c, then
    You need to have custom Display and Print Profile defined through CLVL transaction and used in the modification proposed.
    If your version is 4.6c onwards then,
    If you want to use the variable list then you need to have the You need to have custom Display and Print Profile defined through CLVL transaction and used in the modification proposed with IF.
    If you want to use the ABAP ALV based output, then you should not implement the IF... ENDIF query of the suggested modification concerning the user-defined list profile; instead you should set the local L_MBWLS parameter to 'X'
    I hope you need to work with your ABAP person to clearly understand this correction Instruction and Implement as required.
    Regards,
    Prasobh

  • Adding alternate component in the same BOM for 2 level BOM setup

    Hello,
    I have a BOM with the following setups -
         BOM_A components are BOM_B, Comp_A1, Comp_A2
         BOM_B components are Comp_B1, Comp_B2
    The need is to have an a BOM with components Comp_B1, Comp_B2, Comp_C1. if I create this as an Alt of BOM_B, how can I use this alternate in BOM_A?
    Can anyone please let me know if there is a way to specify the alternate of BOM components in multi level BOM?
    Regards,
    Manju

    Hello Manju,
    Can you please specify the exact business requirement.
    Why this is required at BOM Level?
    If BOM_B (comp_B1,comp_B2 & comp_C1) is Alt. bom & WIP job completed using this Alt. BOM then syste will take care / consider valuation as per Alt. BOM for first level bom (BOM_A) WIP job.
    Thanks
    NS

  • System sholud explode only first level BOM in MRP

    Hi All
    I am having a Multi level BOM,
    when i run MRP, system should expolde only first level remaining levels should not explode. how can i achive this??
    quick responce will be appriceated.
    Regards
    M S K

    Dear ,
    Goto MM02-Enter your Sub-Assmbly code -Selevct MRP4 view -Keep MRP Depedent requirement field as 1-Material For Depedent Requirement are not planned .
    Please do this only for Sub-Assbmly  .But keep Final Assmbly ( which has Sub-Assmbly as BOM Componenet ) MRP4 View -MRP Depenent Requirement Filed as Blank -Materials for depedent requirement are planned .
    This should be followed in sub-sequenet Sub-Assbly level as per BOM Explosion level .
    Check this in Sand box with sample materil having multilevel and then do the same
    Regards
    JH

  • Change Multi-Level Price Difference Process Category

    Hello ML Gurus,
    We have a situation
    Our I2P team has certain process orders that are recursive -- header material the same as component.  (These are NOT rework order types, but standard process order type PR01).  In the beginning, they posted GR as process category "Receipts", and GI as process category "Consumption". This resulted in cyclical error during CKMLCP.  When we cut off connections and ran, it left a huge price difference as "Not Allocated".
    To circumvent this problem, I2P used a BADI to change the process category for the consumption to "Receipts".  Everything was ok, until the monthend.  When we do the Multi-Level Price Determination, the price difference gets posted to Consumption only, and since the original consumption is moved to "Receipts", the entire price difference is now "Not Allocated".
    We think we can fix this by changing the process category for the multi-level price difference to "Receipts" also.
    Is there a way to do it?  Any BADI, User Exit, Enhancement -- anything?
    Also, this is not a pretty design....do you have a suggestion for improving the overall process?  We used to have a Product Cost Collector and post these consumption and then settle them monthly, but we lost traceability for the batches so we cannot and do not use them.
    Appreciate your help.
    Cheers,
    TD

    Hi,
    Basically single level price determination calculates periodic unit price based prices differences for that material alone is considered
    Multilevel price determination considers its own differences as well those of the input materials.
    Hence single level price determination is a prerequisite for multilevel determination
    Ganesan

  • Diff between two-level infrastructure and multi-level system landscape

    Hi Experts,
    Can Anyone explain me what exactly is meant by two-level infrastructure (SAP and customer solutions) and multi-level system landscape (SAP, country-specific versions, industry solutions, partner, customer, and so on) in the below statement
    In contrast to customer exits, Business Add-Ins no longer assume a two-level infrastructure (SAP and customer solutions), but instead allow for a multi-level system landscape (SAP, country-specific versions, industry solutions, partner, customer, and so on). You can create definitions and implementations of Business Add-Ins at any level of the system landscape

    Hi
    The user-exit can be implemented once, i.e. it can be used once: so it can be used to solve a particular customer situation.
    The BADI can have several implemantations, so the same BADI can be used several times, and so it can be used to solve problem of customer, for business (so different implemantion for every SAP vertical, for example one for AFS, one for OIL,......), for a specific for a country (it's the case for the FI BADIs used to solve different legal specific of every country where SAP is implemented), .......
    Max

Maybe you are looking for