Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5405
Table Type: Company
Table Name: Production Order
Database Table Name: CRONUS UK Ltd_$Production Order$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 Order can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Status]
,[No_]
,[Description]
,[Search Description]
,[Description 2]
,[Creation Date]
,[Last Date Modified]
,[Source Type]
,[Source No_]
,[Routing No_]
,[Variant Code]
,[Inventory Posting Group]
,[Gen_ Prod_ Posting Group]
,[Gen_ Bus_ Posting Group]
,[Starting Time]
,[Starting Date]
,[Ending Time]
,[Ending Date]
,[Due Date]
,[Finished Date]
,[Blocked]
,[Shortcut Dimension 1 Code]
,[Shortcut Dimension 2 Code]
,[Location Code]
,[Bin Code]
,[Replan Ref_ No_]
,[Replan Ref_ Status]
,[Low-Level Code]
,[Quantity]
,[Unit Cost]
,[Cost Amount]
,[No_ Series]
,[Planned Order No_]
,[Firm Planned Order No_]
,[Simulated Order No_]
,[Starting Date-Time]
,[Ending Date-Time]
,[Dimension Set ID]
,[Assigned User ID]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Production Order$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 Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order]
LEFT JOIN
[CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
ON
[Production Order].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Inventory Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Posting Group]
ON
[Production Order].[Inventory Posting Group] = [Inventory Posting Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period]
ON
[Production Order].[Ending Date] = [Inventory Period].[Ending Date]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Production Order].[Shortcut Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Production Order].[Shortcut Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Production Order].[Location Code] = [Location].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Bin$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bin]
ON
[Production Order].[Bin Code] = [Bin].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Work Center$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Work Center]
ON
[Production Order].[Work Center Filter] = [Work Center].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
ON
[Production Order].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
LEFT JOIN
[CRONUS UK Ltd_$User Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [User Setup]
ON
[Production Order].[Assigned User ID] = [User Setup].[User ID]
LEFT JOIN
[User] AS [User]
ON
[Production Order].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Production Order].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Production Order 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 | No. | No. | Normal | Code | 20 | No_ | nvarchar(40) |
3 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
4 | Search Description | Search Description | Normal | Code | 100 | Search Description | nvarchar(200) |
5 | Description 2 | Description 2 | Normal | Text | 50 | Description 2 | nvarchar(100) |
6 | Creation Date | Creation Date | Normal | Date | 4 | Creation Date | datetime |
7 | Last Date Modified | Last Date Modified | Normal | Date | 4 | Last Date Modified | datetime |
9 | Source Type | Source Type | Normal | Option | 4 | Source Type | int |
Available options are:
| |||||||
10 | Source No. | Source No. | Normal | Code | 20 | Source No_ | nvarchar(40) |
11 | Routing No. | Routing No. | Normal | Code | 20 | Routing No_ | nvarchar(40) |
Key to join to the Routing Header table.Show/hide example querySELECT [Production Order].[Routing No_] ,[Routing Header].[No_] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$Routing Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Routing Header] ON [Production Order].[Routing No_] = [Routing Header].[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 [Production Order].[Variant Code] ,[Item Variant].[Code] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant] ON [Production Order].[Variant Code] = [Item Variant].[Code] | |||||||
15 | 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 [Production Order].[Inventory Posting Group] ,[Inventory Posting Group].[Code] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$Inventory Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Posting Group] ON [Production Order].[Inventory Posting Group] = [Inventory Posting Group].[Code] | |||||||
16 | Gen. Prod. Posting Group | Gen. Prod. Posting Group | Normal | Code | 20 | Gen_ Prod_ Posting Group | nvarchar(40) |
Key to join to the Gen. Product Posting Group table.Show/hide example querySELECT [Production Order].[Gen_ Prod_ Posting Group] ,[Gen. Product Posting Group].[Code] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$Gen_ Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Product Posting Group] ON [Production Order].[Gen_ Prod_ Posting Group] = [Gen. Product Posting Group].[Code] | |||||||
17 | Gen. Bus. Posting Group | Gen. Bus. Posting Group | Normal | Code | 20 | Gen_ Bus_ Posting Group | nvarchar(40) |
Key to join to the Gen. Business Posting Group table.Show/hide example querySELECT [Production Order].[Gen_ Bus_ Posting Group] ,[Gen. Business Posting Group].[Code] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$Gen_ Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Business Posting Group] ON [Production Order].[Gen_ Bus_ Posting Group] = [Gen. Business Posting Group].[Code] | |||||||
19 | Comment | Comment | FlowField | Boolean | 4 | ||
20 | Starting Time | Starting Time | Normal | Time | 4 | Starting Time | datetime |
21 | Starting Date | Starting Date | Normal | Date | 4 | Starting Date | datetime |
22 | Ending Time | Ending Time | Normal | Time | 4 | Ending Time | datetime |
23 | Ending Date | Ending Date | Normal | Date | 4 | Ending Date | datetime |
Key to join to the Inventory Period table.Show/hide example querySELECT [Production Order].[Ending Date] ,[Inventory Period].[Ending Date] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period] ON [Production Order].[Ending Date] = [Inventory Period].[Ending Date] | |||||||
24 | Due Date | Due Date | Normal | Date | 4 | Due Date | datetime |
25 | Finished Date | Finished Date | Normal | Date | 4 | Finished Date | datetime |
28 | Blocked | Blocked | Normal | Boolean | 4 | Blocked | tinyint |
30 | 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 [Production Order].[Shortcut Dimension 1 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Production Order].[Shortcut Dimension 1 Code] = [Dimension].[Code] | |||||||
31 | 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 [Production Order].[Shortcut Dimension 2 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Production Order].[Shortcut Dimension 2 Code] = [Dimension].[Code] | |||||||
32 | Location Code | Location Code | Normal | Code | 10 | Location Code | nvarchar(20) |
Key to join to the Location table.Show/hide example querySELECT [Production Order].[Location Code] ,[Location].[Code] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location] ON [Production Order].[Location Code] = [Location].[Code] | |||||||
33 | Bin Code | Bin Code | Normal | Code | 20 | Bin Code | nvarchar(40) |
Key to join to the Bin table.Show/hide example querySELECT [Production Order].[Bin Code] ,[Bin].[Code] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$Bin$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bin] ON [Production Order].[Bin Code] = [Bin].[Code] | |||||||
34 | Replan Ref. No. | Replan Ref. No. | Normal | Code | 20 | Replan Ref_ No_ | nvarchar(40) |
35 | Replan Ref. Status | Replan Ref. Status | Normal | Option | 4 | Replan Ref_ Status | int |
Available options are:
| |||||||
38 | Low-Level Code | Low-Level Code | Normal | Integer | 4 | Low-Level Code | int |
40 | Quantity | Quantity | Normal | Decimal | 12 | Quantity | decimal(38,38) |
41 | Unit Cost | Unit Cost | Normal | Decimal | 12 | Unit Cost | decimal(38,38) |
42 | Cost Amount | Cost Amount | Normal | Decimal | 12 | Cost Amount | decimal(38,38) |
47 | Work Center Filter | Work Center Filter | FlowFilter | Code | 20 | ||
Key to join to the Work Center table.Show/hide example querySELECT [Production Order].[] ,[Work Center].[No_] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$Work Center$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Work Center] ON [Production Order].[] = [Work Center].[No_] | |||||||
48 | Capacity Type Filter | Capacity Type Filter | FlowFilter | Option | 4 | ||
49 | Capacity No. Filter | Capacity No. Filter | FlowFilter | Code | 20 | ||
50 | Date Filter | Date Filter | FlowFilter | Date | 4 | ||
51 | Expected Operation Cost Amt. | Expected Operation Cost Amt. | FlowField | Decimal | 12 | ||
52 | Expected Component Cost Amt. | Expected Component Cost Amt. | FlowField | Decimal | 12 | ||
55 | Actual Time Used | Actual Time Used | FlowField | Decimal | 12 | ||
56 | Allocated Capacity Need | Allocated Capacity Need | FlowField | Decimal | 12 | ||
57 | Expected Capacity Need | Expected Capacity Need | FlowField | Decimal | 12 | ||
80 | No. Series | No. Series | Normal | Code | 20 | No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Production Order].[No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Production Order].[No_ Series] = [No. Series].[Code] | |||||||
82 | Planned Order No. | Planned Order No. | Normal | Code | 20 | Planned Order No_ | nvarchar(40) |
83 | Firm Planned Order No. | Firm Planned Order No. | Normal | Code | 20 | Firm Planned Order No_ | nvarchar(40) |
85 | Simulated Order No. | Simulated Order No. | Normal | Code | 20 | Simulated Order No_ | nvarchar(40) |
92 | Expected Material Ovhd. Cost | Expected Material Ovhd. Cost | FlowField | Decimal | 12 | ||
94 | Expected Capacity Ovhd. Cost | Expected Capacity Ovhd. Cost | FlowField | Decimal | 12 | ||
98 | Starting Date-Time | Starting Date-Time | Normal | DateTime | 8 | Starting Date-Time | datetime |
99 | 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 [Production Order].[Dimension Set ID] ,[Dimension Set Entry].[Dimension Set ID] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry] ON [Production Order].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID] | |||||||
7300 | Completely Picked | Completely Picked | FlowField | Boolean | 4 | ||
9000 | Assigned User ID | Assigned User ID | Normal | Code | 50 | Assigned User ID | nvarchar(100) |
Key to join to the User Setup table.Show/hide example querySELECT [Production Order].[Assigned User ID] ,[User Setup].[User ID] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [CRONUS UK Ltd_$User Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [User Setup] ON [Production Order].[Assigned User ID] = [User Setup].[User ID] | |||||||
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 Order].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Production Order$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Production Order] LEFT JOIN [User] AS [User] ON [Production Order].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |