Implosion BILL OF MATERIALS (BOM) Query

Hi ,
Can anyone help me with framing  a BOM Implosion query. The query is expected to return me all the PARENT items for a particular CHILD item i give in the filter. It is like a query which returns the 'ITEM WHERE USED' data for a child item referring
to where all the child item has been used (In any parent items). Google-ing on the same we could only get queries which gives BOM explosions .. if anyone has any idea on the IMPLOSION query please do share ....  woul
It would be helpful if the query has ERP tables which can be used rather than examples Thankyou

Try this:
  SELECT DISTINCT
    LEVEL,  mp.organization_code, msi1.inventory_item_id parent_item_id, msi1.segment1 parent_item , msi1.description parent_desc, msi1.item_type,
    bic.COMPONENT_QUANTITY, sys_connect_by_path(msi2.segment1, '/') as "PATH"    
  FROM bom.bom_structures_b bbom ,
    bom.bom_components_b bic , apps.mtl_system_items msi1, apps.mtl_system_items msi2, apps.mtl_parameters mp
  WHERE bbom.bill_Sequence_id = bic.bill_sequence_id
  AND bbom.organization_id = bic.pk2_value
  AND bbom.assembly_item_id = msi1.inventory_item_id
  AND bbom.organization_id = msi1.organization_id
  AND bic.component_item_id = msi2.inventory_item_id
  AND bbom.organization_id = msi2.organization_id
  and bbom.organization_id = mp.organization_Id
  AND NVL(bic.disable_date, SYSDATE+1) > SYSDATE
  AND bbom.organization_id = :org_id
  START WITH  bic.component_item_id = :component_item_id --Start with the component_item_id
  CONNECT BY NOCYCLE PRIOR  bbom.assembly_item_id  = bic.component_item_id AND PRIOR bbom.organization_id = bbom.organization_id

Similar Messages

  • 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 [code] at the top of your block of code and the tag [/code] at the bottom, like so:
    [code]
      // your code block goes here.
      // note the differences between the tag at the top vs the bottom.
    [/code]or
    {code}
      // your code block goes here.
      // note here that the tags are the same.
    {code}good luck, pete

  • Bill of Materials style query ( hierarchical query question)

    Hi,
    I'm having difficulty trying to SQL query for the following.
    *(1) Outline of proposed table design*
    SERVERS
    SERVER_ID
    SERVER_DESC
    etc.
    SERVER-MAJORCOMPONENTS
    SERVER_ID
    COMPONENT_ID
    SERVER-PARTS
    COMPONENTS_ID
    PARENT_COMPONENT_ID
    COMPONENT_DESC
    etc.
    *(2) Text Description*
    -- Server A is made up of components P1,P2 and S2.
    -- P1 and P2 are major components and would therefore feature in SERVER-MAJORCOMPONENTS that lists all major components (P1,P2,P3 .....P256 etc.) that make up the server.
    -- S2 is a minor component and therefore would not be listed in SERVER-MAJORCOMPONENTS, however it would be listed as a child component of component P2 in SERVER-PARTS.
    -- A manufacturer issues a safety recall on part S2, based upon an input of a SERVER_ID, I need to know whether that server contains part S2.
    Query input : SERVER_ID
    Query output : (a) "no rows selected" if server does not contain component (b) count=1,component_id or whatever ... single row
    *(3) ASCII ART*
    ----------> P1
    SERVER A
    ----------> P2
    x-------> S1
    x--------> S2
    Thank you in advance !

    Hierarhical structures Oracle can easily deal with are (using graph theory terminology) trees.
    (defined as: all members except one - the root - have a single parent)
    It seems you call the roots "groups" and all other elements "roles"
    I find Sanjay's example perfectly suitable.
    To describe the structure role and parent_role can do the job.
    Suppose you have a table role_hierarchy containing data like:
    ====================
    role | parent_role |
    ====================
       1 |             | group
       2 |           1 | role
       3 |           1 | role
       3 |          10 | role
       3 |          11 | role
       4 |           2 | role
       4 |           3 | role
       5 |           2 | role
       5 |           3 | role
       5 |          10 | role
       6 |           2 | role
       6 |          10 | role
       7 |           6 | role
       8 |           7 | role
       8 |          11 | role
       9 |           7 | role
       9 |          11 | role
      10 |             | group
      11 |             | group
    This data represents three trees:
        1              10              11
       / \            /| \            / |\
      2   3          3 5  6          3  8 9
    /|\  |\        /|    |         / \
    4 5 6 4 5      4 5    7        4   5
        |                / \
        7               8   9
      8   9
    If I understand correctly:
    - every table row is owned by some (single) group
    - a user is assigned some (single) role suppose 7
    I don't have database access and have some connection problems right now so I can just describe it:
    Using sys_connect_by_path function in Sanjay's example you'll be able to obtain two paths:
    7-6-2-1 from the first and 7-6-10 from the second group
    after constructing the string -1-10- containing the valid groups the user can access rows where
    INSTR('-1-10-','-'||to_char(group_of_row)||'-') > 0Regards
    Etbin

  • 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

  • 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]}

  • What are the main tables for BOM (Bill of Materials)

    Hi Gurus,
    I need to know the tables involved in BOM (Bill of Materials) for Oracle EBS.
    Can anyone point out the list of related tables?
    Thanks

    Hi Sudipta,
    Following are the BOM main tables.
    bom_bill_of_materials
    bom_inventory_components
    bom_reference_designators
    bom_substitute_components
    mtl_item_revisions
    bom_operational_routings
    bom_operation_sequences
    bom_operation_resources
    BOM_BILL_OF_MTLS_INTERFACE
    BOM_INVENTORY_COMPS_INTERFACE
    BOM_REF_DESGS_INTERFACE
    BOM_SUB_COMPS_INTERFACE
    MTL_ITEM_REVISIONS_INTERFACE
    BOM_OP_ROUTINGS_INTERFACE
    BOM_OP_SEQUENCES_INTERFACE
    BOM_OP_RESOURCES_INTERFACE
    MTL_RTG_ITEM_REVS_INTERFACE
    =======================
    Following are all tables of BOM.
    BOM_ALTERNATE_DESIGNATORS
    BOM_ALTERNATE_DESIGNATORS_TL
    BOM_ATO_CONFIGS_TEMP
    BOM_ATO_CONFIGURATIONS
    BOM_BILLS_HEADER_TEMP
    BOM_BILL_OF_MATERIALS
    BOM_BILL_OF_MATERIALS_ARCHIVE
    BOM_BILL_OF_MATERIALS_TEMP
    BOM_BILL_OF_MTLS_INTERFACE
    BOM_BILL_REVISIONS_B
    BOM_BILL_REVISIONS_TL
    BOM_CALENDARS
    BOM_CALENDAR_DATES
    BOM_CALENDAR_EXCEPTIONS
    BOM_CALENDAR_SHIFTS
    BOM_CAL_WEEK_START_DATES
    BOM_CAL_YEAR_START_DATES
    BOM_CMP_USR_ATTR_INTERFACE
    BOM_COMPARISON_TEMP
    BOM_COMPONENTS_B
    BOM_COMPONENTS_EXT_B
    BOM_COMPONENTS_EXT_TL
    BOM_COMPONENT_COLUMNS
    BOM_COMPONENT_OPERATIONS
    BOM_COMPONENT_OPS_INTERFACE
    BOM_COMPONENT_TYPES
    BOM_COMP_OPTCLASS_TEMP
    BOM_COMP_OPTIONS_TEMP
    BOM_CONFIG_EXPLOSIONS
    BOM_COPY_ORGANIZATION_LIST
    BOM_COPY_STRUCTURE_ACTIONS
    BOM_COPY_STRUCTURE_REQUEST
    BOM_CTO_MLSUPPLY_MAIN_TEMP
    BOM_CTO_MODEL_ORGS
    BOM_CTO_ORDER_DEMAND
    BOM_CTO_ORDER_LINES
    BOM_CTO_ORDER_LINES_UPG
    BOM_CTO_OSS_COMPONENTS
    BOM_CTO_OSS_ORGS_LIST
    BOM_CTO_SRC_ORGS
    BOM_CTO_SRC_ORGS_B
    BOM_DELETE_ENTITIES
    BOM_DELETE_ERRORS
    BOM_DELETE_GROUPS
    BOM_DELETE_SQL_STATEMENTS
    BOM_DELETE_SUB_ENTITIES
    BOM_DEPARTMENTS
    BOM_DEPARTMENT_CLASSES
    BOM_DEPARTMENT_RESOURCES
    BOM_DEPENDENT_DESC_ELEMENTS
    BOM_DEPEND_DESC_ELEM_ARCHIVE
    BOM_DEPT_RES_INSTANCES
    BOM_EAM_DEPT_APPROVERS
    BOM_EXCEPTION_SETS
    BOM_EXCEPTION_SET_DATES
    BOM_EXCLUSION_RULE_ARCHIVE
    BOM_EXCLUSION_RULE_DEF
    BOM_EXPLOSIONS
    BOM_EXPLOSIONS_ALL
    BOM_EXPLOSION_TEMP
    BOM_FORM_QUERY
    BOM_IMPLOSION_TEMP
    BOM_INTERFACE_DELETE_GROUPS
    BOM_INVENTORY_COMPONENTS
    BOM_INVENTORY_COMPONENTS_TEMP
    BOM_INVENTORY_COMPS_ARCHIVE
    BOM_INVENTORY_COMPS_INTERFACE
    BOM_INV_COMPONENTS_TEMP
    BOM_ITEM_ATTACH_CATEGORY_ASSOC
    BOM_ITEM_BACKFLUSH_SUBINV
    BOM_LISTS
    BOM_LOW_LEVEL_CODES
    BOM_MIXED_MODEL_MAP_CELLS
    BOM_MIXED_MODEL_MAP_HEADER
    BOM_MIXED_MODEL_MAP_PROCESSES
    BOM_MIXED_MODEL_MAP_RES
    BOM_OPERATIONAL_ROUTINGS
    BOM_OPERATION_NETWORKS
    BOM_OPERATION_RESOURCES
    BOM_OPERATION_RESOURCES_EFC
    BOM_OPERATION_SEQUENCES
    BOM_OPERATION_SEQUENCES_TEMP
    BOM_OPERATION_SKILLS
    BOM_OP_NETWORKS_INTERFACE
    BOM_OP_RESOURCES_ARCHIVE
    BOM_OP_RESOURCES_INTERFACE
    BOM_OP_ROUTINGS_ARCHIVE
    BOM_OP_ROUTINGS_INTERFACE
    BOM_OP_SEQUENCES_ARCHIVE
    BOM_OP_SEQUENCES_INTERFACE
    BOM_PARAMETERS
    BOM_PERIOD_START_DATES
    BOM_REFERENCE_DESGS_ARCHIVE
    BOM_REFERENCE_DESIGNATORS
    BOM_REF_DESGS_INTERFACE
    BOM_RESOURCES
    BOM_RESOURCES_EFC
    BOM_RESOURCE_CHANGES
    BOM_RESOURCE_DOWNCODES
    BOM_RESOURCE_EMPLOYEES
    BOM_RESOURCE_EQUIPMENTS
    BOM_RESOURCE_FLEX_FENCES
    BOM_RESOURCE_SETUPS
    BOM_RESOURCE_SHIFTS
    BOM_RES_INSTANCE_CHANGES
    BOM_RTGHEADER_TEMP
    BOM_RTG_ITEM_REVISIONS_ARCHIVE
    BOM_RTG_NETWORK_TEMP
    BOM_RTG_OPERATION_TEMP
    BOM_RTG_OPER_RES_TEMP
    BOM_RTG_RESOURCE_TEMP
    BOM_RTG_SUB_RESOURCE_TEMP
    BOM_RULES_B
    BOM_SETUP_TRANSITIONS
    BOM_SETUP_TYPES
    BOM_SHIFT_DATES
    BOM_SHIFT_EXCEPTIONS
    BOM_SHIFT_TIMES
    BOM_SMALL_EXPL_TEMP
    BOM_SMALL_IMPL_TEMP
    BOM_STANDARD_OPERATIONS
    BOM_STD_OP_BONUS_CODES
    BOM_STD_OP_RESOURCES
    BOM_STD_OP_RESP_EXCLUSIONS
    BOM_STD_OP_SCRAP_CODES
    BOM_STD_SUB_OP_RESOURCES
    BOM_STRUCTURES_B
    BOM_STRUCTURES_EXT_B
    BOM_STRUCTURES_EXT_TL
    BOM_STRUCTURE_EXT_B
    BOM_STRUCTURE_REVISIONS_B
    BOM_STRUCTURE_REVISIONS_TL
    BOM_STRUCTURE_TYPES_B
    BOM_STRUCTURE_TYPES_TL
    BOM_SUBSTITUTE_COMPONENTS
    BOM_SUBSTITUTE_COMPS_ARCHIVE
    BOM_SUB_COMPS_INTERFACE
    BOM_SUB_OPERATION_RESOURCES
    BOM_SUB_OPERATION_RESOURCE_EFC
    BOM_SUB_OP_RESOURCES_INTERFACE
    BOM_WORKDAY_PATTERNS
    HTH
    Sanjay

  • 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

  • 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

  • BOM Query

    Need help in writing a query to fetch all the assembled items. I have requirement as part of which I will pass Item1, Item2, Item3.... need to get all the assembled items which are using all this items (not just one all the items).
    Below query is fetching assembly items which are using any one items.
    Select * from bom_bill_of_materials bom, bom_inventory_components bic, mtl_system_items_b msib
    where bic.component_item_id = msib2.inventory_item_id
    AND bom.bill_sequence_id = bic.bill_sequence_id
    AND msib.segment1 IN ('Item1','Item2','Item3')
    How can modify it to fetch only assembly items which are using all the 3 items.
    As the above query 'IN' is acts like OR (condition1 or condition2....)
    Thanks for your response

    Hi,
    User910243567 wrote:
    Need help in writing a query to fetch all the assembled items. I have requirement as part of which I will pass Item1, Item2, Item3.... need to get all the assembled items which are using all this items (not just one all the items).That depends on your data.
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Always say which version of Oracle you're using.
    Below query is fetching assembly items which are using any one items.Is it really doing that?
    Usually, "bill of materials" means a recursive, multi-level parent-child relationship. For example, a wagon may consist of a body, a handle, and 2 axle assembiles. An axle assembly may consist of an axle and 2 wheel assemblies, and a wheel assembly may consist of a wheel, a bracket, and 4 XYZ screws. If you're interested in which products require XYZ screws, would that mean just a wheel assembly, or would it include axle assembly and wagon as well as wheel assembly? The query you posted seems to only look at parents and their children; there's nothing recursive or multi-level about it.
    Select * from bom_bill_of_materials bom, bom_inventory_components bic, mtl_system_items_b msib
    where bic.component_item_id = msib2.inventory_item_id
    AND bom.bill_sequence_id = bic.bill_sequence_id
    AND msib.segment1 IN ('Item1','Item2','Item3')
    How can modify it to fetch only assembly items which are using all the 3 items.
    As the above query 'IN' is acts like OR (condition1 or condition2....)
    Thanks for your responseIf the query above really is finding all the objects that use any 1 of the 3 components, then the following will return objects that are using all 3 of them:
    WITH     got_cnt
         SELECT  ...     -- list distinct columns needed for output
         ,     COUNT (DISTINCT msib.segment1) OVER (PARTITION BY  x)     AS cnt
         FROM      bom_bill_of_materials          bom
         ,      bom_inventory_components      bic
         ,      mtl_system_items_b          msib
         WHERE     bic.component_item_id     = msib2.inventory_item_id
         AND     bom.bill_sequence_id     = bic.bill_sequence_id
         AND     msib.segment1           IN ('Item1', 'Item2', 'Item3')
    SELECT     *     -- or list all columns except cnt
    FROM     got_cnt
    WHERE     cnt     = 3
    ;where x uniquely identifies the object that must include all 3. (X can be a single column, or some other expression, or a list of several columns and/or other expressions.)
    If one of the target items is "XYZ screw", then neither query above would include wagon or axle assembly. To get those results, you could do a CONNECT BY query, using CONNECT_BY_ROOT. In this case, it's especially important to say which version of Oracle you have, because every version since Oracle 7 has had singnificant improvements in this area.

  • 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

  • New Plug-In for Acrobat: 3D Bill-of-Materials

    Hello everyone!
    We at vpr-solutions are thinking of developing an Adobe Acrobat Plug-In which allows users to create 3D-PDF Bill-Of-Materials with just a few mouse clicks.
    The outcome would be an interactive 3D-PDF, similar to this:
    http://vpr-solutions.de/images/stories/ om_sec.pdf
    Such BOMs could be created quickly and would require no scripting at all. All that the user will have to do is:
    1) Create a Layout: 3D-Annotation and text edit fields (for part meta-data display)
    2) Link 3D and edit fields using the plug-in
    Now the user will be able to select parts in 3D and fill in the edit fields. Whenever a part is selected in 3D, the specific part info will be displayed. All meta information will be gathered and saved inside the PDF. Additional functionality would be export and import of part meta-info als XML spreadsheets (MS Excel, OpenOffice).
    Please tell me what you think. I am thankfull for every single line.
    Best Regards,
    Helmut
    vpr-solutions.com

    Hello,
    Function creation of 3D-PDF Bill-Of-Materials is already available within APEX V9.
    Using A3D Reviewer you can:
    1/import CAD files
    2/create a Bill-Of-Materials
    (go to Tools/Bill of Material)
    Several options are available to the BOM creation option
    If you need more information feel free to contact me...
    3/Export to PDF using a provided template
    ie:
    C:\Program Files\Adobe\Acrobat 9.0\Acrobat\plug_ins3d\prc\ENU\a3drtemplate_03.pdf
    4/Open the PDf file within Acrobat 3D activate 3D
    As you could see the BOM is available into the 3DPDF document
    I Hope this can be helpful for you
    For further more information please feel to contact us
    Best regards
    William Gallego
    A3D QE Team

  • 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.

  • 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

  • Bills of material[BOM]

    Dear all,
    hi, i have got a dought in bills of material, i shall be very much pleased if some one helps me out of this.
    using the transaction code CS01, i have created the 'BOM' for the material 'computer' giving the components as 'keypad' and 'CPU'. after creating the required thing i have saved the data.
    later on when i tried to creat a sales order using this data, the components are not getting displayed in the sales order.
    what i have to do to get the components displayed in the sales order.
    please do help me out.
    Regards,
    Sushmitha.

    Susmitha,
    below is whole process for sales BOM-
    Sales BOM Implementation 
    A bill of material (BOM) describes the different components that together create a product. A BOM for a bicycle, for example, consists of all the parts that make up the bicycle: the frame, the saddle, wheels, and so on.
    Process Flow
    When you enter the material number of a bill of materials that is relevant for sales order processing, the system displays the material that describes the whole bill of materials as a main item. The individual components are displayed as lower-level items.
    There are two ways to process a bill of materials in Sales. Once you have entered a bill of material in a sales order, the system runs pricing, inventory control, and delivery processing at:
    - Main item level if the material is assembled, or 
    - Component level if the material is not assembled
    The type of processing used by the system is determined by the item category group that you enter in the material master record for relevant materials.
    Processing at Main Item Level 
    If you want the system to carry out pricing, inventory control, and delivery processing at main item level, enter ERLA in the Item category group field of the Sales: sales org. 2 screen in the material master record of the finished product. This means that the components only function as text items and are not relevant for delivery. The following graphic shows how a bill of material is processed at main item level.
    Processing at Component Level
    If you want the system to carry out pricing, inventory control, and delivery processing at the component level, enter LUMF in the Item category group field of the Sales: sales org. 2 screen in the material master record of the finished product. In this case, only the components are relevant for delivery. During processing the system automatically creates a delivery group. The latest delivery date among all the components becomes the delivery date for the entire delivery group.
    REWARD IF U FINDS THIS AS USEFUL...
    Regds
    MM

  • Function Module for retreiving delta bill of materials

    Hi Experts,
      Is there any function module in SAP for retreiving delta bill of materials,please
    repond quickly as it is most urgent to me.
    Regards,
    Sridevi.

    Hi
    Check the following BOM related fun modules
    APS_GET_BOM
    C1L1_BOMPOS_GET
    C1L1_BOM_DATA_GET_NO_DIALOG
    C1L6_BOMDATA_GET
    CA_GR_GET_BOM_APPLS_FOR_USAGE
    CASL_GET_BOM_EXPLOSION_DATE
    CAVC_C_GET_BOM_ITEM_DATA
    CAVC_I_GET_BOM_HEADER_DATA
    CAVC_I_GET_BOM_ITEM_DATA
    CAVC_I_GET_BOM_ITEM_DATA_LIST
    CEV8_GET_BOM_DATA
    CEV8_READ_MAT_AND_GET_BOM
    CE_BOM_GET_PARAMETER
    CK_F_BOM_ITEM_FROM_KALKTAB_GET
    CLEX_BOM_GET_STPO
    CO_OCM_FA_FROM_BOM_GET
    CO_DM_BOM_GET_DOC_LINKS
    CP_BD_GET_BOM_FOR_MATERIAL
    CP_BD_GET_STLKN_FOR_BOM
    CP_CA_GET_VARIANT_BOM_DATA
    C_PDM_BOM_GET_ITEM_STUFE_WEGXX
    C_PDM_GET_BOM_USAGES
    CS_BI_GET_BOM_FILE_REMOTE_HOST
    CS_CA_ORDER_BOM_STRUCTURE_GET
    CSDE_BOM_ALT_BY_ECN_GET
    CS_OV_BOM_GET_ACTUAL_MARKED
    CS_OV_BOM_GET_FIRST_MARKED
    CS_OV_BOM_GET_LAST_MARKED
    CS_OV_BOM_GET_NEXT_MARKED
    CS_OV_BOM_GET_PREV_MARKED
    CS_BOMHEADERS_GET_MAT
    CUBF_GET_BOM_ITEM_FOR_EXT_ID
    CUBX_GET_CUOBS_FOR_BOM_ITEMS
    CUCPOBOM_CHECK_ALLOWED_TARGET
    CUKO_BOM_EXPLOSION_GET_PARAMS
    CUKO_DDB_BOM_HEADER_GET
    CUKO_DDB_BOM_POSITION_GET
    FLT_EXT_GET_BOM_DATA
    ISM_MEDIAISSUE_BOM_ADMIX_GET
    K_ABC_GET_CONV_FACT_BOM
    K_ABC_GET_SPECIAL_FEAT_IN_BOM2
    MGV_BOM_GET_LIST
    OIJ_3WP_GET_BOM_EXPLOSION
    OIRC_GET_BOM_SOC
    OLR3_DMS_RFC_GET_PARENT_BOMS
    PLM_CONSTRUCT_TYPE_GET_MAT_BOM
    PLM_EQUIPMENT_GET_BOMS
    PLM_EQUIPMENT_GET_EQI_BOM
    PLM_FUNCLOCAT_GET_BOMS
    PLM_FUNCLOCAT_GET_FLC_BOM
    PMEVC_BOM_GET_SUBSCREEN
    PMEVC_GET_BOM_ITEMS
    STT_BOM_GETDETAIL
    STT_BOM_GETLIST
    Reward points if useful
    Regards
    Anji

Maybe you are looking for