Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/179
Table Type: Company
Table Name: Reversal Entry
Database Table Name: CRONUS UK Ltd_$Reversal Entry$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 Reversal Entry can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Reversal Entry$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Line No_]
,[Entry Type]
,[Entry No_]
,[G_L Register No_]
,[Source Code]
,[Journal Batch Name]
,[Transaction No_]
,[Source Type]
,[Source No_]
,[Currency Code]
,[Description]
,[Amount]
,[Debit Amount]
,[Credit Amount]
,[Amount (LCY)]
,[Debit Amount (LCY)]
,[Credit Amount (LCY)]
,[VAT Amount]
,[Posting Date]
,[Document Type]
,[Document No_]
,[Account No_]
,[Account Name]
,[Bal_ Account Type]
,[Bal_ Account No_]
,[FA Posting Category]
,[FA Posting Type]
,[Reversal Type]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Reversal Entry$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Reversal Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reversal Entry]
LEFT JOIN
[CRONUS UK Ltd_$Source Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Source Code]
ON
[Reversal Entry].[Source Code] = [Source Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
ON
[Reversal Entry].[Currency Code] = [Currency].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[Reversal Entry].[Document Type] = [Sales Header].[Document Type]
AND
[Reversal Entry].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[Reversal Entry].[Document Type] = [Sales Header Archive].[Document Type]
AND
[Reversal Entry].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[User] AS [User]
ON
[Reversal Entry].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Reversal Entry].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Reversal Entry table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
2 | Entry Type | Entry Type | Normal | Option | 4 | Entry Type | int |
Available options are:
| |||||||
3 | Entry No. | Entry No. | Normal | Integer | 4 | Entry No_ | int |
4 | G/L Register No. | G/L Register No. | Normal | Integer | 4 | G_L Register No_ | int |
5 | Source Code | Source Code | Normal | Code | 10 | Source Code | nvarchar(20) |
Key to join to the Source Code table.Show/hide example querySELECT [Reversal Entry].[Source Code] ,[Source Code].[Code] FROM [CRONUS UK Ltd_$Reversal Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reversal Entry] LEFT JOIN [CRONUS UK Ltd_$Source Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Source Code] ON [Reversal Entry].[Source Code] = [Source Code].[Code] | |||||||
6 | Journal Batch Name | Journal Batch Name | Normal | Code | 10 | Journal Batch Name | nvarchar(20) |
7 | Transaction No. | Transaction No. | Normal | Integer | 4 | Transaction No_ | int |
8 | Source Type | Source Type | Normal | Option | 4 | Source Type | int |
Available options are:
| |||||||
9 | Source No. | Source No. | Normal | Code | 20 | Source No_ | nvarchar(40) |
10 | Currency Code | Currency Code | Normal | Code | 10 | Currency Code | nvarchar(20) |
Key to join to the Currency table.Show/hide example querySELECT [Reversal Entry].[Currency Code] ,[Currency].[Code] FROM [CRONUS UK Ltd_$Reversal Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reversal Entry] LEFT JOIN [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency] ON [Reversal Entry].[Currency Code] = [Currency].[Code] | |||||||
11 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
12 | Amount | Amount | Normal | Decimal | 12 | Amount | decimal(38,38) |
13 | Debit Amount | Debit Amount | Normal | Decimal | 12 | Debit Amount | decimal(38,38) |
14 | Credit Amount | Credit Amount | Normal | Decimal | 12 | Credit Amount | decimal(38,38) |
15 | Amount (LCY) | Amount ($) | Normal | Decimal | 12 | Amount (LCY) | decimal(38,38) |
16 | Debit Amount (LCY) | Debit Amount ($) | Normal | Decimal | 12 | Debit Amount (LCY) | decimal(38,38) |
17 | Credit Amount (LCY) | Credit Amount ($) | Normal | Decimal | 12 | Credit Amount (LCY) | decimal(38,38) |
18 | VAT Amount | Tax Amount | Normal | Decimal | 12 | VAT Amount | decimal(38,38) |
19 | Posting Date | Posting Date | Normal | Date | 4 | Posting Date | datetime |
20 | Document Type | Document Type | Normal | Option | 4 | Document Type | int |
Available options are:
| |||||||
21 | Document No. | Document No. | Normal | Code | 20 | Document No_ | nvarchar(40) |
22 | Account No. | Account No. | Normal | Code | 20 | Account No_ | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [Reversal Entry].[Account No_] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$Reversal Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reversal Entry] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [Reversal Entry].[Account No_] = [G/L Account].[No_] | |||||||
23 | Account Name | Account Name | Normal | Text | 100 | Account Name | nvarchar(200) |
25 | Bal. Account Type | Bal. Account Type | Normal | Option | 4 | Bal_ Account Type | int |
Available options are:
| |||||||
26 | Bal. Account No. | Bal. Account No. | Normal | Code | 20 | Bal_ Account No_ | nvarchar(40) |
27 | FA Posting Category | FA Posting Category | Normal | Option | 4 | FA Posting Category | int |
Available options are:
| |||||||
28 | FA Posting Type | FA Posting Type | Normal | Option | 4 | FA Posting Type | int |
Available options are:
| |||||||
30 | Reversal Type | Reversal Type | Normal | Option | 4 | Reversal Type | int |
Available options are:
| |||||||
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 [Reversal Entry].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Reversal Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reversal Entry] LEFT JOIN [User] AS [User] ON [Reversal Entry].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |