Invt. Document Header

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

Table Number: 5850

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 NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Document Type SearchDocument TypeNormalOption4Document Typeint
Available options are:
  • “Receipt”
  • “Shipment”
2No. Primary Key SearchNo.NormalCode20No_nvarchar(40)
3Posting Description Primary Key SearchPosting DescriptionNormalText100Posting Descriptionnvarchar(200)
5Document Date SearchDocument DateNormalDate4Document Datedatetime
6Posting Date SearchPosting DateNormalDate4Posting Datedatetime
7Location Code SearchLocation CodeNormalCode10Location Codenvarchar(20)
Key to join to the Location table.

Show/hide example query

SELECT
	       [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]
8Shortcut Dimension 1 Code SearchShortcut Dimension 1 CodeNormalCode20Shortcut Dimension 1 Codenvarchar(40)
Key to join to the Dimension table.

Show/hide example query

SELECT
	       [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]
9Shortcut Dimension 2 Code SearchShortcut Dimension 2 CodeNormalCode20Shortcut Dimension 2 Codenvarchar(40)
Key to join to the Dimension table.

Show/hide example query

SELECT
	       [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]
10Language Code SearchLanguage CodeNormalCode10Language Codenvarchar(20)
Key to join to the Language table.

Show/hide example query

SELECT
	       [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]
11Salesperson/Purchaser Code SearchSalesperson/Purchaser CodeNormalCode20Salesperson_Purchaser Codenvarchar(40)
12Receipt Comment SearchReceipt CommentFlowFieldBoolean4
13Shipment Comment SearchShipment CommentFlowFieldBoolean4
14No. Series SearchNo. SeriesNormalCode20No_ Seriesnvarchar(40)
Key to join to the No. Series table.

Show/hide example query

SELECT
	       [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]
15Posting No. Series SearchPosting No. SeriesNormalCode20Posting No_ Seriesnvarchar(40)
Key to join to the No. Series table.

Show/hide example query

SELECT
	       [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]
16External Document No. SearchExternal Document No.NormalCode35External Document No_nvarchar(70)
17Whse. Adj. Bin Code SearchWhse. Adj. Bin CodeNormalCode20Whse_ Adj_ Bin Codenvarchar(40)
20Posting No. SearchPosting No.NormalCode20Posting No_nvarchar(40)
21Status SearchStatusNormalOption4Statusint
Available options are:
  • “Open”
  • “Released”
23Gen. Bus. Posting Group SearchGen. Bus. Posting GroupNormalCode20Gen_ Bus_ Posting Groupnvarchar(40)
Key to join to the Gen. Business Posting Group table.

Show/hide example query

SELECT
	       [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]
27No. Printed SearchNo. PrintedNormalInteger4No_ Printedint
30Correction SearchCorrectionNormalBoolean4Correctiontinyint
31Format Region SearchFormat RegionNormalText80Format Regionnvarchar(160)
480Dimension Set ID SearchDimension Set IDNormalInteger4Dimension Set IDint
Key to join to the Dimension Set Entry table.

Show/hide example query

SELECT
	       [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 SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [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]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Show/hide tables related from Invt. Document Header table

Leave a Reply

Your email address will not be published. Required fields are marked *