Hist. Purchase Recv. Header

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/40908

Table Type: Company

Table Name: Hist. Purchase Recv. Header
Database Table Name:

Table Number: 40908

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 Hist. Purchase Recv. Header can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   []

Show/hide an example select of all columns by name

SELECT

FROM
   []

Show/hide an example select of all columns including those from all joined tables

SELECT
   *
FROM
   [] AS [Hist. Purchase Recv. Header]
LEFT JOIN
   [CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
      ON
         [Hist. Purchase Recv. Header].[Document Type] = [Sales Header Archive].[Document Type]
      AND
         [Hist. Purchase Recv. Header].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
      ON
         [Hist. Purchase Recv. Header].[Document Type] = [Sales Header].[Document Type]
      AND
         [Hist. Purchase Recv. Header].[Document No_] = [Sales Header].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms]
      ON
         [Hist. Purchase Recv. Header].[Payment Terms Id] = [Payment Terms].[$systemId]
LEFT JOIN
   [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
      ON
         [Hist. Purchase Recv. Header].[Currency Code] = [Currency].[Code]
LEFT JOIN
   [User] AS [User]
      ON
         [Hist. Purchase Recv. Header].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Hist. Purchase Recv. Header].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Hist. Purchase Recv. Header table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Primary Key SearchPrimary KeyNormalInteger4
2Receipt No. Primary Key SearchReceipt No.NormalCode35
3Document Type SearchDocument TypeNormalOption4
4Vendor Document No. SearchVendor Document No.NormalCode35
5Receipt Date SearchReceipt DateNormalDate4
6Post Date SearchPost DateNormalDate4
7Actual Ship Date SearchActual Ship DateNormalDate4
8Batch No. SearchBatch No.NormalCode35
9Vendor No. SearchVendor No.NormalCode35
Key to join to the Vendor table.

Show/hide example query

SELECT
	       [Hist. Purchase Recv. Header].[]
	       ,[Vendor].[No_]
	FROM
	       [] AS [Hist. Purchase Recv. Header]
	LEFT JOIN
	       [CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor]
	              ON
	                     [Hist. Purchase Recv. Header].[] = [Vendor].[No_]
10Vendor Name SearchVendor NameNormalText100
11Subtotal SearchSubtotalNormalDecimal12
12Trade Discount Amount SearchTrade Discount AmountNormalDecimal12
13Freight Amount SearchFreight AmountNormalDecimal12
14Misc. Amount SearchMisc. AmountNormalDecimal12
15Tax Amount SearchTax AmountNormalDecimal12
161099 Amount Search1099 AmountNormalDecimal12
17Payment Terms ID SearchPayment Terms IDNormalText50
Key to join to the Payment Terms table.

Show/hide example query

SELECT
	       [Hist. Purchase Recv. Header].[]
	       ,[Payment Terms].[$systemId]
	FROM
	       [] AS [Hist. Purchase Recv. Header]
	LEFT JOIN
	       [CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms]
	              ON
	                     [Hist. Purchase Recv. Header].[] = [Payment Terms].[$systemId]
18Discount Percent Amount SearchDiscount Percent AmountNormalDecimal12
19Discount Dollar Amount SearchDiscount Dollar AmountNormalDecimal12
20Discount Available Amount SearchDiscount Available AmountNormalDecimal12
21Discount Date SearchDiscount DateNormalDate4
22Due Date SearchDue DateNormalDate4
23Reference SearchReferenceNormalText50
24Void SearchVoidNormalBoolean4
25User SearchUserNormalText50
26Audit Code SearchAudit CodeNormalCode35
27Voucher No. SearchVoucher No.NormalCode35
28Currency Code SearchCurrency CodeNormalCode35
Key to join to the Currency table.

Show/hide example query

SELECT
	       [Hist. Purchase Recv. Header].[]
	       ,[Currency].[Code]
	FROM
	       [] AS [Hist. Purchase Recv. Header]
	LEFT JOIN
	       [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
	              ON
	                     [Hist. Purchase Recv. Header].[] = [Currency].[Code]
29Invoice Receipt Date SearchInvoice Receipt DateNormalDate4
30Prepayment Amount SearchPrepayment AmountNormalDecimal12
2000000000$systemId SearchSystem IDNormalGUID16
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8
2000000002SystemCreatedBy SearchCreated ByNormalGUID16
Key to join to the User table.

Show/hide example query

SELECT
	       [Hist. Purchase Recv. Header].[]
	       ,[User].[User Security ID]
	FROM
	       [] AS [Hist. Purchase Recv. Header]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Hist. Purchase Recv. Header].[] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8
2000000004SystemModifiedBy SearchModified ByNormalGUID16

Show/hide tables related from Hist. Purchase Recv. Header table

Leave a Reply

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