Codeunit DimensionManagement

ID 408
Namespace: Microsoft.Finance.Dimension

Codeunit DimensionManagement (ID 408). Central management system for all dimension-related operations including validation, default dimension processing, dimension set creation and management, and integration with documents and journal entries across all application areas.

Properties

Name Value
Permissions TableData "Gen. Journal Template" = rimd, TableData "Gen. Journal Batch" = rimd, tabledata "Default Dimension" = R, tabledata "Dimension Set Entry" = R

Methods

SetCollectErrorsMode

Enables error collection mode to accumulate dimension-related errors instead of immediately throwing them. Used in batch processing scenarios where multiple validation errors need to be collected and reported together.

procedure SetCollectErrorsMode()

SetSourceCode

Sets the source code for dimension operations based on the table ID. Determines appropriate source code from Source Code Setup for different document types and journal entries.

procedure SetSourceCode(TableID: Integer)

Parameters

Name Type Description
TableID Integer

Table ID to determine the appropriate source code for dimension operations

SetSourceCode

Sets the source code for dimension operations based on the table ID and record variant. Extends the standard SetSourceCode procedure with additional record context for specialized handling.

procedure SetSourceCode(TableID: Integer; RecordVar: Variant)

Parameters

Name Type Description
TableID Integer

Table ID to determine the appropriate source code for dimension operations

RecordVar Variant

Record variant providing additional context for source code determination

GetSourceCode

Returns the current source code set for dimension operations. Used to retrieve the source code that was previously set via SetSourceCode procedures.

procedure GetSourceCode(): Code[10]

Returns

Type Description
Code[10]

Source code currently active for dimension operations

GetDimensionSetID

Gets or creates a dimension set ID from the provided dimension set entries. Creates a new dimension set if the combination doesn't exist, or returns existing set ID.

procedure GetDimensionSetID(var DimSetEntry2: Record "Dimension Set Entry"): Integer

Parameters

Name Type Description
DimSetEntry2 Table Microsoft.Finance.Dimension."Dimension Set Entry"

Dimension set entries to find or create dimension set ID for

Returns

Type Description
Integer

Dimension set ID corresponding to the provided dimension entries

GetDimensionSet

Retrieves all dimension set entries for a specific dimension set ID. Populates the temporary dimension set entry record with all dimensions from the specified set.

procedure GetDimensionSet(var TempDimSetEntry: Record "Dimension Set Entry" temporary; DimSetID: Integer)

Parameters

Name Type Description
TempDimSetEntry Table Microsoft.Finance.Dimension."Dimension Set Entry"

Temporary dimension set entry record to populate with dimension data

DimSetID Integer

Dimension set ID to retrieve entries for

ShowDimensionSet

Displays the dimension set entries in a read-only modal page. Shows all dimension values associated with the specified dimension set ID.

procedure ShowDimensionSet(DimSetID: Integer; NewCaption: Text[250])

Parameters

Name Type Description
DimSetID Integer

Dimension set ID to display entries for

NewCaption Text[250]

Caption to display on the dimension set entries page

EditDimensionSet

Opens the dimension set editor for modifying dimensions and returns the new dimension set ID. Allows user to edit dimension values and creates a new dimension set if changes are made.

procedure EditDimensionSet(DimSetID: Integer; NewCaption: Text[250]): Integer

Parameters

Name Type Description
DimSetID Integer

Original dimension set ID to edit

NewCaption Text[250]

Caption to display on the dimension editor page

Returns

Type Description
Integer

New dimension set ID after editing, or original ID if no changes made

EditDimensionSet

Opens the dimension set editor and updates global dimension values after editing. Convenience procedure that combines dimension editing with global dimension value updates.

procedure EditDimensionSet(DimSetID: Integer; NewCaption: Text[250]; var GlobalDimVal1: Code[20]; var GlobalDimVal2: Code[20]): Integer

Parameters

Name Type Description
DimSetID Integer

Original dimension set ID to edit

NewCaption Text[250]

Caption to display on the dimension editor page

GlobalDimVal1 Code[20]

Variable to receive updated global dimension 1 value

GlobalDimVal2 Code[20]

Variable to receive updated global dimension 2 value

Returns

Type Description
Integer

New dimension set ID after editing, or original ID if no changes made

EditDimensionSet

Opens the dimension set editor with record context and updates global dimension values. Extended version providing record variant context for specialized dimension handling.

procedure EditDimensionSet(RecVariant: Variant; DimSetID: Integer; NewCaption: Text[250]; var GlobalDimVal1: Code[20]; var GlobalDimVal2: Code[20]): Integer

Parameters

Name Type Description
RecVariant Variant

Record variant providing context for dimension editing

DimSetID Integer

Original dimension set ID to edit

NewCaption Text[250]

Caption to display on the dimension editor page

GlobalDimVal1 Code[20]

Variable to receive updated global dimension 1 value

GlobalDimVal2 Code[20]

Variable to receive updated global dimension 2 value

Returns

Type Description
Integer

New dimension set ID after editing, or original ID if no changes made

EditReclasDimensionSet

Opens the reclassification dimension editor for modifying both source and destination dimensions. Used in reclassification scenarios where both original and new dimension sets need to be edited.

procedure EditReclasDimensionSet(var DimSetID: Integer; var NewDimSetID: Integer; NewCaption: Text[250]; var GlobalDimVal1: Code[20]; var GlobalDimVal2: Code[20]; var NewGlobalDimVal1: Code[20]; var NewGlobalDimVal2: Code[20])

Parameters

Name Type Description
DimSetID Integer

Source dimension set ID to edit

NewDimSetID Integer

Destination dimension set ID to edit

NewCaption Text[250]

Caption to display on the reclassification dimension editor page

GlobalDimVal1 Code[20]

Variable to receive updated source global dimension 1 value

GlobalDimVal2 Code[20]

Variable to receive updated source global dimension 2 value

NewGlobalDimVal1 Code[20]

Variable to receive updated destination global dimension 1 value

NewGlobalDimVal2 Code[20]

Variable to receive updated destination global dimension 2 value

UpdateGlobalDimFromDimSetID

Updates global dimension values from a dimension set ID. Retrieves the first two global dimension values from the specified dimension set.

procedure UpdateGlobalDimFromDimSetID(DimSetID: Integer; var GlobalDimVal1: Code[20]; var GlobalDimVal2: Code[20])

Parameters

Name Type Description
DimSetID Integer

Dimension set ID to extract global dimension values from

GlobalDimVal1 Code[20]

Variable to receive global dimension 1 value

GlobalDimVal2 Code[20]

Variable to receive global dimension 2 value

GetCombinedDimensionSetID

Combines multiple dimension sets into a single dimension set ID. Merges dimensions from up to 10 different dimension sets, with later sets overriding earlier ones for same dimensions.

procedure GetCombinedDimensionSetID(DimensionSetIDArr: array[10] of Integer; var GlobalDimVal1: Code[20]; var GlobalDimVal2: Code[20]): Integer

Parameters

Name Type Description
DimensionSetIDArr array[10] of Integer

Array of dimension set IDs to combine

GlobalDimVal1 Code[20]

Variable to receive combined global dimension 1 value

GlobalDimVal2 Code[20]

Variable to receive combined global dimension 2 value

Returns

Type Description
Integer

New dimension set ID containing combined dimensions

GetDeltaDimSetID

Calculates delta dimension set ID based on parent dimension set changes. Updates a child dimension set when parent dimensions change, preserving child-specific dimensions.

procedure GetDeltaDimSetID(DimSetID: Integer; NewParentDimSetID: Integer; OldParentDimSetID: Integer): Integer

Parameters

Name Type Description
DimSetID Integer

Original dimension set ID to update

NewParentDimSetID Integer

New parent dimension set ID

OldParentDimSetID Integer

Original parent dimension set ID

Returns

Type Description
Integer

Updated dimension set ID reflecting parent changes

GetGLSetup

Retrieves and caches General Ledger Setup shortcut dimension codes. Loads all 8 shortcut dimension codes from General Ledger Setup for efficient repeated access.

procedure GetGLSetup(var GLSetupShortcutDimCode: array[8] of Code[20])

Parameters

Name Type Description
GLSetupShortcutDimCode array[8] of Code[20]

Array to populate with shortcut dimension codes from General Ledger Setup

CheckDimIDComb

Validates dimension combinations for a dimension set ID. Checks if the dimensions in the set violate any defined dimension combination restrictions.

procedure CheckDimIDComb(DimSetID: Integer): Boolean

Parameters

Name Type Description
DimSetID Integer

Dimension set ID to validate combinations for

Returns

Type Description
Boolean

True if dimension combinations are valid, false if violations exist

CheckDimValuePosting

Validates dimension value posting permissions for specified table entities. Checks default dimensions and dimension value restrictions for the given accounts and dimension set.

procedure CheckDimValuePosting(TableID: array[10] of Integer; No: array[10] of Code[20]; DimSetID: Integer): Boolean

Parameters

Name Type Description
TableID array[10] of Integer

Array of table IDs for accounts to validate against

No array[10] of Code[20]

Array of account numbers corresponding to the table IDs

DimSetID Integer

Dimension set ID to validate for posting

Returns

Type Description
Boolean

True if dimension values are valid for posting, false if violations exist

CheckDimBuffer

Validates dimension combinations within a dimension buffer. Checks if the dimensions in the buffer violate any defined dimension combination restrictions.

procedure CheckDimBuffer(var DimBuffer: Record "Dimension Buffer"): Boolean

Parameters

Name Type Description
DimBuffer Table Microsoft.Finance.Dimension."Dimension Buffer"

Dimension buffer containing dimensions to validate

Returns

Type Description
Boolean

True if dimension combinations are valid, false if violations exist

CheckDimComb

Validates dimension combinations against dimension combination restrictions. Core validation logic for checking dimension combination rules and generating error messages.

procedure CheckDimComb(var TempDimBuf: Record "Dimension Buffer" temporary): Boolean

Parameters

Name Type Description
TempDimBuf Table Microsoft.Finance.Dimension."Dimension Buffer"

Temporary dimension buffer containing dimensions to validate

Returns

Type Description
Boolean

True if dimension combinations are valid, false if violations exist

GetNotAllowedDimValuePerAccount

Generates error message for dimension values not allowed for specific accounts. Creates appropriate error text based on whether a specific account or account type restriction applies.

procedure GetNotAllowedDimValuePerAccount(DefaultDim: Record "Default Dimension"; DimValueCode: Code[20]): Text

Parameters

Name Type Description
DefaultDim Table Microsoft.Finance.Dimension."Default Dimension"

Default dimension record containing the restriction rules

DimValueCode Code[20]

Dimension value code that is not allowed

Returns

Type Description
Text

Formatted error message explaining the dimension value restriction

GetDimCombErr

Retrieves the last dimension combination error message. Returns the most recent error message from dimension validation operations.

procedure GetDimCombErr(): Text[250]

Returns

Type Description
Text[250]

Last error message from dimension validation, empty if no errors occurred

UpdateDefaultDim

Updates global dimension values from default dimensions for a specific entity. Retrieves default dimension values for the specified table and entity number.

procedure UpdateDefaultDim(TableID: Integer; No: Code[20]; var GlobalDim1Code: Code[20]; var GlobalDim2Code: Code[20])

Parameters

Name Type Description
TableID Integer

Table ID of the entity to retrieve default dimensions for

No Code[20]

Entity number to retrieve default dimensions for

GlobalDim1Code Code[20]

Variable to receive default global dimension 1 value

GlobalDim2Code Code[20]

Variable to receive default global dimension 2 value

GetDefaultDimID

Creates dimension set ID from default dimension sources with priority handling and inheritance. Combines dimensions from multiple sources considering default dimension priorities and inheritance rules.

procedure GetDefaultDimID(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; SourceCode: Code[20]; var GlobalDim1Code: Code[20]; var GlobalDim2Code: Code[20]; InheritFromDimSetID: Integer; InheritFromTableNo: Integer): Integer

Parameters

Name Type Description
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

List of dictionaries containing table IDs and their corresponding primary key values

SourceCode Code[20]

Source code to determine default dimension priorities

GlobalDim1Code Code[20]

Variable to receive global dimension 1 value

GlobalDim2Code Code[20]

Variable to receive global dimension 2 value

InheritFromDimSetID Integer

Dimension set ID to inherit dimensions from

InheritFromTableNo Integer

Table number for inheritance context

Returns

Type Description
Integer

New dimension set ID containing combined and prioritized dimensions

GetRecDefaultDimID

Creates dimension set ID from default dimension sources with record context and inheritance. Extended version that includes record variant context for specialized dimension handling and validation.

procedure GetRecDefaultDimID(RecVariant: Variant; CurrFieldNo: Integer; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; SourceCode: Code[20]; var GlobalDim1Code: Code[20]; var GlobalDim2Code: Code[20]; InheritFromDimSetID: Integer; InheritFromTableNo: Integer): Integer

Parameters

Name Type Description
RecVariant Variant

Record variant providing context for dimension creation

CurrFieldNo Integer

Current field number being processed for dimension context

DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

List of dictionaries containing table IDs and their corresponding primary key values

SourceCode Code[20]

Source code to determine default dimension priorities

GlobalDim1Code Code[20]

Variable to receive global dimension 1 value

GlobalDim2Code Code[20]

Variable to receive global dimension 2 value

InheritFromDimSetID Integer

Dimension set ID to inherit dimensions from

InheritFromTableNo Integer

Table number for inheritance context

Returns

Type Description
Integer

New dimension set ID containing combined and prioritized dimensions

AddFirstToTableIdArray

Adds a new table ID and number pair to the beginning of the arrays, shifting existing entries. Inserts the new entry at position 1 and moves all other entries one position down.

procedure AddFirstToTableIdArray(var TableID: array[10] of Integer; var No: array[10] of Code[20]; NewTableId: Integer; NewNo: Code[20])

Parameters

Name Type Description
TableID array[10] of Integer

Array of table IDs to modify

No array[10] of Code[20]

Array of entity numbers corresponding to the table IDs

NewTableId Integer

New table ID to insert at the beginning

NewNo Code[20]

New entity number to insert at the beginning

AddLastToTableIdArray

Adds a new table ID and number pair to the end of the arrays. Finds the first empty position or uses the last position to insert the new entry.

procedure AddLastToTableIdArray(var TableID: array[10] of Integer; var No: array[10] of Code[20]; NewTableId: Integer; NewNo: Code[20])

Parameters

Name Type Description
TableID array[10] of Integer

Array of table IDs to modify

No array[10] of Code[20]

Array of entity numbers corresponding to the table IDs

NewTableId Integer

New table ID to insert at the end

NewNo Code[20]

New entity number to insert at the end

TypeToTableID1

Converts an entity type option to its corresponding table ID for dimension processing. Maps common master data types to their table IDs for default dimension handling.

procedure TypeToTableID1(Type: Option): Integer

Parameters

Name Type Description
Type Option

Entity type option containing G/L Account, Customer, Vendor, Bank Account, Fixed Asset, IC Partner, or Employee

Returns

Type Description
Integer

Table ID corresponding to the specified entity type

TypeToTableID2

Converts a resource/item type option to its corresponding table ID for dimension processing. Maps resource, item, and G/L account types to their table IDs for default dimension handling.

procedure TypeToTableID2(Type: Option): Integer

Parameters

Name Type Description
Type Option

Entity type option containing Resource, Item, or G/L Account

Returns

Type Description
Integer

Table ID corresponding to the specified entity type

SalesLineTypeToTableID

Converts a sales line type enum to its corresponding table ID for dimension processing. Maps sales line types to their master data table IDs for default dimension handling.

procedure SalesLineTypeToTableID(LineType: Enum "Sales Line Type"): Integer

Parameters

Name Type Description
LineType Enum Microsoft.Sales.Document."Sales Line Type"

Sales line type enum specifying the type of line item

Returns

Type Description
Integer

Table ID corresponding to the specified sales line type, zero for blank lines

PurchLineTypeToTableID

Converts a purchase line type enum to its corresponding table ID for dimension processing. Maps purchase line types to their master data table IDs for default dimension handling.

procedure PurchLineTypeToTableID(LineType: Enum "Purchase Line Type"): Integer

Parameters

Name Type Description
LineType Enum Microsoft.Purchases.Document."Purchase Line Type"

Purchase line type enum specifying the type of line item

Returns

Type Description
Integer

Table ID corresponding to the specified purchase line type, zero for blank lines

ReqLineTypeToTableID

Converts a requisition line type enum to its corresponding table ID for dimension processing. Maps requisition line types to their master data table IDs for default dimension handling.

procedure ReqLineTypeToTableID(LineType: Enum "Requisition Line Type"): Integer

Parameters

Name Type Description
LineType Enum Microsoft.Inventory.Requisition."Requisition Line Type"

Requisition line type enum specifying the type of line item

Returns

Type Description
Integer

Table ID corresponding to the specified requisition line type, zero for blank lines

TypeToTableID4

Converts a basic item/resource type option to its corresponding table ID for dimension processing. Maps item and resource types to their table IDs for default dimension handling.

procedure TypeToTableID4(Type: Option): Integer

Parameters

Name Type Description
Type Option

Type option containing blank, Item, or Resource

Returns

Type Description
Integer

Table ID corresponding to the specified type, zero for blank type

DeleteDefaultDim

Deletes all default dimensions for a specific table and record number.

procedure DeleteDefaultDim(TableID: Integer; No: Code[20])

Parameters

Name Type Description
TableID Integer

ID of the table to delete default dimensions for

No Code[20]

Record number to delete default dimensions for

RenameDefaultDim

Renames default dimensions from old record number to new record number for a specific table.

procedure RenameDefaultDim(TableID: Integer; OldNo: Code[20]; NewNo: Code[20])

Parameters

Name Type Description
TableID Integer

ID of the table containing the records being renamed

OldNo Code[20]

Original record number with default dimensions

NewNo Code[20]

New record number to transfer default dimensions to

LookupDimValueCode

Opens a lookup window for dimension values for a specific shortcut dimension field.

procedure LookupDimValueCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
FieldNumber Integer

Shortcut dimension field number (1-8) to lookup values for

ShortcutDimCode Code[20]

Dimension value code that will be set if user selects a value

ValidateDimValueCode

Validates a dimension value code for a specific shortcut dimension field and resolves partial matches.

procedure ValidateDimValueCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
FieldNumber Integer

Shortcut dimension field number (1-8) to validate for

ShortcutDimCode Code[20]

Dimension value code to validate; may be updated with exact match

ValidateShortcutDimValues

Validates a shortcut dimension value and updates the dimension set ID with the new value.

procedure ValidateShortcutDimValues(FieldNumber: Integer; var ShortcutDimCode: Code[20]; var DimSetID: Integer)

Parameters

Name Type Description
FieldNumber Integer

Shortcut dimension field number (1-8) to validate

ShortcutDimCode Code[20]

Dimension value code to validate and set

DimSetID Integer

Dimension set ID to update with the validated dimension value

SaveDefaultDim

Saves a default dimension value for a specific table record and shortcut dimension field.

procedure SaveDefaultDim(TableID: Integer; No: Code[20]; FieldNumber: Integer; ShortcutDimCode: Code[20])

Parameters

Name Type Description
TableID Integer

ID of the table to save default dimension for

No Code[20]

Record number to save default dimension for

FieldNumber Integer

Shortcut dimension field number (1-8) to save

ShortcutDimCode Code[20]

Dimension value code to save as default; empty value deletes existing default

GetGlobalDimensions

Retrieves global dimension values for all 8 shortcut dimension fields from a dimension set.

procedure GetGlobalDimensions(DimSetID: Integer; var ShortcutDimCode: array[8] of Code[20])

Parameters

Name Type Description
DimSetID Integer

Dimension set ID to retrieve values from

ShortcutDimCode array[8] of Code[20]

Array to populate with dimension values for fields 1-8

GetShortcutDimensions

Retrieves shortcut dimension values for all 8 fields from a dimension set.

procedure GetShortcutDimensions(DimSetID: Integer; var ShortcutDimCode: array[8] of Code[20])

Parameters

Name Type Description
DimSetID Integer

Dimension set ID to retrieve values from

ShortcutDimCode array[8] of Code[20]

Array to populate with dimension values for fields 1-8

CheckDimBufferValuePosting

Validates dimension buffer values against posting restrictions and default dimension rules.

procedure CheckDimBufferValuePosting(var DimBuffer: Record "Dimension Buffer"; TableID: array[10] of Integer; No: array[10] of Code[20]): Boolean

Parameters

Name Type Description
DimBuffer Table Microsoft.Finance.Dimension."Dimension Buffer"

Dimension buffer containing values to validate

TableID array[10] of Integer

Array of table IDs to check default dimension rules for

No array[10] of Code[20]

Array of record numbers corresponding to table IDs

Returns

Type Description
Boolean

True if all dimension values are valid for posting, false otherwise

GetDimValuePostingErr

Retrieves the last dimension value posting error message.

procedure GetDimValuePostingErr(): Text[250]

Returns

Type Description
Text[250]

Error message text describing the dimension value posting issue

DefaultDimObjectNoList

Populates a temporary table with object numbers that support default dimensions.

procedure DefaultDimObjectNoList(var TempAllObjWithCaption: Record AllObjWithCaption temporary)

Parameters

Name Type Description
TempAllObjWithCaption Table System.Reflection.AllObjWithCaption

Temporary record to populate with objects that can have default dimensions

DefaultDimObjectNoWithGlobalDimsList

Populates a temporary table with object numbers that support default dimensions and have global dimensions.

procedure DefaultDimObjectNoWithGlobalDimsList(var TempAllObjWithCaption: Record AllObjWithCaption temporary)

Parameters

Name Type Description
TempAllObjWithCaption Table System.Reflection.AllObjWithCaption

Temporary record to populate with objects that can have default dimensions with global dimension support

DefaultDimInsertTempObject

Inserts a temporary object record for tables that support default dimensions.

procedure DefaultDimInsertTempObject(var TempAllObjWithCaption: Record AllObjWithCaption temporary; TableID: Integer)

Parameters

Name Type Description
TempAllObjWithCaption Table System.Reflection.AllObjWithCaption

Temporary record to insert the object information into

TableID Integer

Table ID to check and insert if it supports default dimensions

GlobalDimObjectNoList

Populates a temporary table with object numbers that support global dimensions.

procedure GlobalDimObjectNoList(var TempAllObjWithCaption: Record AllObjWithCaption temporary)

Parameters

Name Type Description
TempAllObjWithCaption Table System.Reflection.AllObjWithCaption

Temporary record to populate with objects that support global dimension fields

JobTaskDimObjectNoList

Populates a temporary table with job task object numbers that support dimensions.

procedure JobTaskDimObjectNoList(var TempAllObjWithCaption: Record AllObjWithCaption temporary)

Parameters

Name Type Description
TempAllObjWithCaption Table System.Reflection.AllObjWithCaption

Temporary record to populate with job task objects that support dimension handling

FindDimFieldInTable

Searches for dimension fields in a specific table using a field name filter.

procedure FindDimFieldInTable(TableNo: Integer; FieldNameFilter: Text; var Field: Record Field): Boolean

Parameters

Name Type Description
TableNo Integer

Table number to search for dimension fields

FieldNameFilter Text

Filter text to match against field names

Field Table System.Reflection.Field

Field record that will contain the found dimension field

Returns

Type Description
Boolean

True if a dimension field matching the filter is found, false otherwise

GetDocDimConsistencyErr

Retrieves the last document dimension consistency error message.

procedure GetDocDimConsistencyErr(): Text[250]

Returns

Type Description
Text[250]

Error message text describing the document dimension consistency issue

CheckDim

Validates that a dimension code exists and is not blocked.

procedure CheckDim(DimCode: Code[20]): Boolean

Parameters

Name Type Description
DimCode Code[20]

Dimension code to validate

Returns

Type Description
Boolean

True if the dimension is valid and not blocked, false otherwise

CheckDimValue

Validates that a dimension value exists and is not blocked for the specified dimension.

procedure CheckDimValue(DimCode: Code[20]; DimValCode: Code[20]): Boolean

Parameters

Name Type Description
DimCode Code[20]

Dimension code to validate the value against

DimValCode Code[20]

Dimension value code to validate

Returns

Type Description
Boolean

True if the dimension value is valid and not blocked, false otherwise

CheckBlockedDimAndValues

Validates that dimensions and dimension values in a dimension set are not blocked.

procedure CheckBlockedDimAndValues(DimSetID: Integer): Boolean

Parameters

Name Type Description
DimSetID Integer

Dimension set ID to validate for blocked dimensions and values

Returns

Type Description
Boolean

True if no blocked dimensions or values are found, false otherwise

GetDimErr

Retrieves the last dimension error message.

procedure GetDimErr(): Text[250]

Returns

Type Description
Text[250]

Error message text describing the dimension validation issue

LogError

Logs a dimension error for a specific source record and field.

procedure LogError(SourceRecVariant: Variant; SourceFieldNo: Integer; Message: Text; HelpArticleCode: Code[30]): Boolean

Parameters

Name Type Description
SourceRecVariant Variant

Source record variant where the error occurred

SourceFieldNo Integer

Field number where the error occurred

Message Text

Error message to log

HelpArticleCode Code[30]

Help article code for additional guidance

Returns

Type Description
Boolean

True if the error was successfully logged, false otherwise

LookupDimValueCodeNoUpdate

Opens dimension value lookup dialog for a specified shortcut dimension field without updating the source record. Validates that the shortcut dimension is properly configured before showing the lookup.

procedure LookupDimValueCodeNoUpdate(FieldNumber: Integer)

Parameters

Name Type Description
FieldNumber Integer

Shortcut dimension field number (1-8) to lookup values for

CopyJnlLineDimToICJnlDim

Copies dimension set entries from journal lines to intercompany journal line dimensions. Converts company-specific dimension codes to intercompany dimension codes during the copy process.

procedure CopyJnlLineDimToICJnlDim(TableID: Integer; TransactionNo: Integer; PartnerCode: Code[20]; TransactionSource: Option; LineNo: Integer; DimSetID: Integer)

Parameters

Name Type Description
TableID Integer

Source table identifier for the journal line

TransactionNo Integer

Intercompany transaction number

PartnerCode Code[20]

Intercompany partner code

TransactionSource Option

Source of the intercompany transaction

LineNo Integer

Line number within the transaction

DimSetID Integer

Dimension set ID containing dimensions to copy

DefaultDimOnInsert

Handles default dimension setup when a new default dimension is inserted. Updates related job task dimensions and cost types when applicable.

procedure DefaultDimOnInsert(DefaultDimension: Record "Default Dimension")

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"

Default dimension record being inserted

DefaultDimOnModify

Handles default dimension changes when an existing default dimension is modified. Updates related job task dimensions and cost types to reflect the changes.

procedure DefaultDimOnModify(DefaultDimension: Record "Default Dimension")

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"

Default dimension record being modified

DefaultDimOnDelete

Handles default dimension cleanup when a default dimension is deleted. Removes related job task dimensions and updates cost types accordingly.

procedure DefaultDimOnDelete(DefaultDimension: Record "Default Dimension")

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"

Default dimension record being deleted

CopyICJnlDimToICJnlDim

Copies intercompany journal line dimensions from one record set to another. Creates duplicate dimension entries for intercompany transaction processing.

procedure CopyICJnlDimToICJnlDim(var FromInOutBoxLineDim: Record "IC Inbox/Outbox Jnl. Line Dim."; var ToInOutBoxlineDim: Record "IC Inbox/Outbox Jnl. Line Dim.")

Parameters

Name Type Description
FromInOutBoxLineDim Table Microsoft.Intercompany.Dimension."IC Inbox/Outbox Jnl. Line Dim."

Source intercompany journal line dimensions to copy from

ToInOutBoxlineDim Table Microsoft.Intercompany.Dimension."IC Inbox/Outbox Jnl. Line Dim."

Target intercompany journal line dimensions to copy to

CopyDocDimtoICDocDim

Copies dimension set entries from documents to intercompany document dimensions. Converts company-specific dimension codes to intercompany dimension codes for cross-company transactions.

procedure CopyDocDimtoICDocDim(TableID: Integer; TransactionNo: Integer; PartnerCode: Code[20]; TransactionSource: Option; LineNo: Integer; DimSetEntryID: Integer)

Parameters

Name Type Description
TableID Integer

Source table identifier for the document

TransactionNo Integer

Intercompany transaction number

PartnerCode Code[20]

Intercompany partner code

TransactionSource Option

Source of the intercompany transaction

LineNo Integer

Line number within the document

DimSetEntryID Integer

Dimension set ID containing dimensions to copy

CopyICDocDimtoICDocDim

Copies intercompany document dimensions from one record set to another with new table and transaction source. Creates duplicate dimension entries for intercompany document processing across different table contexts.

procedure CopyICDocDimtoICDocDim(FromSourceICDocDim: Record "IC Document Dimension"; var ToSourceICDocDim: Record "IC Document Dimension"; ToTableID: Integer; ToTransactionSource: Integer)

Parameters

Name Type Description
FromSourceICDocDim Table Microsoft.Intercompany.Dimension."IC Document Dimension"

Source intercompany document dimensions to copy from

ToSourceICDocDim Table Microsoft.Intercompany.Dimension."IC Document Dimension"

Target intercompany document dimensions to copy to

ToTableID Integer

Target table identifier for the copied dimensions

ToTransactionSource Integer

Target transaction source for the copied dimensions

MoveICDocDimtoICDocDim

Moves intercompany document dimensions from one record set to another with new table and transaction source. Transfers dimension entries and deletes the source records during intercompany document processing.

procedure MoveICDocDimtoICDocDim(FromSourceICDocDim: Record "IC Document Dimension"; var ToSourceICDocDim: Record "IC Document Dimension"; ToTableID: Integer; ToTransactionSource: Integer)

Parameters

Name Type Description
FromSourceICDocDim Table Microsoft.Intercompany.Dimension."IC Document Dimension"

Source intercompany document dimensions to move from

ToSourceICDocDim Table Microsoft.Intercompany.Dimension."IC Document Dimension"

Target intercompany document dimensions to move to

ToTableID Integer

Target table identifier for the moved dimensions

ToTransactionSource Integer

Target transaction source for the moved dimensions

SetICDocDimFilters

Sets filters on intercompany document dimension record to isolate specific dimension entries. Applies standard filters for table ID, transaction number, partner code, transaction source, and line number.

procedure SetICDocDimFilters(var ICDocDim: Record "IC Document Dimension"; TableID: Integer; TransactionNo: Integer; PartnerCode: Code[20]; TransactionSource: Integer; LineNo: Integer)

Parameters

Name Type Description
ICDocDim Table Microsoft.Intercompany.Dimension."IC Document Dimension"

Intercompany document dimension record to apply filters to

TableID Integer

Table identifier to filter by

TransactionNo Integer

Transaction number to filter by

PartnerCode Code[20]

Intercompany partner code to filter by

TransactionSource Integer

Transaction source to filter by

LineNo Integer

Line number to filter by

DeleteICDocDim

Deletes intercompany document dimensions that match the specified criteria. Removes all dimension entries for a specific intercompany document transaction line.

procedure DeleteICDocDim(TableID: Integer; ICTransactionNo: Integer; ICPartnerCode: Code[20]; TransactionSource: Option; LineNo: Integer)

Parameters

Name Type Description
TableID Integer

Table identifier to delete dimensions for

ICTransactionNo Integer

Intercompany transaction number

ICPartnerCode Code[20]

Intercompany partner code

TransactionSource Option

Transaction source type

LineNo Integer

Line number within the transaction

DeleteICJnlDim

Deletes intercompany journal line dimensions that match the specified criteria. Removes all dimension entries for a specific intercompany journal line transaction.

procedure DeleteICJnlDim(TableID: Integer; ICTransactionNo: Integer; ICPartnerCode: Code[20]; TransactionSource: Option; LineNo: Integer)

Parameters

Name Type Description
TableID Integer

Table identifier to delete dimensions for

ICTransactionNo Integer

Intercompany transaction number

ICPartnerCode Code[20]

Intercompany partner code

TransactionSource Option

Transaction source type

LineNo Integer

Line number within the transaction

ConvertDimtoICDim

Converts a company-specific dimension code to its intercompany equivalent. Uses the dimension's mapping configuration to return the corresponding IC dimension code.

procedure ConvertDimtoICDim(FromDim: Code[20]): Code[20]

Parameters

Name Type Description
FromDim Code[20]

Company dimension code to convert

Returns

Type Description
Code[20]

Mapped intercompany dimension code, or empty if no mapping exists

ConvertDimValuetoICDimVal

Converts a company-specific dimension value to its intercompany equivalent. Uses the dimension value's mapping configuration to return the corresponding IC dimension value code.

procedure ConvertDimValuetoICDimVal(FromDim: Code[20]; FromDimValue: Code[20]): Code[20]

Parameters

Name Type Description
FromDim Code[20]

Company dimension code containing the value

FromDimValue Code[20]

Company dimension value code to convert

Returns

Type Description
Code[20]

Mapped intercompany dimension value code, or empty if no mapping exists

CheckICDimValue

Validates intercompany dimension value and checks if it exists and is not blocked. Performs validation and logging for intercompany dimension value usage.

procedure CheckICDimValue(ICDimCode: Code[20]; ICDimValCode: Code[20]): Boolean

Parameters

Name Type Description
ICDimCode Code[20]

Intercompany dimension code to validate

ICDimValCode Code[20]

Intercompany dimension value code to validate

Returns

Type Description
Boolean

True if the intercompany dimension value is valid and not blocked, false otherwise

CheckICDim

Validates intercompany dimension and checks if it exists and is not blocked. Performs validation and logging for intercompany dimension usage.

procedure CheckICDim(ICDimCode: Code[20]): Boolean

Parameters

Name Type Description
ICDimCode Code[20]

Intercompany dimension code to validate

Returns

Type Description
Boolean

True if the intercompany dimension is valid and not blocked, false otherwise

SaveJobTaskDim

Saves or updates a job task dimension value for a specific shortcut dimension field. Creates new job task dimension records or modifies existing ones based on field number and dimension code.

procedure SaveJobTaskDim(JobNo: Code[20]; JobTaskNo: Code[20]; FieldNumber: Integer; ShortcutDimCode: Code[20])

Parameters

Name Type Description
JobNo Code[20]

Job number to save dimension for

JobTaskNo Code[20]

Job task number to save dimension for

FieldNumber Integer

Shortcut dimension field number (1-8)

ShortcutDimCode Code[20]

Dimension value code to assign to the shortcut field

SaveJobTaskTempDim

Saves job task dimension value to temporary buffer for a specific shortcut dimension field. Updates temporary dimension buffer with shortcut dimension values for later processing.

procedure SaveJobTaskTempDim(FieldNumber: Integer; ShortcutDimCode: Code[20])

Parameters

Name Type Description
FieldNumber Integer

Shortcut dimension field number (1-8)

ShortcutDimCode Code[20]

Dimension value code to save to the temporary buffer

InsertJobTaskDim

Inserts job task dimensions based on default dimensions from the job. Creates job task dimension records and updates global dimension variables with values found.

procedure InsertJobTaskDim(JobNo: Code[20]; JobTaskNo: Code[20]; var GlobalDim1Code: Code[20]; var GlobalDim2Code: Code[20])

Parameters

Name Type Description
JobNo Code[20]

Job number to create task dimensions for

JobTaskNo Code[20]

Job task number to create dimensions for

GlobalDim1Code Code[20]

Returns global dimension 1 code if found in job task dimensions

GlobalDim2Code Code[20]

Returns global dimension 2 code if found in job task dimensions

InsertJobTaskDim

Inserts job task dimensions based on default dimension configuration. Creates job task dimension entries and updates global dimension codes for the job task.

procedure InsertJobTaskDim(var DefaultDim: Record "Default Dimension"; JobNo: Code[20]; JobTaskNo: Code[20]; var GlobalDim1Code: Code[20]; var GlobalDim2Code: Code[20])

Parameters

Name Type Description
DefaultDim Table Microsoft.Finance.Dimension."Default Dimension"

Default dimension record to use as template

JobNo Code[20]

Job number for the job task dimensions

JobTaskNo Code[20]

Job task number for the dimension assignment

GlobalDim1Code Code[20]

Returns the global dimension 1 code assigned

GlobalDim2Code Code[20]

Returns the global dimension 2 code assigned

DeleteJobTaskTempDim

Deletes all job task dimension records from temporary buffer.

procedure DeleteJobTaskTempDim()

CopyJobTaskDimToJobTaskDim

Copies job task dimensions from one job task to another job task.

procedure CopyJobTaskDimToJobTaskDim(JobNo: Code[20]; JobTaskNo: Code[20]; NewJobNo: Code[20]; NewJobTaskNo: Code[20])

Parameters

Name Type Description
JobNo Code[20]

Source job number

JobTaskNo Code[20]

Source job task number

NewJobNo Code[20]

Target job number

NewJobTaskNo Code[20]

Target job task number

CheckDimIDConsistency

Checks consistency between document dimension set entries and posted document dimension set entries. Validates that dimension sets match between original document and posted document for audit compliance.

procedure CheckDimIDConsistency(var DimSetEntry: Record "Dimension Set Entry"; var PostedDimSetEntry: Record "Dimension Set Entry"; DocTableID: Integer; PostedDocTableID: Integer): Boolean

Parameters

Name Type Description
DimSetEntry Table Microsoft.Finance.Dimension."Dimension Set Entry"

Dimension set entries from the original document

PostedDimSetEntry Table Microsoft.Finance.Dimension."Dimension Set Entry"

Dimension set entries from the posted document

DocTableID Integer

Table ID of the original document

PostedDocTableID Integer

Table ID of the posted document

Returns

Type Description
Boolean

True if dimension sets are consistent, false if discrepancies are found

CreateDimSetIDFromICDocDim

Creates a dimension set ID from intercompany document dimensions by converting IC dimensions to company dimensions. Processes all IC document dimension entries and builds a corresponding company dimension set.

procedure CreateDimSetIDFromICDocDim(var ICDocDim: Record "IC Document Dimension"): Integer

Parameters

Name Type Description
ICDocDim Table Microsoft.Intercompany.Dimension."IC Document Dimension"

Intercompany document dimensions to convert

Returns

Type Description
Integer

Dimension set ID representing the converted intercompany dimensions

CreateDimSetIDFromICJnlLineDim

Creates a dimension set ID from intercompany journal line dimensions by converting IC dimensions to company dimensions. Processes all IC journal line dimension entries and builds a corresponding company dimension set.

procedure CreateDimSetIDFromICJnlLineDim(var ICInboxOutboxJnlLineDim: Record "IC Inbox/Outbox Jnl. Line Dim."): Integer

Parameters

Name Type Description
ICInboxOutboxJnlLineDim Table Microsoft.Intercompany.Dimension."IC Inbox/Outbox Jnl. Line Dim."

Intercompany journal line dimensions to convert

Returns

Type Description
Integer

Dimension set ID representing the converted intercompany journal dimensions

CopyDimBufToDimSetEntry

Copies dimension buffer entries to dimension set entry records with proper dimension value ID assignment. Validates dimension values during the copy process and populates dimension value IDs from master data.

procedure CopyDimBufToDimSetEntry(var FromDimBuf: Record "Dimension Buffer"; var DimSetEntry: Record "Dimension Set Entry")

Parameters

Name Type Description
FromDimBuf Table Microsoft.Finance.Dimension."Dimension Buffer"

Source dimension buffer records to copy from

DimSetEntry Table Microsoft.Finance.Dimension."Dimension Set Entry"

Target dimension set entry records to copy to

CreateDimSetIDFromDimBuf

Creates a dimension set ID from dimension buffer entries by building a temporary dimension set. Validates dimension values and generates a unique dimension set ID for the buffer contents.

procedure CreateDimSetIDFromDimBuf(var DimBuf: Record "Dimension Buffer"): Integer

Parameters

Name Type Description
DimBuf Table Microsoft.Finance.Dimension."Dimension Buffer"

Dimension buffer records to create dimension set ID from

Returns

Type Description
Integer

Generated dimension set ID representing the buffer dimension combination

CreateDimForPurchLineWithHigherPriorities

Creates dimensions for purchase lines using higher priority dimension sources. Applies dimension priority rules to resolve conflicts between different dimension sources.

procedure CreateDimForPurchLineWithHigherPriorities(PurchaseLine: Record "Purchase Line"; CurrFieldNo: Integer; var DimensionSetID: Integer; var DimValue1: Code[20]; var DimValue2: Code[20]; SourceCode: Code[10]; PriorityTableID: Integer)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

Purchase line record containing the dimension data

CurrFieldNo Integer

Current field number triggering the dimension creation

DimensionSetID Integer

Returns the created dimension set ID

DimValue1 Code[20]

Returns the global dimension 1 value code

DimValue2 Code[20]

Returns the global dimension 2 value code

SourceCode Code[10]

Source code for the transaction

PriorityTableID Integer

Table ID used for priority determination

CreateDimForSalesLineWithHigherPriorities

Creates dimensions for sales lines using higher priority dimension sources. Applies dimension priority rules to resolve conflicts between different dimension sources.

procedure CreateDimForSalesLineWithHigherPriorities(SalesLine: Record "Sales Line"; CurrFieldNo: Integer; var DimensionSetID: Integer; var DimValue1: Code[20]; var DimValue2: Code[20]; SourceCode: Code[10]; PriorityTableID: Integer)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

Sales line record containing the dimension data

CurrFieldNo Integer

Current field number triggering the dimension creation

DimensionSetID Integer

Returns the created dimension set ID

DimValue1 Code[20]

Returns the global dimension 1 value code

DimValue2 Code[20]

Returns the global dimension 2 value code

SourceCode Code[10]

Source code for the transaction

PriorityTableID Integer

Table ID used for priority determination

CreateDimForJobJournalLineWithHigherPriorities

Creates dimensions for job journal lines using higher priority dimension sources. Applies dimension priority rules to resolve conflicts between different dimension sources.

procedure CreateDimForJobJournalLineWithHigherPriorities(JobJournalLine: Record "Job Journal Line"; CurrFieldNo: Integer; var DimensionSetID: Integer; var DimValue1: Code[20]; var DimValue2: Code[20]; SourceCode: Code[10]; PriorityTableID: Integer)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

Job journal line record containing the dimension data

CurrFieldNo Integer

Current field number triggering the dimension creation

DimensionSetID Integer

Returns the created dimension set ID

DimValue1 Code[20]

Returns the global dimension 1 value code

DimValue2 Code[20]

Returns the global dimension 2 value code

SourceCode Code[10]

Source code for the transaction

PriorityTableID Integer

Table ID used for priority determination

GetTableIDsForHigherPriorities

Retrieves table IDs for higher priority dimension sources based on default dimension priority configuration. Filters dimension sources to include only those with higher priority than the specified priority table.

procedure GetTableIDsForHigherPriorities(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; var HighPriorityDefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; SourceCode: Code[10]; PriorityTableID: Integer): Boolean

Parameters

Name Type Description
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

List of default dimension sources to filter

HighPriorityDefaultDimSource List of [Dictionary of [Integer, Code[20]]]

Returns filtered list containing only higher priority sources

SourceCode Code[10]

Source code for priority lookup

PriorityTableID Integer

Table ID used as priority threshold for filtering

Returns

Type Description
Boolean

True if higher priority sources exist, false otherwise

GetDimSetIDsForFilter

Builds a collection of dimension set IDs that match the specified dimension code and value filter. Populates temporary dimension set entry buffer with matching dimension set IDs for subsequent filtering operations.

procedure GetDimSetIDsForFilter(DimCode: Code[20]; DimValueFilter: Text)

Parameters

Name Type Description
DimCode Code[20]

Dimension code to filter by

DimValueFilter Text

Dimension value filter expression to apply

ChunkDimSetFilters

procedure ChunkDimSetFilters(var TempDimensionSetEntry: Record "Dimension Set Entry" temporary): List of [Text]

Parameters

Name Type Description
TempDimensionSetEntry Table Microsoft.Finance.Dimension."Dimension Set Entry"

Returns

Type Description
List of [Text]

GetDimSetFilters

Gets dimension set filters as list of text for current dimension set filter counter.

procedure GetDimSetFilters(): List of [Text]

Returns

Type Description
List of [Text]

List of text containing dimension set filters for the current counter value

GetDimSetFilter

Gets single dimension set filter string based on current dimension set filter counter.

procedure GetDimSetFilter(): Text

Returns

Type Description
Text

Dimension set filter as concatenated text string

ClearDimSetFilter

Clears dimension set filter by resetting buffer and counter.

procedure ClearDimSetFilter()

GetTempDimSetEntry

Gets temporary dimension set entry from buffer.

procedure GetTempDimSetEntry(var TempDimSetEntry: Record "Dimension Set Entry" temporary)

Parameters

Name Type Description
TempDimSetEntry Table Microsoft.Finance.Dimension."Dimension Set Entry"

Temporary dimension set entry to copy buffer data to

UpdateCostType

Updates cost accounting types when default dimensions are modified for G/L accounts. Integrates dimension changes with cost accounting setup to maintain consistency between financial and cost dimensions.

procedure UpdateCostType(DefaultDimension: Record "Default Dimension"; CallingTrigger: Option)

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"

Default dimension record being modified

CallingTrigger Option

Trigger context indicating the type of operation (Insert, Modify, Delete)

CreateDimSetFromJobTaskDim

Creates dimension set ID from job task dimensions and updates global dimension values.

procedure CreateDimSetFromJobTaskDim(JobNo: Code[20]; JobTaskNo: Code[20]; var GlobalDimVal1: Code[20]; var GlobalDimVal2: Code[20]): Integer

Parameters

Name Type Description
JobNo Code[20]

Job number to get dimensions from

JobTaskNo Code[20]

Job task number to get dimensions from

GlobalDimVal1 Code[20]

Returns global dimension 1 value

GlobalDimVal2 Code[20]

Returns global dimension 2 value

Returns

Type Description
Integer

New dimension set ID created from job task dimensions

UpdateGenJnlLineDim

Updates general journal line with dimension set ID and corresponding shortcut dimension codes.

procedure UpdateGenJnlLineDim(var GenJnlLine: Record "Gen. Journal Line"; DimSetID: Integer)

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

General journal line to update with dimensions

DimSetID Integer

Dimension set ID to assign to the journal line

UpdateGenJnlLineDimFromCustLedgEntry

Updates general journal line dimensions from corresponding customer ledger entry.

procedure UpdateGenJnlLineDimFromCustLedgEntry(var GenJnlLine: Record "Gen. Journal Line"; DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry")

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

General journal line to update with dimensions

DtldCustLedgEntry Table Microsoft.Sales.Receivables."Detailed Cust. Ledg. Entry"

Detailed customer ledger entry containing dimension reference

UpdateGenJnlLineDimFromVendLedgEntry

Updates general journal line dimensions from corresponding vendor ledger entry.

procedure UpdateGenJnlLineDimFromVendLedgEntry(var GenJnlLine: Record "Gen. Journal Line"; DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry")

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

General journal line to update with dimensions

DtldVendLedgEntry Table Microsoft.Purchases.Payables."Detailed Vendor Ledg. Entry"

Detailed vendor ledger entry containing dimension reference

GetDimSetEntryDefaultDim

Gets dimension set entry default dimensions. Method is obsolete and clears dimension set entries.

procedure GetDimSetEntryDefaultDim(var DimSetEntry: Record "Dimension Set Entry")

Parameters

Name Type Description
DimSetEntry Table Microsoft.Finance.Dimension."Dimension Set Entry"

Dimension set entry record to clear

InsertObject

Inserts table object into temporary AllObjWithCaption record if not obsolete.

procedure InsertObject(var TempAllObjWithCaption: Record AllObjWithCaption temporary; TableID: Integer)

Parameters

Name Type Description
TempAllObjWithCaption Table System.Reflection.AllObjWithCaption

Temporary record to insert object information

TableID Integer

Table ID to check and insert

GetConsolidatedDimFilterByDimFilter

Gets consolidated dimension filter by combining dimension filter with dimension codes.

procedure GetConsolidatedDimFilterByDimFilter(var Dimension: Record Dimension; DimFilter: Text): Text

Parameters

Name Type Description
Dimension Table Microsoft.Finance.Dimension.Dimension

Dimension record to filter and process

DimFilter Text

Dimension filter text to apply

Returns

Type Description
Text

Consolidated dimension filter including original filter and dimension codes

ResolveDimValueFilter

Resolves dimension value filter by expanding with totaling values.

procedure ResolveDimValueFilter(var DimValueFilter: Text; DimensionCode: Code[20])

Parameters

Name Type Description
DimValueFilter Text

Dimension value filter to resolve and expand

DimensionCode Code[20]

Dimension code for which to resolve values

UseShortcutDims

Determines the visibility of shortcut dimension fields based on General Ledger Setup configuration. Returns boolean values for each of the eight shortcut dimension fields indicating whether they should be visible in the UI.

procedure UseShortcutDims(var DimVisible1: Boolean; var DimVisible2: Boolean; var DimVisible3: Boolean; var DimVisible4: Boolean; var DimVisible5: Boolean; var DimVisible6: Boolean; var DimVisible7: Boolean; var DimVisible8: Boolean)

Parameters

Name Type Description
DimVisible1 Boolean

Returns true if shortcut dimension 1 is configured and should be visible

DimVisible2 Boolean

Returns true if shortcut dimension 2 is configured and should be visible

DimVisible3 Boolean

Returns true if shortcut dimension 3 is configured and should be visible

DimVisible4 Boolean

Returns true if shortcut dimension 4 is configured and should be visible

DimVisible5 Boolean

Returns true if shortcut dimension 5 is configured and should be visible

DimVisible6 Boolean

Returns true if shortcut dimension 6 is configured and should be visible

DimVisible7 Boolean

Returns true if shortcut dimension 7 is configured and should be visible

DimVisible8 Boolean

Returns true if shortcut dimension 8 is configured and should be visible

OpenAllowedDimValuesPerAccount

Opens page for managing allowed dimension values per account with buffer synchronization.

procedure OpenAllowedDimValuesPerAccount(var DefaultDimension: Record "Default Dimension")

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"

Default dimension record to manage allowed values for

FillDimValuePerAccountBuffer

Fills temporary dimension value per account buffer from existing records or dimension values.

procedure FillDimValuePerAccountBuffer(var DefaultDimension: Record "Default Dimension"; var TempDimValuePerAccount: Record "Dim. Value per Account" temporary)

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"

Default dimension record to get account and dimension information

TempDimValuePerAccount Table Microsoft.Finance.Dimension."Dim. Value per Account"

Temporary buffer to fill with dimension value per account data

SyncDimValuePerAccountWithDimValues

Synchronizes dimension value per account records with dimension values. Creates dimension value per account entries for all dimension values in the specified dimension.

procedure SyncDimValuePerAccountWithDimValues(var DefaultDimension: Record "Default Dimension")

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"

Default dimension record containing the dimension code to synchronize

SyncTempDimValuePerAccountWithDimValues

Synchronizes temporary dimension value per account records with dimension values. Creates temporary dimension value per account entries for all dimension values in the specified dimension.

procedure SyncTempDimValuePerAccountWithDimValues(var DefaultDimension: Record "Default Dimension"; var TempDimValuePerAccount: Record "Dim. Value per Account" temporary)

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"

Default dimension record containing the dimension code to synchronize

TempDimValuePerAccount Table Microsoft.Finance.Dimension."Dim. Value per Account"

Temporary buffer to populate with dimension value per account records

OpenAllowedDimValuesPerAccountDimMultiple

Opens the allowed dimension values per account page for multiple dimension selection. Provides user interface for selecting allowed dimension values for specific account configurations.

procedure OpenAllowedDimValuesPerAccountDimMultiple(var DefaultDimension: Record "Default Dimension"; var TempDimValuePerAccount: Record "Dim. Value per Account" temporary)

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"

Default dimension record containing the configuration context

TempDimValuePerAccount Table Microsoft.Finance.Dimension."Dim. Value per Account"

Temporary buffer containing dimension value per account data

AddDefaultDimensionAllowedDimensionValue

Adds a dimension value to the allowed values filter for default dimensions. Updates default dimension configurations to include the specified dimension value as allowed.

procedure AddDefaultDimensionAllowedDimensionValue(DimensionValue: Record "Dimension Value")

Parameters

Name Type Description
DimensionValue Table Microsoft.Finance.Dimension."Dimension Value"

Dimension value record to add to allowed values

UpdateDefaultDimensionAllowedDimensionValues

Updates default dimension allowed values filter when dimension values change. Refreshes allowed values filter for all default dimensions using the specified dimension.

procedure UpdateDefaultDimensionAllowedDimensionValues(DimensionValue: Record "Dimension Value")

Parameters

Name Type Description
DimensionValue Table Microsoft.Finance.Dimension."Dimension Value"

Dimension value record that has been modified

CheckIfNoAllowedValuesSelected

Validates that at least one allowed value is selected for dimension value per account configuration. Throws an error if no allowed values are marked as selected.

procedure CheckIfNoAllowedValuesSelected(var DimValuePerAccount: Record "Dim. Value per Account")

Parameters

Name Type Description
DimValuePerAccount Table Microsoft.Finance.Dimension."Dim. Value per Account"

Dimension value per account record to validate

AddDimSource

Adds dimension source to default dimension source list.

procedure AddDimSource(var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; TableId: Integer; No: Code[20])

Parameters

Name Type Description
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

List of default dimension sources to add to

TableId Integer

Table ID for the dimension source

No Code[20]

Number/code for the dimension source

AddDimSource

Adds dimension source to default dimension source list with position control.

procedure AddDimSource(var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; TableId: Integer; No: Code[20]; FirstPos: Boolean)

Parameters

Name Type Description
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

List of default dimension sources to add to

TableId Integer

Table ID for the dimension source

No Code[20]

Number/code for the dimension source

FirstPos Boolean

True to insert at first position, false to add at end

IsDefaultDimDefinedForTable

Checks if default dimensions are defined for a specific table and record combination. Returns true if any default dimension records exist for the table and record specified.

procedure IsDefaultDimDefinedForTable(TableValuePair: Dictionary of [Integer, Code[20]]): Boolean

Parameters

Name Type Description
TableValuePair Dictionary of [Integer, Code[20]]

Dictionary containing table ID and record number pair to check

Returns

Type Description
Boolean

True if default dimensions exist for the table and record, false otherwise

DontNotifyCurrentUserAgain

Disables current user notification for default dimension priorities.

procedure DontNotifyCurrentUserAgain(Notification: Notification)

Parameters

Name Type Description
Notification Notification

Notification to disable for current user

OpenDefaultDimPriorities

Opens default dimension priorities page with source code from notification data.

procedure OpenDefaultDimPriorities(DefaultDimPrioritiesNotification: Notification)

Parameters

Name Type Description
DefaultDimPrioritiesNotification Notification

Notification containing source code data

CheckDefaultDimensionHasCodeMandatory

Checks if any default dimensions have Code Mandatory value posting for given table IDs and numbers.

procedure CheckDefaultDimensionHasCodeMandatory(TableID: array[10] of Integer; No: array[10] of Code[20]): Boolean

Parameters

Name Type Description
TableID array[10] of Integer

Array of table IDs to check for default dimensions

No array[10] of Code[20]

Array of numbers corresponding to table IDs

Returns

Type Description
Boolean

True if any default dimension has Code Mandatory value posting, false otherwise

SetSkipChangeDimensionsQst

Sets flag to skip change dimensions confirmation question.

procedure SetSkipChangeDimensionsQst(Skip: Boolean)

Parameters

Name Type Description
Skip Boolean

True to skip confirmation question, false to show question

SetSkipUpdateDimensions

Sets flag to skip dimension updates.

procedure SetSkipUpdateDimensions(Skip: Boolean)

Parameters

Name Type Description
Skip Boolean

True to skip dimension updates, false to perform updates

GetSkipUpdateDimensions

Gets flag indicating whether dimension updates should be skipped.

procedure GetSkipUpdateDimensions(): Boolean

Returns

Type Description
Boolean

True if dimension updates should be skipped, false otherwise

SetDimensionValue

Adds or updates the dimension value for the specified dimension set.

procedure SetDimensionValue(DimSetID: Integer; DimensionCode: Code[20]; DimensionValueCode: Code[20]; AutoCreateMissingDimension: Boolean; AutoCreateMissingDimensionValue: Boolean): Integer

Parameters

Name Type Description
DimSetID Integer

Specifies the dimension set that is going to be updated.

DimensionCode Code[20]

Specifies the code of the dimension that is going to be updated.

DimensionValueCode Code[20]

Specifies the code of the dimension value that is going to set in the dimension set.

AutoCreateMissingDimension Boolean

Specifies whether the dimension will be created if it doesn't exist.

AutoCreateMissingDimensionValue Boolean

Specifies whether the dimension value will be created if it doesn't exist.

Returns

Type Description
Integer

Returns the new dimension set ID.

SetDimensionValue

Adds or updates the dimension value for the specified dimension set. Any dimension or dimension value that doesn't exist will be created automatically.

procedure SetDimensionValue(DimSetID: Integer; DimensionCode: Code[20]; DimensionValueCode: Code[20]; DimensionName: Text[30]; DimensionValueName: Text[50]): Integer

Parameters

Name Type Description
DimSetID Integer

Specifies the dimension set that is going to be updated.

DimensionCode Code[20]

Specifies the code of the dimension that is going to be updated.

DimensionValueCode Code[20]

Specifies the code of the dimension value that is going to set in the dimension set.

DimensionName Text[30]

Specifies the name of the dimension, if the the dimension doesn't exist yet.

DimensionValueName Text[50]

Specifies the name of the dimension value, if the dimension value doesn't exist yet.

Returns

Type Description
Integer

Returns the new dimension set ID.

SetDimensionValue

Adds or updates the dimension value for the specified dimension set.

procedure SetDimensionValue(DimSetID: Integer; DimensionCode: Code[20]; DimensionName: Text[30]; DimensionValueCode: Code[20]; DimensionValueName: Text[50]; AutoCreateMissingDimension: Boolean; AutoCreateMissingDimensionValue: Boolean): Integer

Parameters

Name Type Description
DimSetID Integer

Specifies the dimension set that is going to be updated.

DimensionCode Code[20]

Specifies the code of the dimension that is going to be updated.

DimensionName Text[30]

Specifies the name of the dimension, if the the dimension doesn't exist yet.

DimensionValueCode Code[20]

Specifies the code of the dimension value that is going to set in the dimension set.

DimensionValueName Text[50]

Specifies the name of the dimension value, if the the dimension value doesn't exist yet.

AutoCreateMissingDimension Boolean

Specifies whether the dimension will be create if it doesn't exist.

AutoCreateMissingDimensionValue Boolean

Specifies whether the dimension value will be create if doesn't exist.

Returns

Type Description
Integer

Returns the new dimension set ID.

Events

OnAfterCheckDimValuePosting

[IntegrationEvent(False,False)]
local procedure OnAfterCheckDimValuePosting(TableID: array[10] of Integer; No: array[10] of Code[20]; var TempDefaultDim: Record "Default Dimension" temporary)

Parameters

Name Type Description
TableID array[10] of Integer
No array[10] of Code[20]
TempDefaultDim Table Microsoft.Finance.Dimension."Default Dimension"

OnAfterCheckDimValue

[IntegrationEvent(False,False)]
local procedure OnAfterCheckDimValue(DimCode: Code[20]; DimValCode: Code[20]; var Result: Boolean)

Parameters

Name Type Description
DimCode Code[20]
DimValCode Code[20]
Result Boolean

OnAfterConvertDimtoICDim

[IntegrationEvent(False,False)]
local procedure OnAfterConvertDimtoICDim(FromDim: Code[20]; var ICDimCode: Code[20])

Parameters

Name Type Description
FromDim Code[20]
ICDimCode Code[20]

OnAfterConvertDimValuetoICDimVal

[IntegrationEvent(False,False)]
local procedure OnAfterConvertDimValuetoICDimVal(FromDimCode: Code[20]; FromDimValue: Code[20]; var ICDimValueCode: Code[20])

Parameters

Name Type Description
FromDimCode Code[20]
FromDimValue Code[20]
ICDimValueCode Code[20]

OnAfterConvertICDimtoDim

[IntegrationEvent(False,False)]
local procedure OnAfterConvertICDimtoDim(FromICDimCode: Code[20]; var DimCode: Code[20])

Parameters

Name Type Description
FromICDimCode Code[20]
DimCode Code[20]

OnAfterConvertICDimValuetoDimValue

[IntegrationEvent(False,False)]
local procedure OnAfterConvertICDimValuetoDimValue(FromICDimCode: Code[20]; FromICDimValue: Code[20]; var DimValueCode: Code[20])

Parameters

Name Type Description
FromICDimCode Code[20]
FromICDimValue Code[20]
DimValueCode Code[20]

OnAfterCreateDimForJobJournalLineWithHigherPrioritiesProcedure

[IntegrationEvent(False,False)]
local procedure OnAfterCreateDimForJobJournalLineWithHigherPrioritiesProcedure(JobJournalLine: Record "Job Journal Line"; CurrFieldNo: Integer; var DimensionSetID: Integer; var DimValue1: Code[20]; var DimValue2: Code[20]; SourceCode: Code[10]; PriorityTableID: Integer; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; var HighPriorityDefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
CurrFieldNo Integer
DimensionSetID Integer
DimValue1 Code[20]
DimValue2 Code[20]
SourceCode Code[10]
PriorityTableID Integer
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
HighPriorityDefaultDimSource List of [Dictionary of [Integer, Code[20]]]

OnAfterEditDimensionSet2

[IntegrationEvent(False,False)]
local procedure OnAfterEditDimensionSet2(var DimSetID: Integer; var GlobalDimVal1: Code[20]; var GlobalDimVal2: Code[20])

Parameters

Name Type Description
DimSetID Integer
GlobalDimVal1 Code[20]
GlobalDimVal2 Code[20]

OnAfterDeleteDefaultDim

[IntegrationEvent(False,False)]
local procedure OnAfterDeleteDefaultDim(TableID: Integer; No: Code[20])

Parameters

Name Type Description
TableID Integer
No Code[20]

OnAfterSetupObjectNoList

[IntegrationEvent(False,False)]
local procedure OnAfterSetupObjectNoList(var TempAllObjWithCaption: Record AllObjWithCaption temporary)

Parameters

Name Type Description
TempAllObjWithCaption Table System.Reflection.AllObjWithCaption

OnAfterDefaultDimObjectNoWithoutGlobalDimsList

[IntegrationEvent(True,False)]
local procedure OnAfterDefaultDimObjectNoWithoutGlobalDimsList(var TempAllObjWithCaption: Record AllObjWithCaption temporary)

Parameters

Name Type Description
TempAllObjWithCaption Table System.Reflection.AllObjWithCaption

OnAfterIsDefaultDimTable

[IntegrationEvent(False,False)]
local procedure OnAfterIsDefaultDimTable(TableID: Integer; var Result: Boolean)

Parameters

Name Type Description
TableID Integer
Result Boolean

OnAfterSetSourceCodeWithVar

[IntegrationEvent(False,False)]
local procedure OnAfterSetSourceCodeWithVar(TableID: Integer; RecordVar: Variant; var SourceCode: Code[10])

Parameters

Name Type Description
TableID Integer
RecordVar Variant
SourceCode Code[10]

OnAfterUpdateGenJnlLineDim

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateGenJnlLineDim(var GenJournalLine: Record "Gen. Journal Line"; DimSetID: Integer)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
DimSetID Integer

OnAfterUpdateDefaultDim

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateDefaultDim(TableID: Integer; No: Code[20]; var GlobalDim1Code: Code[20]; var GlobalDim2Code: Code[20])

Parameters

Name Type Description
TableID Integer
No Code[20]
GlobalDim1Code Code[20]
GlobalDim2Code Code[20]

OnAfterUpdateJobTaskDim

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateJobTaskDim(DefaultDimension: Record "Default Dimension")

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"

OnAfterValidateDimValueCode

[IntegrationEvent(False,False)]
local procedure OnAfterValidateDimValueCode(FieldNumber: Integer; var ShortcutDimCode: Code[20]; var GLSetupShortcutDimCode: array[8] of Code[20]; DimensionValue: Record "Dimension Value")

Parameters

Name Type Description
FieldNumber Integer
ShortcutDimCode Code[20]
GLSetupShortcutDimCode array[8] of Code[20]
DimensionValue Table Microsoft.Finance.Dimension."Dimension Value"

OnAfterValidateShortcutDimValues

[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimValues(FieldNumber: Integer; var ShortcutDimCode: Code[20]; var DimSetID: Integer)

Parameters

Name Type Description
FieldNumber Integer
ShortcutDimCode Code[20]
DimSetID Integer

OnAddDefaultDimensionAllowedDimensionValueOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnAddDefaultDimensionAllowedDimensionValueOnAfterSetFilters(var DefaultDimension: Record "Default Dimension")

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"

OnBeforeAddDefaultDimensionAllowedDimensionValue

[IntegrationEvent(False,False)]
local procedure OnBeforeAddDefaultDimensionAllowedDimensionValue(DimensionValue: Record "Dimension Value"; var IsHandled: Boolean)

Parameters

Name Type Description
DimensionValue Table Microsoft.Finance.Dimension."Dimension Value"
IsHandled Boolean

OnBeforeCheckDim

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDim(DimCode: Code[20]; var Result: Boolean; var IsHandled: Boolean; var Dimension: Record Dimension)

Parameters

Name Type Description
DimCode Code[20]
Result Boolean
IsHandled Boolean
Dimension Table Microsoft.Finance.Dimension.Dimension

OnBeforeCheckDimComb

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDimComb(var DimensionCombination: Record "Dimension Combination"; var TempDimensionBuffer: Record "Dimension Buffer" temporary)

Parameters

Name Type Description
DimensionCombination Table Microsoft.Finance.Dimension."Dimension Combination"
TempDimensionBuffer Table Microsoft.Finance.Dimension."Dimension Buffer"

OnBeforeCheckDimValueComb

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDimValueComb(var DimensionValueCombination: Record "Dimension Value Combination")

Parameters

Name Type Description
DimensionValueCombination Table Microsoft.Finance.Dimension."Dimension Value Combination"

OnBeforeCheckDimValue

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDimValue(DimCode: Code[20]; DimValCode: Code[20]; var Result: Boolean; var IsHandled: Boolean; var DimVal: Record "Dimension Value")

Parameters

Name Type Description
DimCode Code[20]
DimValCode Code[20]
Result Boolean
IsHandled Boolean
DimVal Table Microsoft.Finance.Dimension."Dimension Value"

OnBeforeCheckDimValueAllowed

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDimValueAllowed(var DimensionValue: Record "Dimension Value"; var IsHandled: Boolean; var Result: Boolean)

Parameters

Name Type Description
DimensionValue Table Microsoft.Finance.Dimension."Dimension Value"
IsHandled Boolean
Result Boolean

OnBeforeCheckDimValuePosting

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDimValuePosting(TableID: array[10] of Integer; No: array[10] of Code[20]; DimSetID: Integer; var IsChecked: Boolean; var IsHandled: Boolean; var DimensionSetEntry: Record "Dimension Set Entry")

Parameters

Name Type Description
TableID array[10] of Integer
No array[10] of Code[20]
DimSetID Integer
IsChecked Boolean
IsHandled Boolean
DimensionSetEntry Table Microsoft.Finance.Dimension."Dimension Set Entry"

OnBeforeCheckICDim

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckICDim(ICDimCode: Code[20]; var Result: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
ICDimCode Code[20]
Result Boolean
IsHandled Boolean

OnBeforeGetDimensionSetIDProcedure

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDimensionSetIDProcedure(var DimensionSetEntry: Record "Dimension Set Entry")

Parameters

Name Type Description
DimensionSetEntry Table Microsoft.Finance.Dimension."Dimension Set Entry"

OnBeforeCheckICDimValue

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckICDimValue(ICDimCode: Code[20]; ICDimValCode: Code[20]; var Result: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
ICDimCode Code[20]
ICDimValCode Code[20]
Result Boolean
IsHandled Boolean

OnBeforeCheckValuePosting

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckValuePosting(TableID: array[10] of Integer; No: array[10] of Code[20]; var TempDimBuf: Record "Dimension Buffer" temporary; var IsChecked: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
TableID array[10] of Integer
No array[10] of Code[20]
TempDimBuf Table Microsoft.Finance.Dimension."Dimension Buffer"
IsChecked Boolean
IsHandled Boolean

OnBeforeConvertDimValuetoICDimVal

[IntegrationEvent(False,False)]
local procedure OnBeforeConvertDimValuetoICDimVal(var DimValue: Record "Dimension Value")

Parameters

Name Type Description
DimValue Table Microsoft.Finance.Dimension."Dimension Value"

OnBeforeCreateDimSetIDFromICDocDim

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDimSetIDFromICDocDim(var DimValue: Record "Dimension Value")

Parameters

Name Type Description
DimValue Table Microsoft.Finance.Dimension."Dimension Value"

OnBeforeCreateDimSetIDFromICJnlLineDim

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDimSetIDFromICJnlLineDim(var DimValue: Record "Dimension Value")

Parameters

Name Type Description
DimValue Table Microsoft.Finance.Dimension."Dimension Value"

OnBeforeCopyDimBufToDimSetEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyDimBufToDimSetEntry(var DimValue: Record "Dimension Value")

Parameters

Name Type Description
DimValue Table Microsoft.Finance.Dimension."Dimension Value"

OnBeforeCreateDimSetIDFromDimBuf

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDimSetIDFromDimBuf(var DimValue: Record "Dimension Value")

Parameters

Name Type Description
DimValue Table Microsoft.Finance.Dimension."Dimension Value"

OnBeforeDefaultDimOnInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeDefaultDimOnInsert(var DefaultDimension: Record "Default Dimension"; var IsHandled: Boolean)

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"
IsHandled Boolean

OnBeforeDefaultDimOnDelete

[IntegrationEvent(False,False)]
local procedure OnBeforeDefaultDimOnDelete(var DefaultDimension: Record "Default Dimension"; var IsHandled: Boolean)

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"
IsHandled Boolean

OnBeforeDefaultDimOnModify

[IntegrationEvent(False,False)]
local procedure OnBeforeDefaultDimOnModify(var DefaultDimension: Record "Default Dimension"; var IsHandled: Boolean)

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"
IsHandled Boolean

OnBeforeGetDimensionSet

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDimensionSet(var TempDimensionSetEntry: Record "Dimension Set Entry" temporary; var DimSetID: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
TempDimensionSetEntry Table Microsoft.Finance.Dimension."Dimension Set Entry"
DimSetID Integer
IsHandled Boolean

OnBeforeEditDimensionSet

[IntegrationEvent(False,False)]
local procedure OnBeforeEditDimensionSet(DimSetID: Integer; NewCaption: Text[250]; var NewDimSetID: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
DimSetID Integer
NewCaption Text[250]
NewDimSetID Integer
IsHandled Boolean

OnBeforeEditDimensionSet2

[IntegrationEvent(False,False)]
local procedure OnBeforeEditDimensionSet2(DimSetID: Integer; NewCaption: Text[250]; var GlobalDimVal1: Code[20]; var GlobalDimVal2: Code[20]; var NewDimSetID: Integer; var IsHandled: Boolean; RecVariant: Variant)

Parameters

Name Type Description
DimSetID Integer
NewCaption Text[250]
GlobalDimVal1 Code[20]
GlobalDimVal2 Code[20]
NewDimSetID Integer
IsHandled Boolean
RecVariant Variant

OnBeforeGetDeltaDimSetID

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDeltaDimSetID(var DimSetID: Integer; NewParentDimSetID: Integer; OldParentDimSetID: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
DimSetID Integer
NewParentDimSetID Integer
OldParentDimSetID Integer
IsHandled Boolean

OnBeforeGetTableIDsForHigherPrioritiesProcedure

[IntegrationEvent(False,False)]
local procedure OnBeforeGetTableIDsForHigherPrioritiesProcedure(TableNo: Integer; RecVar: Variant; var FieldNo: Integer; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
TableNo Integer
RecVar Variant
FieldNo Integer
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

OnBeforeInsertJobTaskDim

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertJobTaskDim(JobNo: Code[20]; JobTaskNo: Code[20]; var GlobalDim1Code: Code[20]; var GlobalDim2Code: Code[20]; var IsHandled: Boolean)

Parameters

Name Type Description
JobNo Code[20]
JobTaskNo Code[20]
GlobalDim1Code Code[20]
GlobalDim2Code Code[20]
IsHandled Boolean

OnBeforeLookupDimValueCode

[IntegrationEvent(False,False)]
local procedure OnBeforeLookupDimValueCode(FieldNumber: Integer; var ShortcutDimCode: Code[20]; var IsHandled: Boolean)

Parameters

Name Type Description
FieldNumber Integer
ShortcutDimCode Code[20]
IsHandled Boolean

OnBeforeLookupDimValueCodeNoUpdate

[IntegrationEvent(False,False)]
local procedure OnBeforeLookupDimValueCodeNoUpdate(FieldNumber: Integer)

Parameters

Name Type Description
FieldNumber Integer

OnBeforeParseDimParam

[IntegrationEvent(False,False)]
local procedure OnBeforeParseDimParam(var DimensionValue: Record "Dimension Value")

Parameters

Name Type Description
DimensionValue Table Microsoft.Finance.Dimension."Dimension Value"

OnBeforeSaveDefaultDim

[IntegrationEvent(False,False)]
local procedure OnBeforeSaveDefaultDim(TableID: Integer; No: Code[20]; FieldNumber: Integer; ShortcutDimCode: Code[20]; var IsHandled: Boolean)

Parameters

Name Type Description
TableID Integer
No Code[20]
FieldNumber Integer
ShortcutDimCode Code[20]
IsHandled Boolean

OnBeforeSetupObjectNoList

[IntegrationEvent(False,False)]
local procedure OnBeforeSetupObjectNoList(var TempDimField: Record Field temporary)

Parameters

Name Type Description
TempDimField Table System.Reflection.Field

OnBeforeUpdateDefaultDim

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateDefaultDim(TableID: Integer; No: Code[20]; var GlobalDim1Code: Code[20]; var GlobalDim2Code: Code[20]; var IsHandled: Boolean)

Parameters

Name Type Description
TableID Integer
No Code[20]
GlobalDim1Code Code[20]
GlobalDim2Code Code[20]
IsHandled Boolean

OnBeforeValidateDimValueCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateDimValueCode(FieldNumber: Integer; var ShortcutDimCode: Code[20]; var IsHandled: Boolean; var GLSetupShortcutDimCode: array[8] of Code[20]; var DimVal: Record "Dimension Value")

Parameters

Name Type Description
FieldNumber Integer
ShortcutDimCode Code[20]
IsHandled Boolean
GLSetupShortcutDimCode array[8] of Code[20]
DimVal Table Microsoft.Finance.Dimension."Dimension Value"

OnBeforeValidateShortcutDimValues

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimValues(var DimVal: Record "Dimension Value"; FieldNumber: Integer; var ShortcutDimCode: Code[20]; var DimSetID: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
DimVal Table Microsoft.Finance.Dimension."Dimension Value"
FieldNumber Integer
ShortcutDimCode Code[20]
DimSetID Integer
IsHandled Boolean

OnParseDimParamOnBeforeTempDimensionValueFindSet

[IntegrationEvent(False,False)]
local procedure OnParseDimParamOnBeforeTempDimensionValueFindSet(var DimensionValue: Record "Dimension Value")

Parameters

Name Type Description
DimensionValue Table Microsoft.Finance.Dimension."Dimension Value"

OnTypeToTableID2

[IntegrationEvent(False,False)]
local procedure OnTypeToTableID2(var TableID: Integer; Type: Integer)

Parameters

Name Type Description
TableID Integer
Type Integer

OnCheckDimValueAllowed

[IntegrationEvent(False,False)]
local procedure OnCheckDimValueAllowed(DimVal: Record "Dimension Value"; var DimValueAllowed: Boolean; var DimErr: Text[250])

Parameters

Name Type Description
DimVal Table Microsoft.Finance.Dimension."Dimension Value"
DimValueAllowed Boolean
DimErr Text[250]

OnCheckICDimValueAllowed

[IntegrationEvent(False,False)]
local procedure OnCheckICDimValueAllowed(ICDimVal: Record "IC Dimension Value"; var DimValueAllowed: Boolean)

Parameters

Name Type Description
ICDimVal Table Microsoft.Intercompany.Dimension."IC Dimension Value"
DimValueAllowed Boolean

OnGetDefaultDimIDOnAfterAttributeGlobalDims

[IntegrationEvent(False,False)]
local procedure OnGetDefaultDimIDOnAfterAttributeGlobalDims(var GlobalDim1Code: Code[20]; var GlobalDim2Code: Code[20])

Parameters

Name Type Description
GlobalDim1Code Code[20]
GlobalDim2Code Code[20]

OnGetDefaultDimOnBeforeCreate

[IntegrationEvent(False,False)]
local procedure OnGetDefaultDimOnBeforeCreate(var TempDimBuf: Record "Dimension Buffer" temporary; TableID: Integer; No: Code[20]; GLSetupShortcutDimCode: array[8] of Code[20]; var GlobalDim1Code: Code[20]; var GlobalDim2Code: Code[20]; var IsHandled: Boolean; SourceCode: Code[20])

Parameters

Name Type Description
TempDimBuf Table Microsoft.Finance.Dimension."Dimension Buffer"
TableID Integer
No Code[20]
GLSetupShortcutDimCode array[8] of Code[20]
GlobalDim1Code Code[20]
GlobalDim2Code Code[20]
IsHandled Boolean
SourceCode Code[20]

OnUpdateJobTaskDimOnBeforConfirm

[IntegrationEvent(False,False)]
local procedure OnUpdateJobTaskDimOnBeforConfirm(DefaultDimension: Record "Default Dimension"; var IsHandled: Boolean)

Parameters

Name Type Description
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"
IsHandled Boolean

OnGetDefaultDimIDOnBeforeTempDimSetEntryInsert

[IntegrationEvent(False,False)]
local procedure OnGetDefaultDimIDOnBeforeTempDimSetEntryInsert(var DimensionSetEntry: Record "Dimension Set Entry"; var DimensionBuffer: Record "Dimension Buffer"; SourceCode: Code[20])

Parameters

Name Type Description
DimensionSetEntry Table Microsoft.Finance.Dimension."Dimension Set Entry"
DimensionBuffer Table Microsoft.Finance.Dimension."Dimension Buffer"
SourceCode Code[20]

OnAfterTypeToTableID1

[IntegrationEvent(False,False)]
local procedure OnAfterTypeToTableID1(Type: Integer; var TableId: Integer)

Parameters

Name Type Description
Type Integer
TableId Integer

OnAfterSalesLineTypeToTableID

[IntegrationEvent(False,False)]
local procedure OnAfterSalesLineTypeToTableID(Type: Enum "Sales Line Type"; var TableId: Integer)

Parameters

Name Type Description
Type Enum Microsoft.Sales.Document."Sales Line Type"
TableId Integer

OnAfterPurchLineTypeToTableID

[IntegrationEvent(False,False)]
local procedure OnAfterPurchLineTypeToTableID(Type: Enum "Purchase Line Type"; var TableId: Integer)

Parameters

Name Type Description
Type Enum Microsoft.Purchases.Document."Purchase Line Type"
TableId Integer

OnAfterReqLineTypeToTableID

[IntegrationEvent(False,False)]
local procedure OnAfterReqLineTypeToTableID(Type: Enum "Requisition Line Type"; var TableId: Integer)

Parameters

Name Type Description
Type Enum Microsoft.Inventory.Requisition."Requisition Line Type"
TableId Integer

OnAfterTypeToTableID4

[IntegrationEvent(False,False)]
local procedure OnAfterTypeToTableID4(Type: Integer; var TableId: Integer)

Parameters

Name Type Description
Type Integer
TableId Integer

OnAfterTypeToTableID5

Obsolete

This element will become obsolete from version 27.0. This event is never raised.

[Obsolete(This event is never raised.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterTypeToTableID5(Type: Integer; var TableId: Integer)

Parameters

Name Type Description
Type Integer
TableId Integer

OnBeforeGetDimensionSetID

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDimensionSetID(var TempDimSetEntry: Record "Dimension Set Entry" temporary)

Parameters

Name Type Description
TempDimSetEntry Table Microsoft.Finance.Dimension."Dimension Set Entry"

OnEditDimensionSetOnBeforeEditDimEntries

[IntegrationEvent(False,False)]
local procedure OnEditDimensionSetOnBeforeEditDimEntries(var EditDimSetEntries: Page "Edit Dimension Set Entries")

Parameters

Name Type Description
EditDimSetEntries Page Microsoft.Finance.Dimension."Edit Dimension Set Entries"

OnLookupDimValueCodeOnBeforeDimValRunModal

[IntegrationEvent(False,False)]
local procedure OnLookupDimValueCodeOnBeforeDimValRunModal(var DimensionValue: Record "Dimension Value"; FieldNumber: Integer)

Parameters

Name Type Description
DimensionValue Table Microsoft.Finance.Dimension."Dimension Value"
FieldNumber Integer

OnCheckDimValuePostingOnBeforeLogErrors

[IntegrationEvent(False,False)]
local procedure OnCheckDimValuePostingOnBeforeLogErrors(TempDefaultDim: Record "Default Dimension" temporary; var DimSetEntry: Record "Dimension Set Entry"; var LastErrorMessage: Record "Error Message"; var ErrorMessageMgt: Codeunit "Error Message Management"; var isHandled: Boolean)

Parameters

Name Type Description
TempDefaultDim Table Microsoft.Finance.Dimension."Default Dimension"
DimSetEntry Table Microsoft.Finance.Dimension."Dimension Set Entry"
LastErrorMessage Table System.Utilities."Error Message"
ErrorMessageMgt Codeunit System.Utilities."Error Message Management"
isHandled Boolean

OnCheckValuePostingOnBeforeExit

[IntegrationEvent(False,False)]
local procedure OnCheckValuePostingOnBeforeExit(TableID: array[10] of Integer; No: array[10] of Code[20]; var TempDimensionBuffer: Record "Dimension Buffer" temporary; var LastErrorMessage: Record "Error Message"; var ErrorMessageManagement: Codeunit "Error Message Management"; var IsChecked: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
TableID array[10] of Integer
No array[10] of Code[20]
TempDimensionBuffer Table Microsoft.Finance.Dimension."Dimension Buffer"
LastErrorMessage Table System.Utilities."Error Message"
ErrorMessageManagement Codeunit System.Utilities."Error Message Management"
IsChecked Boolean
IsHandled Boolean

OnCheckValuePostingOnAfterDefaultDimLoop

[IntegrationEvent(False,False)]
local procedure OnCheckValuePostingOnAfterDefaultDimLoop(var TempDimBuf: Record "Dimension Buffer" temporary; var DefaultDim: Record "Default Dimension")

Parameters

Name Type Description
TempDimBuf Table Microsoft.Finance.Dimension."Dimension Buffer"
DefaultDim Table Microsoft.Finance.Dimension."Default Dimension"

OnCheckDimValuePostingOnBeforeExit

[IntegrationEvent(False,False)]
local procedure OnCheckDimValuePostingOnBeforeExit(TableID: array[10] of Integer; No: array[10] of Code[20]; DimSetID: Integer; var LastErrorMessage: Record "Error Message"; var ErrorMessageManagement: Codeunit "Error Message Management"; var IsChecked: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
TableID array[10] of Integer
No array[10] of Code[20]
DimSetID Integer
LastErrorMessage Table System.Utilities."Error Message"
ErrorMessageManagement Codeunit System.Utilities."Error Message Management"
IsChecked Boolean
IsHandled Boolean

OnBeforeCreateDimSetFromJobTaskDim

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDimSetFromJobTaskDim(JobNo: Code[20]; JobTaskNo: Code[20]; var GlobalDimVal1: Code[20]; var GlobalDimVal2: Code[20]; var NewDimSetID: Integer; var IsHandled: Boolean; var DimValue: Record "Dimension Value")

Parameters

Name Type Description
JobNo Code[20]
JobTaskNo Code[20]
GlobalDimVal1 Code[20]
GlobalDimVal2 Code[20]
NewDimSetID Integer
IsHandled Boolean
DimValue Table Microsoft.Finance.Dimension."Dimension Value"

OnBeforeGetRecDefaultDimID

[IntegrationEvent(False,False)]
local procedure OnBeforeGetRecDefaultDimID(RecVariant: Variant; CurrFieldNo: Integer; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; var SourceCode: Code[20]; var InheritFromDimSetID: Integer; var InheritFromTableNo: Integer; var Result: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
RecVariant Variant
CurrFieldNo Integer
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
SourceCode Code[20]
InheritFromDimSetID Integer
InheritFromTableNo Integer
Result Integer
IsHandled Boolean

OnAfterGetRecDefaultDimIDProcedure

[IntegrationEvent(False,False)]
local procedure OnAfterGetRecDefaultDimIDProcedure(RecVariant: Variant; CurrFieldNo: Integer; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; var SourceCode: Code[20]; var InheritFromDimSetID: Integer; var InheritFromTableNo: Integer; var GlobalDim1Code: Code[20]; var GlobalDim2Code: Code[20]; var DefaultDimSetID: Integer)

Parameters

Name Type Description
RecVariant Variant
CurrFieldNo Integer
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
SourceCode Code[20]
InheritFromDimSetID Integer
InheritFromTableNo Integer
GlobalDim1Code Code[20]
GlobalDim2Code Code[20]
DefaultDimSetID Integer

OnBeforeGetDefaultDimIDProcedure

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDefaultDimIDProcedure(var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; SourceCode: Code[20]; var GlobalDim1Code: Code[20]; var GlobalDim2Code: Code[20]; InheritFromDimSetID: Integer; InheritFromTableNo: Integer; var DimVal: Record "Dimension Value"; var Result: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
SourceCode Code[20]
GlobalDim1Code Code[20]
GlobalDim2Code Code[20]
InheritFromDimSetID Integer
InheritFromTableNo Integer
DimVal Table Microsoft.Finance.Dimension."Dimension Value"
Result Integer
IsHandled Boolean

OnGetDefaultDimIDOnBeforeFindNewDimSetIDProcedure

[IntegrationEvent(False,False)]
local procedure OnGetDefaultDimIDOnBeforeFindNewDimSetIDProcedure(var TempDimensionBuffer: Record "Dimension Buffer" temporary; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; var GlobalDim1Code: Code[20]; var GlobalDim2Code: Code[20]; SourceCode: Code[20]; GLSetupShortcutDimCode: array[8] of Code[20]; var TempDimensionSetEntry0: Record "Dimension Set Entry" temporary; InheritFromDimSetID: Integer; InheritFromTableNo: Integer)

Parameters

Name Type Description
TempDimensionBuffer Table Microsoft.Finance.Dimension."Dimension Buffer"
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
GlobalDim1Code Code[20]
GlobalDim2Code Code[20]
SourceCode Code[20]
GLSetupShortcutDimCode array[8] of Code[20]
TempDimensionSetEntry0 Table Microsoft.Finance.Dimension."Dimension Set Entry"
InheritFromDimSetID Integer
InheritFromTableNo Integer

OnGetDefaultDimIDOnBeforeGetInheritDimensionSet

[IntegrationEvent(False,False)]
local procedure OnGetDefaultDimIDOnBeforeGetInheritDimensionSet(var TempDimensionSetEntry0: Record "Dimension Set Entry" temporary; var InheritFromDimSetID: Integer; var InheritFromTableNo: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
TempDimensionSetEntry0 Table Microsoft.Finance.Dimension."Dimension Set Entry"
InheritFromDimSetID Integer
InheritFromTableNo Integer
IsHandled Boolean

OnAfterUseShortcutDims

[IntegrationEvent(True,False)]
local procedure OnAfterUseShortcutDims(var DimVisible1: Boolean; var DimVisible2: Boolean; var DimVisible3: Boolean; var DimVisible4: Boolean; var DimVisible5: Boolean; var DimVisible6: Boolean; var DimVisible7: Boolean; var DimVisible8: Boolean)

Parameters

Name Type Description
DimVisible1 Boolean
DimVisible2 Boolean
DimVisible3 Boolean
DimVisible4 Boolean
DimVisible5 Boolean
DimVisible6 Boolean
DimVisible7 Boolean
DimVisible8 Boolean

OnBeforeCopyJobTaskDimToJobTaskDim

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyJobTaskDimToJobTaskDim(JobNo: Code[20]; JobTaskNo: Code[20]; NewJobNo: Code[20]; NewJobTaskNo: Code[20]; var IsHandled: Boolean)

Parameters

Name Type Description
JobNo Code[20]
JobTaskNo Code[20]
NewJobNo Code[20]
NewJobTaskNo Code[20]
IsHandled Boolean

OnCheckDimValueCombOnBeforeLogError

[IntegrationEvent(False,False)]
local procedure OnCheckDimValueCombOnBeforeLogError(Dim1: Code[20]; Dim1Value: Code[20]; Dim2: Code[20]; Dim2Value: Code[20]; var IsHandled: Boolean)

Parameters

Name Type Description
Dim1 Code[20]
Dim1Value Code[20]
Dim2 Code[20]
Dim2Value Code[20]
IsHandled Boolean

OnCheckDimValueOnBeforeCheckDimValBlocked

[IntegrationEvent(False,False)]
local procedure OnCheckDimValueOnBeforeCheckDimValBlocked(DimCode: Code[20]; DimValCode: Code[20]; var Result: Boolean; var IsHandled: Boolean; var DimensionValue: Record "Dimension Value")

Parameters

Name Type Description
DimCode Code[20]
DimValCode Code[20]
Result Boolean
IsHandled Boolean
DimensionValue Table Microsoft.Finance.Dimension."Dimension Value"

OnAfterSetSourceCode

[IntegrationEvent(False,False)]
local procedure OnAfterSetSourceCode(var SourceCodeSetup: Record "Source Code Setup"; TableID: Integer; var SourceCode: Code[10])

Parameters

Name Type Description
SourceCodeSetup Table Microsoft.Foundation.AuditCodes."Source Code Setup"
TableID Integer
SourceCode Code[10]

OnAllowedDimensionValueConfirm

[IntegrationEvent(False,False)]
local procedure OnAllowedDimensionValueConfirm(var DimensionValue: Record "Dimension Value"; var DefaultDimension: Record "Default Dimension"; var Confirmed: Boolean; var ConfirmHandled: Boolean)

Parameters

Name Type Description
DimensionValue Table Microsoft.Finance.Dimension."Dimension Value"
DefaultDimension Table Microsoft.Finance.Dimension."Default Dimension"
Confirmed Boolean
ConfirmHandled Boolean

OnAfterEditDimensionSet

[IntegrationEvent(False,False)]
local procedure OnAfterEditDimensionSet(var DimSetID: Integer)

Parameters

Name Type Description
DimSetID Integer

OnAfterDefaultDimObjectNoList

[IntegrationEvent(False,False)]
local procedure OnAfterDefaultDimObjectNoList(var TempAllObjWithCaption: Record AllObjWithCaption temporary)

Parameters

Name Type Description
TempAllObjWithCaption Table System.Reflection.AllObjWithCaption

See also