Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/99000772
Table Type: Company
Table Name: Production BOM Line
Database Table Name: CRONUS UK Ltd_$Production BOM Line$437dbf0e-84ff-417a-965d-ed2bb9650972
Due to how Dynamics BC tables and columns are named, square brackets need to be wrapped around the table name and column names. Below are example queries showing how Production BOM Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Production BOM Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Production BOM No_]
,[Line No_]
,[Version Code]
,[Type]
,[No_]
,[Description]
,[Unit of Measure Code]
,[Quantity]
,[Position]
,[Position 2]
,[Position 3]
,[Lead-Time Offset]
,[Routing Link Code]
,[Scrap _]
,[Variant Code]
,[Starting Date]
,[Ending Date]
,[Length]
,[Width]
,[Weight]
,[Depth]
,[Calculation Formula]
,[Quantity per]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Production BOM Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Production BOM Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production BOM Line]
LEFT JOIN
[CRONUS UK Ltd_$Routing Link$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Routing Link]
ON
[Production BOM Line].[Routing Link Code] = [Routing Link].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
ON
[Production BOM Line].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period]
ON
[Production BOM Line].[Ending Date] = [Inventory Period].[Ending Date]
LEFT JOIN
[User] AS [User]
ON
[Production BOM Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Production BOM Line].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Production BOM Line table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Production BOM No. | Production BOM No. | Normal | Code | 20 | Production BOM No_ | nvarchar(40) |
Key to join to the Production BOM Header table.Show/hide example querySELECT [Production BOM Line].[Production BOM No_] ,[Production BOM Header].[No_] FROM [CRONUS UK Ltd_$Production BOM Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production BOM Line] LEFT JOIN [CRONUS UK Ltd_$Production BOM Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production BOM Header] ON [Production BOM Line].[Production BOM No_] = [Production BOM Header].[No_] | |||||||
2 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
3 | Version Code | Version Code | Normal | Code | 20 | Version Code | nvarchar(40) |
10 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
11 | No. | No. | Normal | Code | 20 | No_ | nvarchar(40) |
12 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
13 | Unit of Measure Code | Unit of Measure Code | Normal | Code | 10 | Unit of Measure Code | nvarchar(20) |
14 | Quantity | Quantity | Normal | Decimal | 12 | Quantity | decimal(38,38) |
15 | Position | Position | Normal | Code | 10 | Position | nvarchar(20) |
16 | Position 2 | Position 2 | Normal | Code | 10 | Position 2 | nvarchar(20) |
17 | Position 3 | Position 3 | Normal | Code | 10 | Position 3 | nvarchar(20) |
18 | Lead-Time Offset | Lead-Time Offset | Normal | DateFormula | 32 | Lead-Time Offset | varchar(32) |
19 | Routing Link Code | Routing Link Code | Normal | Code | 10 | Routing Link Code | nvarchar(20) |
Key to join to the Routing Link table.Show/hide example querySELECT [Production BOM Line].[Routing Link Code] ,[Routing Link].[Code] FROM [CRONUS UK Ltd_$Production BOM Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production BOM Line] LEFT JOIN [CRONUS UK Ltd_$Routing Link$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Routing Link] ON [Production BOM Line].[Routing Link Code] = [Routing Link].[Code] | |||||||
20 | Scrap % | Scrap % | Normal | Decimal | 12 | Scrap _ | decimal(38,38) |
21 | Variant Code | Variant Code | Normal | Code | 10 | Variant Code | nvarchar(20) |
Key to join to the Item Variant table.Show/hide example querySELECT [Production BOM Line].[Variant Code] ,[Item Variant].[Code] FROM [CRONUS UK Ltd_$Production BOM Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production BOM Line] LEFT JOIN [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant] ON [Production BOM Line].[Variant Code] = [Item Variant].[Code] | |||||||
22 | Comment | Comment | FlowField | Boolean | 4 | ||
28 | Starting Date | Starting Date | Normal | Date | 4 | Starting Date | datetime |
29 | Ending Date | Ending Date | Normal | Date | 4 | Ending Date | datetime |
Key to join to the Inventory Period table.Show/hide example querySELECT [Production BOM Line].[Ending Date] ,[Inventory Period].[Ending Date] FROM [CRONUS UK Ltd_$Production BOM Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production BOM Line] LEFT JOIN [CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period] ON [Production BOM Line].[Ending Date] = [Inventory Period].[Ending Date] | |||||||
40 | Length | Length | Normal | Decimal | 12 | Length | decimal(38,38) |
41 | Width | Width | Normal | Decimal | 12 | Width | decimal(38,38) |
42 | Weight | Weight | Normal | Decimal | 12 | Weight | decimal(38,38) |
43 | Depth | Depth | Normal | Decimal | 12 | Depth | decimal(38,38) |
44 | Calculation Formula | Calculation Formula | Normal | Option | 4 | Calculation Formula | int |
Available options are:
| |||||||
45 | Quantity per | Quantity per | Normal | Decimal | 12 | Quantity per | decimal(38,38) |
2000000000 | $systemId | System ID | Normal | GUID | 16 | $systemId | uniqueidentifier |
2000000001 | SystemCreatedAt | Created At | Normal | DateTime | 8 | $systemCreatedAt | datetime |
2000000002 | SystemCreatedBy | Created By | Normal | GUID | 16 | $systemCreatedBy | uniqueidentifier |
Key to join to the User table.Show/hide example querySELECT [Production BOM Line].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Production BOM Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production BOM Line] LEFT JOIN [User] AS [User] ON [Production BOM Line].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |