Cost Allocation Source

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

Table Type: Company

Table Name: Cost Allocation Source
Database Table Name: CRONUS UK Ltd_$Cost Allocation Source$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 1106

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 Cost Allocation Source can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Cost Allocation Source$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [ID]
   ,[Level]
   ,[Valid From]
   ,[Valid To]
   ,[Cost Type Range]
   ,[Cost Center Code]
   ,[Cost Object Code]
   ,[Variant]
   ,[Credit to Cost Type]
   ,[Comment]
   ,[Blocked]
   ,[Last Date Modified]
   ,[User ID]
   ,[Allocation Source Type]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Cost Allocation Source$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$Cost Allocation Source$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Allocation Source]
LEFT JOIN
   [CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type]
      ON
         [Cost Allocation Source].[Cost Type Range] = [Cost Type].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Cost Center$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Center]
      ON
         [Cost Allocation Source].[Cost Center Code] = [Cost Center].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Cost Object$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Object]
      ON
         [Cost Allocation Source].[Cost Object Code] = [Cost Object].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type]
      ON
         [Cost Allocation Source].[Credit to Cost Type] = [Cost Type].[No_]
LEFT JOIN
   [User] AS [User]
      ON
         [Cost Allocation Source].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Cost Allocation Source].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Cost Allocation Source table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1ID SearchIDNormalCode10IDnvarchar(20)
2Level Primary Key SearchLevelNormalInteger4Levelint
3Valid From SearchValid FromNormalDate4Valid Fromdatetime
4Valid To SearchValid ToNormalDate4Valid Todatetime
5Cost Type Range SearchCost Type RangeNormalCode30Cost Type Rangenvarchar(60)
Key to join to the Cost Type table.

Show/hide example query

SELECT
	       [Cost Allocation Source].[Cost Type Range]
	       ,[Cost Type].[No_]
	FROM
	       [CRONUS UK Ltd_$Cost Allocation Source$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Allocation Source]
	LEFT JOIN
	       [CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type]
	              ON
	                     [Cost Allocation Source].[Cost Type Range] = [Cost Type].[No_]
6Cost Center Code SearchCost Center CodeNormalCode20Cost Center Codenvarchar(40)
Key to join to the Cost Center table.

Show/hide example query

SELECT
	       [Cost Allocation Source].[Cost Center Code]
	       ,[Cost Center].[Code]
	FROM
	       [CRONUS UK Ltd_$Cost Allocation Source$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Allocation Source]
	LEFT JOIN
	       [CRONUS UK Ltd_$Cost Center$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Center]
	              ON
	                     [Cost Allocation Source].[Cost Center Code] = [Cost Center].[Code]
7Cost Object Code SearchCost Object CodeNormalCode20Cost Object Codenvarchar(40)
Key to join to the Cost Object table.

Show/hide example query

SELECT
	       [Cost Allocation Source].[Cost Object Code]
	       ,[Cost Object].[Code]
	FROM
	       [CRONUS UK Ltd_$Cost Allocation Source$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Allocation Source]
	LEFT JOIN
	       [CRONUS UK Ltd_$Cost Object$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Object]
	              ON
	                     [Cost Allocation Source].[Cost Object Code] = [Cost Object].[Code]
8Variant SearchVariantNormalCode10Variantnvarchar(20)
10Credit to Cost Type SearchCredit to Cost TypeNormalCode20Credit to Cost Typenvarchar(40)
Key to join to the Cost Type table.

Show/hide example query

SELECT
	       [Cost Allocation Source].[Credit to Cost Type]
	       ,[Cost Type].[No_]
	FROM
	       [CRONUS UK Ltd_$Cost Allocation Source$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Allocation Source]
	LEFT JOIN
	       [CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type]
	              ON
	                     [Cost Allocation Source].[Credit to Cost Type] = [Cost Type].[No_]
20Comment SearchCommentNormalText50Commentnvarchar(100)
22Total Share SearchTotal ShareFlowFieldDecimal12
30Blocked SearchBlockedNormalBoolean4Blockedtinyint
60Last Date Modified SearchLast Date ModifiedNormalDate4Last Date Modifieddatetime
61User ID SearchUser IDNormalCode50User IDnvarchar(100)
100Allocation Source Type SearchAllocation Source TypeNormalOption4Allocation Source Typeint
Available options are:
  • “Both”
  • “Actual”
  • “Budget”
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
	       [Cost Allocation Source].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Cost Allocation Source$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Allocation Source]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Cost Allocation Source].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Leave a Reply

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