Query to replicate the Bill of Materials Report

I'm looking to recreate the Bill of Materials report as a query, mostly because i cannot add any new database fileds to the pld report.
As i cannot amend/change the screen layout or PLD i would like to recreate the report as a  query but have struggled to get a query to show the expanded layers of the BoM as the report does.

Following is one I wrote to find cost vs sell price & GP for Production BOM's.
You may be able to modify it to include what you need?
{SELECT T0.[Father],
sum ( T2.[AvgPrice]* T0.[Quantity]) as [Cost],T3.[Price] AS [Sales Price], 
(t3.Price - sum(T2.[AvgPrice] * T0.Quantity)) as [GP] ,
(t3.Price - sum(T2.[AvgPrice] * T0.Quantity))/sum (case when isnull(T2.[AvgPrice],0)= 0 then 1 else isnull(T2.[AvgPrice],0) end * T0.[Quantity])*100 AS [GP%]
FROM ITT1 T0  INNER JOIN OITT T1 ON T0.Father = T1.Code INNER JOIN OITM T2 ON T0.Code = T2.ItemCode INNER JOIN ITM1 T3 ON T1.Code = T3.ItemCode
WHERE (T1.[TreeType] = 'P' or  T1.[TreeType] = 's') and  T3.[PriceList] = 1
GROUP BY T0.[Father],T3.[Price]}

