GPRMHist

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

Table Type: Company

Table Name: GPRMHist
Database Table Name:

Table Number: 4065

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 GPRMHist 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 [GPRMHist]
LEFT JOIN
   [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
      ON
         [GPRMHist].[CUSTNMBR] = [Customer].[No_]
LEFT JOIN
   [User] AS [User]
      ON
         [GPRMHist].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [GPRMHist].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in GPRMHist table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1CUSTNMBR SearchCustomer NumberNormalText16
Key to join to the Customer table.

Show/hide example query

SELECT
	       [GPRMHist].[]
	       ,[Customer].[No_]
	FROM
	       [] AS [GPRMHist]
	LEFT JOIN
	       [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
	              ON
	                     [GPRMHist].[] = [Customer].[No_]
2CPRCSTNM Primary Key SearchCorporate Customer NumberNormalText16
3DOCNUMBR SearchDocument NumberNormalText22
4CHEKNMBR Primary Key SearchCheck NumberNormalText22
5BACHNUMB SearchBatch NumberNormalText16
6BCHSOURC SearchBatch SourceNormalText16
7TRXSORCE SearchTRX SourceNormalText14
8RMDTYPAL SearchRM Document Type-AllNormalOption4
9DUEDATE Primary Key SearchDue DateNormalDate4
10DOCDATE SearchDocument DateNormalDate4
11POSTDATE SearchPost DateNormalDate4
12PSTUSRID SearchPost User IDNormalText16
13GLPOSTDT SearchGL Posting DateNormalDate4
14LSTEDTDT SearchLast Edit DateNormalDate4
15LSTUSRED SearchLast User to EditNormalText16
16ORTRXAMT SearchOriginal Trx AmountNormalDecimal12
17CURTRXAM SearchCurrent Trx AmountNormalDecimal12
18SLSAMNT SearchSales AmountNormalDecimal12
19COSTAMNT SearchCost AmountNormalDecimal12
20FRTAMNT SearchFreight AmountNormalDecimal12
21MISCAMNT SearchMisc AmountNormalDecimal12
22TAXAMNT SearchTax AmountNormalDecimal12
23COMDLRAM SearchCommission Dollar AmountNormalDecimal12
24CASHAMNT SearchCash AmountNormalDecimal12
25DISTKNAM SearchDiscount Taken AmountNormalDecimal12
26DISAVAMT SearchDiscount Available AmountNormalDecimal12
27DISCRTND SearchDiscount ReturnedNormalDecimal12
28DISCDATE SearchDiscount DateNormalDate4
29DSCDLRAM SearchDiscount Dollar AmountNormalDecimal12
30DSCPCTAM SearchDiscount Percent AmountNormalInteger4
31WROFAMNT SearchWrite Off AmountNormalDecimal12
32TRXDSCRN SearchTransaction DescriptionNormalText32
33CSPORNBR SearchCustomer Purchase Order NumberNormalText22
34SLPRSNID SearchSalesperson IDNormalText16
35SLSTERCD SearchSales Territory CodeNormalText16
36DINVPDOF SearchDate Invoice Paid OffNormalDate4
37PPSAMDED SearchPPS Amount DeductedNormalDecimal12
38GSTDSAMT SearchGST Discount AmountNormalDecimal12
39DELETE1 SearchDeleteNormalBoolean4
40TAXSCHID SearchTax Schedule IDNormalText16
41SLSCHDID SearchSales Schedule IDNormalText16
42FRTSCHID SearchFreight Schedule IDNormalText16
43MSCSCHID SearchMisc Schedule IDNormalText16
44CURNCYID SearchCurrency IDNormalText16
45SHIPMTHD SearchShipping MethodNormalText16
46PYMTRMID SearchPayment Terms IDNormalText22
47TRDISAMT SearchTrade Discount AmountNormalDecimal12
48NOTEINDX SearchNote IndexNormalDecimal12
49VOIDSTTS SearchVoid StatusNormalOption4
50VOIDDATE SearchVoid DateNormalDate4
51BALFWDNM SearchBalance Forward NumberNormalText22
52CSHRCTYP SearchCash Receipt TypeNormalOption4
53Tax_Date SearchTax DateNormalDate4
54APLYWITH SearchApply WithholdingNormalBoolean4
55SALEDATE SearchSale DateNormalDate4
56CORRCTN SearchCorrectionNormalBoolean4
57SIMPLIFD SearchSimplifiedNormalBoolean4
58Electronic SearchElectronicNormalBoolean4
59ECTRX SearchEC TransactionNormalBoolean4
60BKTSLSAM SearchBackout Sales AmountNormalDecimal12
61BackoutTradeDisc SearchBackout Trade Discount AmountNormalDecimal12
62BKTFRTAM SearchBackout Freight AmountNormalDecimal12
63BKTMSCAM SearchBackout Misc AmountNormalDecimal12
64Factoring SearchFactoringNormalBoolean4
65DIRECTDEBIT SearchDirect DebitNormalBoolean4
66ADRSCODE SearchAddress CodeNormalText16
67EFTFLAG SearchEFT FlagNormalBoolean4
68DEX_ROW_TS SearchDEX_ROW_TSNormalDateTime8
69DEX_ROW_ID SearchDEX_ROW_IDNormalInteger4
2000000000$systemId SearchSystem IDNormalGUID16
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8
2000000002SystemCreatedBy SearchCreated ByNormalGUID16
Key to join to the User table.

Show/hide example query

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

Leave a Reply

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