Recursive Query - Bills of Materials
I have a table that list all Parts that have materials (PartMtl table). Ex. part 1 has materials 2a, 2b, & 2c. I tie this table to a PartCost table linked on the materials. So I get costs for 2a, 2b, & 2c. This works smooth. Now when I want to go a level deeper, and get 2a's materials, 3a, & 3b. things get a little more complicated. Up until this point, I have simply created aliases for the PartMtl & PartCost tables.
The problem with this method is I need to build the report with an alias for each table for each level for as many levels as I imagine our materials listings can grow. This design is shaky at best and does not allow for additional levels. Is there a way to dynamically create this recursion?
Thank you,
You can base the report on an SQL Command something like (MS SQL):
declare @level int;
declare @reccnt int;
declare @reccnt2 int;
set @level = 1;
select @level as level,
pm.parent,
pm.component,
pm.qty_required,
pc.cost
into #temp
from PartMtl pm, PartCost pc
where pm.parent = '{?item to explode}'
and pm.component = pc.part_id;
set @reccnt = 0;
set @reccnt2 = ( select count(*) from #temp );
/* loop until no more records inserted */
while @reccnt <> @reccnt2
begin
set @level = @level + 1;
insert into #temp
select @level as level,
pm.parent,
pm.component,
pm.qty_required,
pc.cost
from #temp t, PartMtl pm, PartCost pc
where t.level = @level - 1
and t.component = pm.parent
and pm.component = pc.part_id
set @reccnt = @reccnt2;
set @reccnt2 = ( select count(*) from #temp );
end;
HTH,
Carl
Similar Messages
-
Query bill of materials - web service
Hello,
When I query the bill of material using the web server QueryProductionBillOfMaterialIn using the FindItemGroupItemChangeStateSimpleByElements operation to retrieve the input products, I get the full list of all input products regardless of the validity date.
Does anyone know if it is possible to query this web service so that you can filter the result based on the reference date as you do when editing a production BoM?
Many thanks,
PaulHello,
When I query the bill of material using the web server QueryProductionBillOfMaterialIn using the FindItemGroupItemChangeStateSimpleByElements operation to retrieve the input products, I get the full list of all input products regardless of the validity date.
Does anyone know if it is possible to query this web service so that you can filter the result based on the reference date as you do when editing a production BoM?
Many thanks,
Paul -
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]} -
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 hierarchical 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 -
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 PMDear 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 -
Someone please help me Design the database of bill of materials with 1 item can have mutiple parent
I got this sample from Uri
Dimant (MCC, MVP) ,
The problem is i want 1 item to have multiple parent but this example don t let 1 item to have multiple parents. this is not suit for my objective.
CREATE TABLE Employees
empid int NOT NULL,
mgrid int NULL,
empname varchar(25) NOT NULL,
salary money NOT NULL,
CONSTRAINT PK_Employees PRIMARY KEY(empid),
CONSTRAINT FK_Employees_mgrid_empid
FOREIGN KEY(mgrid)
REFERENCES Employees(empid)
CREATE INDEX idx_nci_mgrid ON Employees(mgrid)
SET NOCOUNT ON
INSERT INTO Employees VALUES(1 , NULL, 'Nancy' , $10000.00)
INSERT INTO Employees VALUES(2 , 1 , 'Andrew' , $5000.00)
INSERT INTO Employees VALUES(3 , 1 , 'Janet' , $5000.00)
INSERT INTO Employees VALUES(4 , 1 , 'Margaret', $5000.00)
INSERT INTO Employees VALUES(5 , 2 , 'Steven' , $2500.00)
INSERT INTO Employees VALUES(6 , 2 , 'Michael' , $2500.00)
INSERT INTO Employees VALUES(7 , 3 , 'Robert' , $2500.00)
INSERT INTO Employees VALUES(8 , 3 , 'Laura' , $2500.00)
INSERT INTO Employees VALUES(9 , 3 , 'Ann' , $2500.00)
INSERT INTO Employees VALUES(10, 4 , 'Ina' , $2500.00)
INSERT INTO Employees VALUES(11, 7 , 'David' , $2000.00)
INSERT INTO Employees VALUES(12, 7 , 'Ron' , $2000.00)
INSERT INTO Employees VALUES(13, 7 , 'Dan' , $2000.00)
INSERT INTO Employees VALUES(14, 11 , 'James' , $1500.00)
WITH EmpCTE(empid, empname, mgrid, lvl)
AS
-- Anchor Member (AM)
SELECT empid, empname, mgrid, 0
FROM Employees
WHERE empid = 1
UNION ALL
-- Recursive Member (RM)
SELECT E.empid, E.empname, E.mgrid, M.lvl+1
FROM Employees AS E
JOIN EmpCTE AS M
ON E.mgrid = M.empid
SELECT * FROM EmpCTE
My object is
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
Base on the example that Uri
Dimant gave me , i have to stroe 1 item wtih multi parents for example if b is a child of a And b have c as child , When i insert D as a parent of B , c will automatic come along with B , But this not seem gonna work.
item Parent
A NULL
B A
C B
B D
Am i wrong to go this way , any ideathanks Uri
Dimant
I am
little confuse about how can i write
hierarchy sql from this relation , Thanks
so far i got
WITH EmpCTE(cid, cname, pid, lvl)
AS
SELECT cid , cname , children.pid , 0
FROM children INNER JOIN
parents ON children.pid = parents.pid
where cid = 1
UNION ALL
SELECT E.cid , E.cname , E.pid , M.lvl+1
FROM ( select cid , cname , children.pid FROM children INNER JOIN
parents ON children.pid = parents.pid) AS E JOIN EmpCTE AS M
ON E.pid = M.cid
SELECT * FROM EmpCTE -
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,
RajeshHi Rajesh,
You need to use/bring field invtryuom from table oitm.
Hope this helps..
BR
Samir Gandhi -
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!
LiviuWell, 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 -
Substitute Ingredient when out of stock in Bill of Materials?
Hi, Is there a way to have substitute items in a bill of materials? If an ingredient is out of stock could sap business one suggest an alternative ingredient when making a production order?
Thank you.Hi Jose ..
The issue is that alternative items functionality is not implemented in the Product Trees as if it is possible to use in sales documents (ctrl + tab)
In this case, what you can do is check the stock and if one is not covered, the teacher would have to open the product and from there check your Alternative for manual update on the Product Trees
Regards, -
Recursive Query without using connect_by
Hi All,
I have to find all the nodes related to a given node in a huge database table(billions of rows). Each node contains the following fields:
nodeID
TargetID
SourceID
TypeOfNode
Some XML metadata
The nodeID is the id for each node. My task is given a nodeID say 10 would be to retrieve this node from the database get the TargetID of this node. Then find all the nodes in the database that have their sourceID or targetID that equals this nodes TargetID. I have to do that recursively on each node that I found in the last query till I have the complete graph of all the nodes that are related to the node provided.
The method of how I am currently doing it is that I use the "connect_by" query in Oracle to find the tree of relationships in one direction then take the leaves of the tree and do a "connect by" in the opposite direction if I find any new roots I do a query in the reverse direction ..I keep doing that till I find no new roots or leaves. This works when the data is small but with the size of the data that I am quering at, I genrally end up with a OutOfMemory error and/otherwise get data back in about 4-5 days.
I was looking over the following SQL99 facility that I was hoping to use in order to get a controlled recursion on the data to do a transitive closure for graphs.
According to Stefan Wagner
"The last ISO standard for SQL, called SQL99 , provides a facility called recursive query. Writing a recursive query involves writing the query expression that one wants to recurse on and giving it a name as a temporary view, then using that name in an associated query expression.
WITH RECURSIVE
Q1 AS SELECT ... FROM ... WHERE ...,
Q2 AS SELECT ... FROM ... WHERE ...
SELECT ... FROM Q1, Q2, WHERE ... "
Do you know if we can do this in Oracle 9i or 10g. The reason why I am not really fond of "connect by" is that it allows us a very limited control on the recursion specially the type we need for a transitive closure for graphs.
I would be really gratful if you could provide some tips on how to go about solving this problem.
Thanking You,
SumitThanks For the reply..but the problem is not that easy:)... ok Ill try and explain it with an example...Here is a table (P.N. I have just put all the data to be retrieved from a table adjecent ..in real this data will be scattered over a large table..so I can not do select * from...:) )=
nodeID | TagetID | SourceID
1 | a | b
2 | a | c
3 | b | d
4 | b | e
5 | c | f
6 | c | aa
7 | f | ab
8 | f | ac
9 | aa | ad
10 | aa | ae
11 | af | d
12 | af | ba
13 | bb | af
14 | ba | bc
15 | cd | a
16 | ce | a
17 | bf | bd
18 | be | bd
19 | bd | aa
20 | cb | ca
21 | cc | ca
22 | ca | ae
23 | ca | aeWhat I need to do is given a nodeID 10..I will need to retrieve all the above rows from a table...thus the result of my SQL or recursive SQL should give me 23 rows...If you draw the above on paper you will see that the source and the target ids will make a graph.
Any Thoughts?
-Sumit -
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?
ThanksHi 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 -
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.comHello,
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. -
Procedure with recursive query working in 11g compiles with error in 10g
Hi, All,
I have a procedure that recursively selects tree-like table (with ID-ParentID relationship). Query itself works perfectly and exactly like I need in 11g and procedure containing it compiles well. But when I try to create the same procedure in 10g then I get a message that procedure compiled with error. I have no other suspicions but on the WITH part of the procedure.
The exact query is here (destination_tariff_zones is the tree-like table which refers to itself by parent_destination_tariff_zone_id):
+ open dtzl_cur FOR
with dtree (nm, iid, alevel, wldcard, dtzindex)
as (select dtz.iname, dtz.iid, 0, dtz.wildcard, rcdi.iindex
from destination_tariff_zones dtz, rating_cube_dimension_indices rcdi, rating_cube_dimensions rcd
where dtz.parent_tariff_zone_id is null and
dtz."rc_dimension_index_id" = rcdi.iid and
rcdi."rc_dimension_id" = rcd.iid and
rcd.rating_cube_id = rc_id and
rcd.dimension_type_id = dim_type
union all
select dtz.iname, dtz.iid, dtree.alevel + 1,
cast ((dtree.wldcard || dtz.wildcard) as varchar2(20)), rcdi.iindex
from dtree, destination_tariff_zones dtz, rating_cube_dimension_indices rcdi, rating_cube_dimensions rcd
where dtree.iid = dtz.parent_tariff_zone_id and
dtz."rc_dimension_index_id" = rcdi.iid and
rcdi."rc_dimension_id" = rcd.iid and
rcd.rating_cube_id = rc_id and
rcd.dimension_type_id = dim_type)
select iid, nm, wldcard, dtzindex
from dtree
order by wldcard;+
Is there any difference between how 11g and 10g handle WITH statements?
Please advise.
Thank you very much in advance,
MaxMax Afanasiev wrote:
then is there any alternative to implement what I need?You can look at using CONNECT BY to emulate a recursive query. If you can post the following we may be able to help:
1. Sample data in the form of CREATE / INSERT statements.
2. Expected output
3. Explanation of expected output (A.K.A. "business logic")
4. Use \ tags for #2 and #3. See FAQ (Link on top right side) for details. -
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
Maybe you are looking for
-
Can't believe the caching bug is STILL there
Hi, I MUST be missing something. It can't be true that this has not been fixed after so many years. So well, the problem is, every time you load an external asset or file, say for example using a Loader object or a URLLoader object (the same happened
-
hi there...I know there´s a lot of posts about this subject but i didn't find what i´m looking for... I want to know if there´s some way to give a total and a sub-total of a field, but instead of the total and subtotal sums I just want a count of the
-
WLC 4404 Wireless users getting disabled
Currently Being Moderated Wireless users getting disabled Hi, I have WLC 4404 with 7.0.116.0 version. I was getting following messages for particular APs *Dec 20 14:11:13.875: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to reset *Dec 20 14:
-
I have a palm tungsten E2. It is stuck in one place.
It keeps telling me to tap exactly on the center of the target and I do it over and over and it repeats just keeps repeating itself. Thanks for your help! Post relates to: Palm Z22
-
Lost iPod Touch 5th Gen, if stolen, can it be restored without Pascode?
Lost it, and I have already turned on Lost Mode, and play sound, (only noticed last night, and realized where I loat it probably, that was the day before.) hopefully it wasnt restored yet. IS it Possible that someone can restore it without the Pascod