Similar Messages

  • How to develop a new bill of materials report(BOM) in SBO?

    Dear all
    On sbo, there is a report of BOM in production, the BOM report can explore to Class1.Class2.. ClassN,, but the report is with fixed format, now I need add more columns into the report, how to do? if not, can I write and SQL script to get it again.
    thank you.

    Hello Barend,
    From your SQL trace, I got below sql script, those will generate many report, but in the Bill of materials report, there just is only one report,
    so, could you let me know how to merger those sql together to get a one on sql and generate one report, thanks.
    Alex
    SET TRANSACTION ISOLATION LEVEL READ COMMITTED
    go
    SELECT T0.Code, T1.ItemName, T0.TreeType, T0.Qauntity, T0.Qauntity, T1.LastPurCur, T1.ExitWH, T0.Qauntity, T0.Code, T0.PriceList FROM  [dbo].[OITT] T0 ,  [dbo].[OITM] T1  WHERE T1.ItemCode >= N'400 440L'  AND  T1.ItemCode <= N'400 440L'  AND  T0.Code = T1.ItemCode  AND  T1.Canceled <> N'Y'   ORDER BY T0.Code
    go
    SELECT T0.Code, T1.ItemName, T1.TreeType, T0.Quantity, T0.Price, T0.Currency, T0.Warehouse, T1.TreeQty, T0.Father, T0.PriceList FROM  [dbo].[ITT1] T0 ,  [dbo].[OITM] T1  WHERE T0.Code = T1.ItemCode  AND  T0.Father = N'400 440L'   ORDER BY T0.Father,T0.ChildNum
    go
    SELECT T0.Code, T1.ItemName, T1.TreeType, T0.Quantity, T0.Price, T0.Currency, T0.Warehouse, T1.TreeQty, T0.Father, T0.PriceList FROM  [dbo].[ITT1] T0 ,  [dbo].[OITM] T1  WHERE T0.Code = T1.ItemCode  AND  T0.Father = N'19-01220B-03-00'   ORDER BY T0.Father,T0.ChildNum
    go
    SELECT T0.Code, T1.ItemName, T1.TreeType, T0.Quantity, T0.Price, T0.Currency, T0.Warehouse, T1.TreeQty, T0.Father, T0.PriceList FROM  [dbo].[ITT1] T0 ,  [dbo].[OITM] T1  WHERE T0.Code = T1.ItemCode  AND  T0.Father = N'19-01220B-02-00'   ORDER BY T0.Father,T0.ChildNum
    go
    SELECT T0.Code, T1.ItemName, T1.TreeType, T0.Quantity, T0.Price, T0.Currency, T0.Warehouse, T1.TreeQty, T0.Father, T0.PriceList FROM  [dbo].[ITT1] T0 ,  [dbo].[OITM] T1  WHERE T0.Code = T1.ItemCode  AND  T0.Father = N'30-90000B-03-00'   ORDER BY T0.Father,T0.ChildNum
    go
    SELECT T0.Code, T1.ItemName, T1.TreeType, T0.Quantity, T0.Price, T0.Currency, T0.Warehouse, T1.TreeQty, T0.Father, T0.PriceList FROM  [dbo].[ITT1] T0 ,  [dbo].[OITM] T1  WHERE T0.Code = T1.ItemCode  AND  T0.Father = N'19-012205-02-00'   ORDER BY T0.Father,T0.ChildNum
    go
    SELECT T0.Code, T1.ItemName, T1.TreeType, T0.Quantity, T0.Price, T0.Currency, T0.Warehouse, T1.TreeQty, T0.Father, T0.PriceList FROM  [dbo].[ITT1] T0 ,  [dbo].[OITM] T1  WHERE T0.Code = T1.ItemCode  AND  T0.Father = N'19-012205-01-00'   ORDER BY T0.Father,T0.ChildNum
    go
    SELECT T0.Code, T1.ItemName, T1.TreeType, T0.Quantity, T0.Price, T0.Currency, T0.Warehouse, T1.TreeQty, T0.Father, T0.PriceList FROM  [dbo].[ITT1] T0 ,  [dbo].[OITM] T1  WHERE T0.Code = T1.ItemCode  AND  T0.Father = N'30-900005-02-00'   ORDER BY T0.Father,T0.ChildNum
    go
    SELECT T0.*  FROM [dbo].[CSHS] T0 WHERE T0.FormID = N'679'  AND  T0.Refresh = N'Y' 
    go
    SELECT T0.*  FROM [dbo].[CSHS] T0 WHERE T0.FormID = N'679' 
    go

  • UoM in  Bill of Materials Report.

    Hi,
    Is any body know how to add Inv, UoM in following report or
    How to take Inv UoM in its PLD or any SQL Query for such type of report.
    Production Reports -->Bill of Materials Report.
    Regards,
    Rajesh

    Hi Rajesh,
    You need to use/bring field invtryuom from table oitm.
    Hope this helps..
    BR
    Samir Gandhi

  • Where is the Bill of Materials table?

    Which table is the Bill of Materials?  I found this page that lists the SAP B1 tables:
    http://wiki.sdn.sap.com/wiki/display/B1/SAPBusinessOne+Tables
    But Bill of Materials isn't mentioned.  Which table is it?
    Thanks!

    Hi,
    The BOM tables are
    ProductTrees_Lines Product tree - child ITT1
    ProductTrees Product tree OITT
    Regards,
    Rakesh N

  • Can you change the Bill of materials on ibook g4 MAC OS X 10.3.9

    I want to upgrade to Tiger , but it said something about my bill of materials? is there a way i can change that or do I just get the install discs for Tiger?

    Tiger install DVDs are in short supply. Tiger is no longer available at the Apple Store but may be available for $129 by calling Apple Phone Sales @ 1-800-MY-APPLE (1-800-692-7753). For other sources, do a Google search for MA453Z/A (10.4.6), MA190Z/A (10.4.3) and M9639Z/A (10.4) . Also look on eBay. Be sure & buy a retail version (black with silver X) and not a model specific version (gray) (See Can I use another Mac's system restore disc on my Mac? ). Expect to pay (possibly a lot) more than the Apple list price of $129.
    Also check these web stores: http://www.lacomputercompany.com/cgi-bin/rpcart/index.cgi?command=dispitem&type= sku&sku=19521 http://www.allmac.com/shop/index.php?cPath=5_10003
    Possible Alternative if you are currently using Panther 10.3 – Do a Google search for Tiger 10.4 Upgrade DVD . It will upgrade your 10.3 to 10.4, but it doesn’t contain the full retail Tiger installer. Should be cheaper than the retail Tiger install DVD.
    After you install the base 10.4.x, update to the final Tiger version 10.4.11. Here's the link for the 10.4.11 combo update http://support.apple.com/kb/TA24901?viewlocale=en_US
    Look at this link Mac OS X v10.4 Tiger Installing Software Support Page
    http://www.apple.com/support/tiger/install/
    You can also download the Tiger Installation and Setup Guide
    http://manuals.info.apple.com/en/TigerInstall_SetupGuide.pdf
    When you upgrade the OS, do it via Archive & Install. See About the Archive and Install feature http://support.apple.com/kb/HT1710
    Be sure to select Preserve Users & Settings. Also, repair permissions before and after the install.
     Cheers, Tom

  • T Code for Downloading all the Bill of Materials

    Hi,
    In my Company we have SAP and Non SAP  software. we are planning to integrate. All the Materials with respect to Particular plant i can download from MM60.
    But i need all the BOM Materials ie, with parent and child i want to download.
    Please dont tell CS03. In CS03 i can download only one material at a time.
    Please let me know where i can get the details.
    Points will be rewarded.
    Thanks
    Ashok

    Try out with the below tables.
    STKO BOM - header
    STPO BOM - item
    STAS BOMs - Item Selection
    STPN BOMs - follow-up control
    STPU BOM - sub-item
    STZU Permanent BOM data
    PLMZ Allocation of BOM - items to operations
    MAST Material to BOM link
    KDST Sales order to BOM link

  • How to Create the Bills of Materials(BOM) in an Agile Application

    Hi,
    I need help on how to create a BOM in an Agile Application, after creating this in agile, then where to see this details in an E-Business Suite, and also explain the advantages of an BOM
    Regards
    Srini

    supahsain08 wrote:
    Well i did this
    Triangle.setLocation(50, 100);
    (where Triangle is a buton)
    it doesn't do anything, stays at the same placeIt's all about context here and there are still many unknowns here that can effect your result and that you have not told us or shown us. My suggestion to you is to consider posting an SSCCE (Short, Self Contained, Correct (Compilable), Example, a condensed program similar to your current program in that it demonstrates the problem at hand, but is the smallest bit of code that still compiles and has no extra code that's not relevant to your problem. For more info on SSCCEs please look here:
    [http://homepage1.nifty.com/algafield/sscce.html|http://homepage1.nifty.com/algafield/sscce.html]
    Also, when posting your code, please use code tags so that your code will retain its formatting and be readable. To do this, you can will need to paste already formatted code into the forum, highlight this code, and then press the "code" button at the top of the forum Message editor prior to posting the message. You may want to click on the Preview tab to make sure that your code is formatted correctly. Another way is to place the tag &#91;code] at the top of your block of code and the tag &#91;/code] at the bottom, like so:
    &#91;code]
      // your code block goes here.
      // note the differences between the tag at the top vs the bottom.
    &#91;/code]or
    {&#99;ode}
      // your code block goes here.
      // note here that the tags are the same.
    {&#99;ode}good luck, pete

  • Query to mimic the items tab of the Sales Analysis report.

    Hi there,
    I'm currently looking to create a query that mimics the behaviour of the Sales Analysis report in B1. The items tab of the Sales Analysis report provides all the data I require - the only issue is that I would like to merge this data with some other data regarding current on hand stock quantities etc. and therefore I would like to be able to pull out the query behind the Sales Analysis report.
    I'm assuming this cannot be done and therefore I'm attempting to build a query to replicate the results. The query needs to show Item No, Item Description, Quantity Sold, Sales Amt (in system currency), Gross Profit and Gross Profit % for items within a given period.
    If this can be done relatively easily, can the query then be modified to show all items (including items that haven't sold in the date range) merely with '0' for Quantity Sold, Sales Amt etc. if the item hasn't been sold in the period, and the appropriate figures if each of these columns if the item has sold. I assume some kind of CASE statement can be used to generate this.
    So the query needs to show Item No, Item Description, Current quantity in stock, Quantity Sold, Sales Amt (in system currency), Gross Profit and Gross Profit % for all items within a given date range.
    I hope you can assist me with this problem.
    Thanks
    Grant.

    Hi,
    Thanks Gordon that was exactly what I needed.
    I've been trying to add some additional columns to the query but I'm experiencing some errors and I can't quite tell why.
    Basically, here's the code from another working query I have which I wish to merge into the query you've suggested above:
    SELECT T0.[ItemCode],
    T0.[ItemName],
    T3.[ItmsGrpNam],
    T4.[Name] AS [Sub-Category],
    T5.[Name] AS [Sub-Sub-Category],
    T0.[CardCode] AS [Pref Supplier],
    T6.[FirmName] AS [Brand],
    T0.[U_Range],
    T0.[OnHand],
    CASE WHEN T0.[StockValue] = 0 THEN 0 ELSE T0.[StockValue] END AS [StockValue],
    T1.[Price] AS [PBK GBP Price],
    CASE WHEN T0.[OnHand] = 0 THEN T0.[LastPurPrc] ELSE T0.[StockValue]/T0.[OnHand] END AS [Ave Cost],
    CASE WHEN T0.[OnHand] = 0 THEN T1.[Price]-T0.[LastPurPrc] ELSE CASE WHEN T0.[OnHand] > 0 THEN T1.[Price]-T0.[StockValue]/T0.[OnHand] END END AS [Margin],
    CASE WHEN T0.[OnHand] = 0 AND T0.[LastPurPrc] = 0 THEN 0 ELSE CASE WHEN T0.[OnHand] > 0 AND (T0.[StockValue]/T0.[OnHand]) = 0 THEN 0 ELSE CASE WHEN T0.[OnHand] = 0 THEN (T1.[Price]-T0.[LastPurPrc])/T1.[Price]*100 ELSE CASE WHEN T0.[OnHand] > 0 THEN (T1.[Price]-T0.[StockValue]/T0.[OnHand])/T1.[Price]*100 END END END END AS [Margin %],
    T0.[LastPurPrc]
    FROM [dbo].[OITM]  T0 INNER JOIN [dbo].[ITM1]  T1 ON T0.ItemCode = T1.ItemCode INNER JOIN [dbo].[OITB]  T3 ON T0.ItmsGrpCod = T3.ItmsGrpCod LEFT OUTER JOIN [dbo].[@U_SUBCATEGORY]  T4 ON T0.U_Subcategory = T4.Code LEFT OUTER JOIN [dbo].[@U_SUBSUBCATEGORY]  T5 ON T0.U_SubSubCategory = T5.Code INNER JOIN OMRC T6 ON T0.FirmCode = T6.FirmCode
    WHERE T0.[OnHand] >= 0 and T0.U_Range not in ('E','X')  
    ORDER BY T0.[ItemCode]
    Essentially I just wish to add the fields which are specified in the query above, but not in the query you've already suggested:
    SELECT T0.ItemCode,
    Max(T0.ItemName),
    Max(IsNull(T0.OnHand,0)) 'In Stock',
    SUM(IsNull(T1.Quantity,0)) 'Quantity',
    Sum(IsNull(T1.LineTotal,0)) 'Sales Amt',
    SUM(IsNull(T1.GrssProfit,0)) 'Gross Profit',
    Case WHEN Sum(Isnull(T1.LineTotal,0)) = 0 THEN 0 ELSE
    SUM(IsNUll(T1.GrssProfit,0))/Sum(Isnull(T1.LineTotal,0)) * 100 END 'Gross Profit %'
    FROM dbo.OITM T0
    LEFT JOIN dbo.INV1 T1 ON T1.ItemCode=T0.ItemCode
    LEFT JOIN dbo.OINV T2 ON T2.DocEntry=T1.DocEntry AND T2.DocDate Between [%0] AND [%1]
    GROUP BY T0.ItemCode
    I was hoping it would be fairly straight forward but so far I've had limited success.
    What am I missing here?
    Thanks in advance!

  • Transfer a UDF textfield from bill of materials to a PO via FMS

    Dear community,
    I really do need your help: for one of our costumers we created a UDF within the lines of the bill of materials in order to fill in some information concerning the components of the product (actually the lines are filled with production steps). When creating a production order we want to take that information as well into the PO.
    We installed 8.8 Pl 17  - there is already a comment field which is copied from The Bill of materials to the PO. unfortunately it can only be filled with a maximum  of 254 characters - not enough for my purpose...
    I already created a query and connected it to my datafields - it works pretty fine as long as We do not use the same item (production step) more than once within the bill of materials. As soon as I use it more often the query does not work as expected. the reason is properly that I am not able to use the line number of the component in my query...
    any ideas how I can upgrade my query? I will attach the written query within the next couple of days - unfortunately I do not have access to it at the moment.
    I really hope you can give me some advice - otherwise I get in trouble
    Thanks in advance and  have a great weekend,
    daniel
    Edited by: Daniel Ebi on Jan 14, 2011 7:17 PM

    Dear Daniel,
    You may try this FMS query:
    SELECT T0.U_UDF FROM ITT1 T0
    WHERE T0.Father = $[owor.itemcode\] and T0.code = $[wor1.itemcode\]
    If you have same itemcode more than one in a single BOM, change T0.code = $[wor1.itemcode\] to
    T0.Linenum=$[WOR1.LineNum\]
    This question belongs to the main form. It is nothing to do with add-on.
    Thanks,
    Gordon

  • Formatted Search on Order Grid with Bill of Materials templates

    This is for 2005A SP01 PL45 (latest patch as of now).
    We have a few formatted searches on the order details that trigger automatically when the item code changes.
    These queries work fine if the items are not part of a bill of materials.
    The queries trigger ok when we use the regular item codes for regular customers when monitoring the item code column.
    However, if you have a BP Catalog customer with a BOM then only the last row of the bill of materials fires and the rest of them do not.
    I tried bypassing this problem by making the queries monitor the Item Description.
    This still worked for stand alone items, but didn't work for bill of materials in either of the case.
    Bottom line:
    A. Formatted searched fire ok on either item code or item description if items are not part of a bill of materials.
    B. When they are part of a BOM, then
    - if we monitor the item code then they trigger ok for regular customers but only trigger on the last row if using BP Catalog codes;
    - if we monitor the item description then they do not trigger at all for either of the customers.
    Any suggestion on how to handle formatted searches for Bill of Material Templates with BP Catalogs?
    Thank you!
    Liviu

    Well, it is a Bill Of Materials "Template" type...
    Go to Production, Bill of Materials, select a product, quantity 1, select the BOM Type as Template and add two other items underneath it, each with quantities of 1.
    Save.
    Go to BP Catalogs, select one BP and add some names for these three items. Check the box to use BP Catalogs for that BP.
    Go to sales orders, add the query above to the free text column, set it as per the scenarios to trigger automatically on Item Code.
    Start two sales orders for this BP and for a regular one.
    Load the BOM item and observe the formatted search results.
    Repeat for the second scenario (where the formatted search triggers on the item description).
    Hope this helps.
    Thank you!
    Liviu

  • Price List Error in Bill of Materials in relation to SAP Note 1056208

    Hi Experts,
    I have uploaded the Bill of Materials --both the Header and Lines using DTW successfully but when I try to update the Product Price of the Parent manually in the Bill of Materials, this error occurs:
    "Variation between number of price lists and number of price lists for items"
    I have also tried running the script provided in SAP Note 1056208 to check if there are any inconsistencies in the Price List records but there is none.  The number of records in both tables are the same.
    We have 3 levels of Bill of Materials (FG, WIP1, WIP2).  I need to update the Product Price of WIP2 first so that its price will appear in the line items since it is a component of WIP1.
    I hope you could help me with my problem and I would appreciate your prompt replies.
    Thank you very much!

    Hi!
    In BOM u will find a Orange Color Drop Down Arrow @ Right-Bottom Corner. You have to click on that to generate Price for your Parent based on the Child.
    Select the Approp Price List in Header of BOM and in Row Level. Update prices for Child Items, now Follow the above step.

  • ABAP User Roles and Query for accessing particular T- codes and Reports

    dear Gurus
    I have one problem, i want to know about ABAP User Query ,i have one requirement my user wants to Lock all the HR Std versus Customized reports in T- code SQ01,other department peoples also see the Payslips and Hr personal reports which is harmfull to the dept so i want to Lock all the reports in Std T- code in SQ01 and i have created one Customized User Roles or Query in which the T-codes and Reports are assigned only those particular user can access the T-codes and Std reports .how can it be possible i dont have any idea about user roles and Queries .
    kindly help me out or send me some documents related to user roles and queries
    regards ritesh sharma

    Hi Ritesh,
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/103cafc2-7a64-2b10-14b3-eddb7d324561
    Regards,
    Flavya

  • Object Type for Bill of Materials

    What is the object type for bill of materials?  I am trying to add the code that updates the finished good item sales weight according to the weight of the Bill of Materials. Only one item in the bill of materials actually contains weight information so there is no conflict regarding cross units of measure. So, the finished good will have the same weight as the raw materials.
    Here is what I have so far. Though I'm not sure what the Object Type is for Bill of Materials. I'm also unsure about some of my code - Please review my code as well.
    IF (@TRANSACTION_TYPE = 'A' OR @TRANSACTION_TYPE = 'U') AND @OBJECT_TYPE = '68'
    BEGIN
         UPDATE OITM SET
              SWeight1 = (SELECT SUM(dbo.OITM.BWeight1) AS Weight
                   FROM dbo.OITM INNER JOIN dbo.ITT1 ON dbo.OITM.ItemCode = dbo.ITT1.Code
                   GROUP BY dbo.ITT1.Father
                   HAVING (dbo.ITT1.Father = @LIST_OF_COLS_VAL_TAB_DEL)),
              SWght1Unit = (SELECT dbo.OITM.BWght1Unit
                   FROM dbo.OITM INNER JOIN dbo.ITT1 ON dbo.OITM.ItemCode = dbo.ITT1.Code
                   GROUP BY dbo.ITT1.Father, dbo.OITM.BWght1Unit
                   HAVING(dbo.ITT1.Father = @LIST_OF_COLS_VAL_TAB_DEL) AND (dbo.OITM.BWght1Unit IS NOT NULL))
         WHERE ItemCode = @LIST_OF_COLS_VAL_TAB_DEL
    END
    Thanks

    I found it. The object type is 66 Product Tree. It appears my code works as well - yeah!

  • Someone please help me Design the database of bill of materials

    I want to design the database of bill of materials which contain item and amount.
    So the amount of child will depend on amount of parent in term of ratio. For example
    A(1)               A(2)
    |         ---->     |
    B(2)               B(4)
    My problem is when i try to add the parent and child . Let A is the parent of B , If i try to add A to be the child of C
    I want B to come along with A as well. For example
    A                       C
    |     C  --->        |           For this I have to store the relation of all item in  my list to check that this item have a child or not if yes
    B                             A              The child must come along with its parent , What the Er-diagram
    should be for all of my requirement?
                                    |
                                    B

    >I want B to come along with A as well. For example
    You can do that, but that is not automatic. You need to do some programming.
    It is better to use hierarchyid representation of the tree over traditional FK referencing.
    Tree using hierarchyid example:
    http://www.sqlusa.com/bestpractices2008/orgchart/
    BOL: "Model Your Data Hierarchies With SQL Server 2008
    .....The manufacturing system behind automobiles; the organization of a country into states, counties, cities, and postal codes; the description of a home entertainment system—what do these things have in common? The simple answer is that each
    describes a hierarchy.
    SQL Server 2008 supports a new data type, HierarchyID, that helps solve some of the problems in modeling and querying hier­archical information. I will introduce you to this data type by discussing a pattern commonly used in manufacturing
    known as bill of materials (BOM), or bills. Starting with a brief discussion of BOMs, I will illustrate how this kind of data can be modeled. I will also present an implementation of this model in SQL Server 2005. Then I will show you how the HierarchyID data
    type can be used to implement the model in SQL Server 2008.
    Hierarchical Data
    Automobiles are amalgamations of many components, such as engines, drivetrains, electronics, and steering. In the United States, our geographic territories are divided into states and are then sub-divided into jurisdictions called counties.
    Counties are then further subdivided in different ways by different agencies. The United States Census Bureau, for example, composes them from Census Tract Areas. The U.S. Postal Service routes mail delivery by Zone Improvement Plan (ZIP) codes. Geographic
    information systems (GIS) may aggregate census tracts and ZIP codes together to provide users with a familiar spatial reference for an area.
    A recent trip to a local electronics store to evaluate a replacement home entertainment system pointed to a similar sort of hierarchical system—all the combinations of possible components and options left my head spinning! I wondered
    how such systems could be modeled and implemented in a database system.
    The relationship between an automobile and its engine represents a hierarchy: the automobile contains the engine. The relationship is the same for the drivetrain, the electronics, and the steering. The relationship is containment. A
    similar hierarchy can be observed in the relationship between the different groupings of geographic or census data.
    Hierarchies exist everywhere, yet implementing them in the context of a relational database frequently proves to be a challenge. A typical approach is to represent the hierarchy using a parent/child relationship with one or more tables.
    While this approach certainly works in many cases, it has a few shortcomings. Such solutions must carefully consider how the referential integrity will be maintained. And while querying the depth and breadth of such tables was considerably simplified in SQL
    Server 2005 with the introduction of recursive common table expressions, writing queries against these types of tables can still be problematic when joins against many tables are required.
    A Bill of Materials Problem
    A few years ago I was working on a system being developed by a manufacturing company to help their dealers specify the components needed to build center-pivot irrigation systems. The software produced a list of components needed to custom-build
    the desired pivot (the totality of a center-pivot irrigation system is simply referred to as a pivot within the industry). The required components were determined based on geography, soil type, and the intended crops planted in the areas to be covered as well
    as the hydrologic and structural considerations of the device itself.
    Underpinning the solution would be a SQL Server database. The purpose of the database was to store information about the components available to build the pivot. However, when we generated the specification for manufacturing, we needed
    to identify those components as BOMs.
    Some bills represented a collection of physical parts that would be assembled into a system component. For example, every pivot needed a pump to draw water from a well into the system. That pump might be electrically powered, meaning
    it needed a transformer and fuse box, too. Or the pump might be fuel powered, meaning it needed a tank, a fuel pump, and hoses to connect the pump to the tank. In either case, the required parts for the pump would be listed in a pump bill.
    The bill for a complete pivot would include a collection of other bills. For example, a standardized pivot might consist of a tree of bills for the pump, another tree of bills for the spans of pipe used to deliver water, and bills for any other equipment
    needed to build that pivot system."
    LINK: http://msdn.microsoft.com/en-us/magazine/cc794278.aspx
    Kalman Toth Database & OLAP Architect
    SELECT Query Video Tutorial 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Report for All the Billing Documents

    Hi,
    The SD report VF05 can only list for me billing documents belonging to a payer or a material but i want to extract all the billing documents of all the payers and all the materials. Which report can i use for that?

    Hi,
    If you are using ECC 6.0, then try using the t-code VF05N. In this transaction, you can take the billing documents of all the payers and materials.
    Regards
    Vijay

Maybe you are looking for

  • Servlet caching ????

    I input a name to a servlet and try to print out something with that name.Say , for ex. I enter "Bryan" and the output wud be "Bryan belongs to section C" when 2 or more users enter names from different machines using the same servlet at the same tim

  • How Secure one folder in Webapplication of Tomcat

    Hi Everybody, Really It's very urgent I developed one webapplication in Tomcat5.0 container. My folder structure is like this C:\Tomcat 5.0\webapps\Test\jsp C:\Tomcat 5.0\webapps\Test\images C:\Tomcat 5.0\webapps\Test\imp By accessing in the IE i m a

  • Radius acts as if the cert file is login rather then system

    I have new lion client macbook trying to authenticate to radius on lion server. Authentication works fine if you are logged in and will auto connect to the network as you login. On 10.6 I could the cert in systems so that networked users would have a

  • I want to download Encore but cannot find the link.

    I have a corporate membership and want to re-download Adobe Encore because my copy will not work and I had to deinstall it.

  • Sap data base

    hai all Regarding sap database ,how much knowledge i needed as a SD consultant. thanks