Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5406
Table Type: Company
Table Name: Prod. Order Line
Database Table Name: CRONUS UK Ltd_$Prod_ Order 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 Prod. Order Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Status]
,[Prod_ Order No_]
,[Line No_]
,[Item No_]
,[Variant Code]
,[Description]
,[Description 2]
,[Location Code]
,[Shortcut Dimension 1 Code]
,[Shortcut Dimension 2 Code]
,[Bin Code]
,[Quantity]
,[Finished Quantity]
,[Remaining Quantity]
,[Scrap _]
,[Due Date]
,[Starting Date]
,[Starting Time]
,[Ending Date]
,[Ending Time]
,[Planning Level Code]
,[Priority]
,[Production BOM No_]
,[Routing No_]
,[Inventory Posting Group]
,[Routing Reference No_]
,[Unit Cost]
,[Cost Amount]
,[Qty_ Rounding Precision]
,[Qty_ Rounding Precision (Base)]
,[Unit of Measure Code]
,[Quantity (Base)]
,[Finished Qty_ (Base)]
,[Remaining Qty_ (Base)]
,[Starting Date-Time]
,[Ending Date-Time]
,[Dimension Set ID]
,[Cost Amount (ACY)]
,[Unit Cost (ACY)]
,[Production BOM Version Code]
,[Routing Version Code]
,[Routing Type]
,[Qty_ per Unit of Measure]
,[MPS Order]
,[Planning Flexibility]
,[Indirect Cost _]
,[Overhead Rate]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Prod_ Order 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_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line]
LEFT JOIN
[CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
ON
[Prod. Order Line].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Prod. Order Line].[Location Code] = [Location].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Prod. Order Line].[Shortcut Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Prod. Order Line].[Shortcut Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Bin$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bin]
ON
[Prod. Order Line].[Bin Code] = [Bin].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period]
ON
[Prod. Order Line].[Ending Date] = [Inventory Period].[Ending Date]
LEFT JOIN
[CRONUS UK Ltd_$Inventory Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Posting Group]
ON
[Prod. Order Line].[Inventory Posting Group] = [Inventory Posting Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
ON
[Prod. Order Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
LEFT JOIN
[User] AS [User]
ON
[Prod. Order Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Prod. Order Line].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Prod. Order Line table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
2 | Prod. Order No. | Prod. Order No. | Normal | Code | 20 | Prod_ Order No_ | nvarchar(40) |
3 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
11 | Item No. | Item No. | Normal | Code | 20 | Item No_ | nvarchar(40) |
Key to join to the Item table.Show/hide example querySELECT [Prod. Order Line].[Item No_] ,[Item].[No_] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Prod. Order Line].[Item No_] = [Item].[No_] | |||||||
12 | Variant Code | Variant Code | Normal | Code | 10 | Variant Code | nvarchar(20) |
Key to join to the Item Variant table.Show/hide example querySELECT [Prod. Order Line].[Variant Code] ,[Item Variant].[Code] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant] ON [Prod. Order Line].[Variant Code] = [Item Variant].[Code] | |||||||
13 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
14 | Description 2 | Description 2 | Normal | Text | 50 | Description 2 | nvarchar(100) |
20 | Location Code | Location Code | Normal | Code | 10 | Location Code | nvarchar(20) |
Key to join to the Location table.Show/hide example querySELECT [Prod. Order Line].[Location Code] ,[Location].[Code] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location] ON [Prod. Order Line].[Location Code] = [Location].[Code] | |||||||
21 | Shortcut Dimension 1 Code | Shortcut Dimension 1 Code | Normal | Code | 20 | Shortcut Dimension 1 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Prod. Order Line].[Shortcut Dimension 1 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Prod. Order Line].[Shortcut Dimension 1 Code] = [Dimension].[Code] | |||||||
22 | Shortcut Dimension 2 Code | Shortcut Dimension 2 Code | Normal | Code | 20 | Shortcut Dimension 2 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Prod. Order Line].[Shortcut Dimension 2 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Prod. Order Line].[Shortcut Dimension 2 Code] = [Dimension].[Code] | |||||||
23 | Bin Code | Bin Code | Normal | Code | 20 | Bin Code | nvarchar(40) |
Key to join to the Bin table.Show/hide example querySELECT [Prod. Order Line].[Bin Code] ,[Bin].[Code] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [CRONUS UK Ltd_$Bin$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bin] ON [Prod. Order Line].[Bin Code] = [Bin].[Code] | |||||||
40 | Quantity | Quantity | Normal | Decimal | 12 | Quantity | decimal(38,38) |
41 | Finished Quantity | Finished Quantity | Normal | Decimal | 12 | Finished Quantity | decimal(38,38) |
42 | Remaining Quantity | Remaining Quantity | Normal | Decimal | 12 | Remaining Quantity | decimal(38,38) |
45 | Scrap % | Scrap % | Normal | Decimal | 12 | Scrap _ | decimal(38,38) |
47 | Due Date | Due Date | Normal | Date | 4 | Due Date | datetime |
48 | Starting Date | Starting Date | Normal | Date | 4 | Starting Date | datetime |
49 | Starting Time | Starting Time | Normal | Time | 4 | Starting Time | datetime |
50 | Ending Date | Ending Date | Normal | Date | 4 | Ending Date | datetime |
Key to join to the Inventory Period table.Show/hide example querySELECT [Prod. Order Line].[Ending Date] ,[Inventory Period].[Ending Date] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period] ON [Prod. Order Line].[Ending Date] = [Inventory Period].[Ending Date] | |||||||
51 | Ending Time | Ending Time | Normal | Time | 4 | Ending Time | datetime |
52 | Planning Level Code | Planning Level Code | Normal | Integer | 4 | Planning Level Code | int |
53 | Priority | Priority | Normal | Integer | 4 | Priority | int |
60 | 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 [Prod. Order Line].[Production BOM No_] ,[Production BOM Header].[No_] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [CRONUS UK Ltd_$Production BOM Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production BOM Header] ON [Prod. Order Line].[Production BOM No_] = [Production BOM Header].[No_] Show/hide example querySELECT [Prod. Order Line].[Production BOM No_] ,[Production BOM Line].[Line No_] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [CRONUS UK Ltd_$Production BOM Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production BOM Line] ON [Prod. Order Line].[Production BOM No_] = [Production BOM Line].[Line No_] Show/hide example querySELECT [Prod. Order Line].[Production BOM No_] ,[Production BOM Line].[Production BOM No_] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [CRONUS UK Ltd_$Production BOM Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production BOM Line] ON [Prod. Order Line].[Production BOM No_] = [Production BOM Line].[Production BOM No_] | |||||||
61 | Routing No. | Routing No. | Normal | Code | 20 | Routing No_ | nvarchar(40) |
Key to join to the Routing Header table.Show/hide example querySELECT [Prod. Order Line].[Routing No_] ,[Routing Header].[No_] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [CRONUS UK Ltd_$Routing Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Routing Header] ON [Prod. Order Line].[Routing No_] = [Routing Header].[No_] | |||||||
62 | Inventory Posting Group | Inventory Posting Group | Normal | Code | 20 | Inventory Posting Group | nvarchar(40) |
Key to join to the Inventory Posting Group table.Show/hide example querySELECT [Prod. Order Line].[Inventory Posting Group] ,[Inventory Posting Group].[Code] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [CRONUS UK Ltd_$Inventory Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Posting Group] ON [Prod. Order Line].[Inventory Posting Group] = [Inventory Posting Group].[Code] | |||||||
63 | Routing Reference No. | Routing Reference No. | Normal | Integer | 4 | Routing Reference No_ | int |
65 | Unit Cost | Unit Cost | Normal | Decimal | 12 | Unit Cost | decimal(38,38) |
67 | Cost Amount | Cost Amount | Normal | Decimal | 12 | Cost Amount | decimal(38,38) |
68 | Reserved Quantity | Reserved Quantity | FlowField | Decimal | 12 | ||
70 | Capacity Type Filter | Capacity Type Filter | FlowFilter | Option | 4 | ||
71 | Capacity No. Filter | Capacity No. Filter | FlowFilter | Code | 20 | ||
72 | Date Filter | Date Filter | FlowFilter | Date | 4 | ||
73 | Qty. Rounding Precision | Qty. Rounding Precision | Normal | Decimal | 12 | Qty_ Rounding Precision | decimal(38,38) |
74 | Qty. Rounding Precision (Base) | Qty. Rounding Precision (Base) | Normal | Decimal | 12 | Qty_ Rounding Precision (Base) | decimal(38,38) |
80 | Unit of Measure Code | Unit of Measure Code | Normal | Code | 10 | Unit of Measure Code | nvarchar(20) |
81 | Quantity (Base) | Quantity (Base) | Normal | Decimal | 12 | Quantity (Base) | decimal(38,38) |
82 | Finished Qty. (Base) | Finished Qty. (Base) | Normal | Decimal | 12 | Finished Qty_ (Base) | decimal(38,38) |
83 | Remaining Qty. (Base) | Remaining Qty. (Base) | Normal | Decimal | 12 | Remaining Qty_ (Base) | decimal(38,38) |
84 | Reserved Qty. (Base) | Reserved Qty. (Base) | FlowField | Decimal | 12 | ||
90 | Expected Operation Cost Amt. | Expected Operation Cost Amt. | FlowField | Decimal | 12 | ||
91 | Total Exp. Oper. Output (Qty.) | Total Exp. Oper. Output (Qty.) | FlowField | Decimal | 12 | ||
94 | Expected Component Cost Amt. | Expected Component Cost Amt. | FlowField | Decimal | 12 | ||
198 | Starting Date-Time | Starting Date-Time | Normal | DateTime | 8 | Starting Date-Time | datetime |
199 | Ending Date-Time | Ending Date-Time | Normal | DateTime | 8 | Ending Date-Time | datetime |
480 | Dimension Set ID | Dimension Set ID | Normal | Integer | 4 | Dimension Set ID | int |
Key to join to the Dimension Set Entry table.Show/hide example querySELECT [Prod. Order Line].[Dimension Set ID] ,[Dimension Set Entry].[Dimension Set ID] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry] ON [Prod. Order Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID] | |||||||
5831 | Cost Amount (ACY) | Cost Amount (ACY) | Normal | Decimal | 12 | Cost Amount (ACY) | decimal(38,38) |
5832 | Unit Cost (ACY) | Unit Cost (ACY) | Normal | Decimal | 12 | Unit Cost (ACY) | decimal(38,38) |
99000750 | Production BOM Version Code | Production BOM Version Code | Normal | Code | 20 | Production BOM Version Code | nvarchar(40) |
99000751 | Routing Version Code | Routing Version Code | Normal | Code | 20 | Routing Version Code | nvarchar(40) |
99000752 | Routing Type | Routing Type | Normal | Option | 4 | Routing Type | int |
Available options are:
| |||||||
99000753 | Qty. per Unit of Measure | Qty. per Unit of Measure | Normal | Decimal | 12 | Qty_ per Unit of Measure | decimal(38,38) |
99000754 | MPS Order | MPS Order | Normal | Boolean | 4 | MPS Order | tinyint |
99000755 | Planning Flexibility | Planning Flexibility | Normal | Option | 4 | Planning Flexibility | int |
Available options are:
| |||||||
99000764 | Indirect Cost % | Indirect Cost % | Normal | Decimal | 12 | Indirect Cost _ | decimal(38,38) |
99000765 | Overhead Rate | Overhead Rate | Normal | Decimal | 12 | Overhead Rate | 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 [Prod. Order Line].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Prod_ Order Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Prod. Order Line] LEFT JOIN [User] AS [User] ON [Prod. Order Line].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |