Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5850
Table Type: Company
Table Name: Invt. Document Header
Database Table Name: CRONUS UK Ltd_$Invt_ Document Header$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 Invt. Document Header can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Invt_ Document Header$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Document Type]
,[No_]
,[Posting Description]
,[Document Date]
,[Posting Date]
,[Location Code]
,[Shortcut Dimension 1 Code]
,[Shortcut Dimension 2 Code]
,[Language Code]
,[Salesperson_Purchaser Code]
,[No_ Series]
,[Posting No_ Series]
,[External Document No_]
,[Whse_ Adj_ Bin Code]
,[Posting No_]
,[Status]
,[Gen_ Bus_ Posting Group]
,[No_ Printed]
,[Correction]
,[Format Region]
,[Dimension Set ID]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Invt_ Document Header$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Invt_ Document Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Invt. Document Header]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[Invt. Document Header].[Document Type] = [Sales Header Archive].[Document Type]
AND
[Invt. Document Header].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[Invt. Document Header].[Document Type] = [Sales Header].[Document Type]
AND
[Invt. Document Header].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Invt. Document Header].[Location Code] = [Location].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Invt. Document Header].[Shortcut Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Invt. Document Header].[Shortcut Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Language$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Language]
ON
[Invt. Document Header].[Language Code] = [Language].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
ON
[Invt. Document Header].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
LEFT JOIN
[User] AS [User]
ON
[Invt. Document Header].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Invt. Document Header].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Invt. Document Header table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Document Type | Document Type | Normal | Option | 4 | Document Type | int |
Available options are:
| |||||||
2 | No. | No. | Normal | Code | 20 | No_ | nvarchar(40) |
3 | Posting Description | Posting Description | Normal | Text | 100 | Posting Description | nvarchar(200) |
5 | Document Date | Document Date | Normal | Date | 4 | Document Date | datetime |
6 | Posting Date | Posting Date | Normal | Date | 4 | Posting Date | datetime |
7 | Location Code | Location Code | Normal | Code | 10 | Location Code | nvarchar(20) |
Key to join to the Location table.Show/hide example querySELECT [Invt. Document Header].[Location Code] ,[Location].[Code] FROM [CRONUS UK Ltd_$Invt_ Document Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Invt. Document Header] LEFT JOIN [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location] ON [Invt. Document Header].[Location Code] = [Location].[Code] | |||||||
8 | 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 [Invt. Document Header].[Shortcut Dimension 1 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Invt_ Document Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Invt. Document Header] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Invt. Document Header].[Shortcut Dimension 1 Code] = [Dimension].[Code] | |||||||
9 | 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 [Invt. Document Header].[Shortcut Dimension 2 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Invt_ Document Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Invt. Document Header] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Invt. Document Header].[Shortcut Dimension 2 Code] = [Dimension].[Code] | |||||||
10 | Language Code | Language Code | Normal | Code | 10 | Language Code | nvarchar(20) |
Key to join to the Language table.Show/hide example querySELECT [Invt. Document Header].[Language Code] ,[Language].[Code] FROM [CRONUS UK Ltd_$Invt_ Document Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Invt. Document Header] LEFT JOIN [CRONUS UK Ltd_$Language$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Language] ON [Invt. Document Header].[Language Code] = [Language].[Code] | |||||||
11 | Salesperson/Purchaser Code | Salesperson/Purchaser Code | Normal | Code | 20 | Salesperson_Purchaser Code | nvarchar(40) |
12 | Receipt Comment | Receipt Comment | FlowField | Boolean | 4 | ||
13 | Shipment Comment | Shipment Comment | FlowField | Boolean | 4 | ||
14 | No. Series | No. Series | Normal | Code | 20 | No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Invt. Document Header].[No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Invt_ Document Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Invt. Document Header] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Invt. Document Header].[No_ Series] = [No. Series].[Code] | |||||||
15 | Posting No. Series | Posting No. Series | Normal | Code | 20 | Posting No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Invt. Document Header].[Posting No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Invt_ Document Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Invt. Document Header] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Invt. Document Header].[Posting No_ Series] = [No. Series].[Code] | |||||||
16 | External Document No. | External Document No. | Normal | Code | 35 | External Document No_ | nvarchar(70) |
17 | Whse. Adj. Bin Code | Whse. Adj. Bin Code | Normal | Code | 20 | Whse_ Adj_ Bin Code | nvarchar(40) |
20 | Posting No. | Posting No. | Normal | Code | 20 | Posting No_ | nvarchar(40) |
21 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
23 | 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 [Invt. Document Header].[Gen_ Bus_ Posting Group] ,[Gen. Business Posting Group].[Code] FROM [CRONUS UK Ltd_$Invt_ Document Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Invt. Document Header] LEFT JOIN [CRONUS UK Ltd_$Gen_ Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Business Posting Group] ON [Invt. Document Header].[Gen_ Bus_ Posting Group] = [Gen. Business Posting Group].[Code] | |||||||
27 | No. Printed | No. Printed | Normal | Integer | 4 | No_ Printed | int |
30 | Correction | Correction | Normal | Boolean | 4 | Correction | tinyint |
31 | Format Region | Format Region | Normal | Text | 80 | Format Region | nvarchar(160) |
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 [Invt. Document Header].[Dimension Set ID] ,[Dimension Set Entry].[Dimension Set ID] FROM [CRONUS UK Ltd_$Invt_ Document Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Invt. Document Header] LEFT JOIN [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry] ON [Invt. Document Header].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set 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 [Invt. Document Header].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Invt_ Document Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Invt. Document Header] LEFT JOIN [User] AS [User] ON [Invt. Document Header].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |