Codeunit 1100 "Cost Account Mgt"
Base Application · Microsoft.CostAccounting.Setup
Across versions
- BC23-24present
- BC251 events added
- BC26-30unchanged
Neighbourhood 6 connected objects and pages
Base Application · Microsoft.CostAccounting.Setup · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Permissions | TableData “G/L Account” = rm, TableData “G/L Entry” = rm, TableData Dimension = r, TableData “Cost Entry” = rimd, TableData “Cost Center” = r, TableData “Cost Object” = r |
Events published
OnAfterGetCostTypesFromChartDirect()(integration)OnAfterUpdateCostTypeFromGLAcc(var CostType: Record "Cost Type"; var GLAcc: Record "G/L Account"; var xGLAcc: Record "G/L Account"; CallingTrigger: Option OnInsert,OnModify,,OnRename)(integration)OnBeforeCopyDimValueToCostCenter(DimValue: Record "Dimension Value"; var CostCenter: Record "Cost Center"; var IsHandled: Boolean)(integration)OnBeforeCopyDimValueToCostObject(DimValue: Record "Dimension Value"; var CostObject: Record "Cost Object"; var IsHandled: Boolean)(integration)OnBeforeGetCostTypesFromChartOfAccount(var IsHandled: Boolean)(integration)OnBeforeGetCostCenterCodeFromDimSet(DimSetID: Integer; var Result: Code[20]; var IsHandled: Boolean)(integration)OnBeforeGetCostObjectCodeFromDimSet(DimSetID: Integer; var Result: Code[20]; var IsHandled: Boolean)(integration)OnGetCostTypesFromChartDirectOnBeforeCostTypeInsert(var GLAccount: Record "G/L Account"; var CostType: Record "Cost Type"; var CostTypeExists: Boolean)(integration)OnGetCostTypeOnAfterSetFilters(var GLAccount: Record "G/L Account"; var CostType: Record "Cost Type")(integration)OnGetCostTypeOnAfterCostTypeSetFilter(var CostType: Record "Cost Type")(integration)OnLinkCostTypesToGLAccountsOnAfterSetFilters(var GLAccount: Record "G/L Account"; var CostType: Record "Cost Type")(integration)OnLinkCostTypesToGLAccountsOnAfterCostTypeSetFilter(var CostType: Record "Cost Type")(integration)OnAfterShouldNotUpdateCostTypeFromGLAcc(var GLAccount: Record "G/L Account"; var xGLAccount: Record "G/L Account"; var CostAccSetup: Record "Cost Accounting Setup"; CallingTrigger: Option OnInsert,OnModify,,OnRename; var ShouldNotUpdate: Boolean)(integration)OnUpdateCostCenterFromDimOnBeforeMessage(var IsHandled: Boolean)(integration)OnUpdateCostObjectFromDimOnBeforeMessage(var IsHandled: Boolean)(integration)OnGetCostTypesFromChartDirectOnAfterSetFilters(var GLAccount: Record "G/L Account")(integration)OnAfterCopyDimValueToCostObject(DimValue: Record "Dimension Value"; var CostObject: Record "Cost Object")(integration)OnIsGLAccNoFirstFromRangeOnAfterGLAccSetFilter(var CostType: Record "Cost Type"; var GLAccountCheck: Record "G/L Account")(integration)OnUpdateCostTypeFromGLAccOnInsertOrModifyCostTypeBeforeModify(var CostType: Record "Cost Type")(integration)OnUpdateCostTypeFromGLAccOnRenameCostTypeBeforeModify(var CostType: Record "Cost Type")(integration)OnBeforeShouldNotUpdateCostTypeFromGLAcc(var GLAccount: Record "G/L Account"; var xGLAccount: Record "G/L Account"; var CostAccSetup: Record "Cost Accounting Setup"; CallingTrigger: Option OnInsert,OnModify,,OnRename; var ShouldNotUpdate: Boolean; var IsHandled: Boolean)+ BC25 (integration)
Procedures
GetCostTypesFromChartOfAccount()GetCostTypesFromChartDirect()ConfirmUpdate(CallingTrigger: Option OnInsert,OnModify,,OnRename; TableCaption2: Text[80]; Value: Code[20]): BooleanUpdateCostTypeFromGLAcc(var GLAcc: Record "G/L Account"; var xGLAcc: Record "G/L Account"; CallingTrigger: Option OnInsert,OnModify,,OnRename)UpdateCostCenterFromDim(var DimValue: Record "Dimension Value"; var xDimValue: Record "Dimension Value"; CallingTrigger: Option OnInsert,OnModify,,OnRename)UpdateCostObjectFromDim(var DimValue: Record "Dimension Value"; var xDimValue: Record "Dimension Value"; CallingTrigger: Option OnInsert,OnModify,,OnRename)UpdateCostTypeFromDefaultDimension(var DefaultDim: Record "Default Dimension"; var GLAcc: Record "G/L Account"; CallingTrigger: Option OnInsert,OnModify,OnDelete)ConfirmIndentCostTypes()IndentCostTypes(ShowMessage: Boolean)LinkCostTypesToGLAccountsYN()LinkCostTypesToGLAccounts()CreateCostCenters()IndentCostCentersYN()IndentCostCenters()CreateCostObjects()IndentCostObjectsYN()IndentCostObjects()CheckValidCCAndCOInGLEntry(DimSetID: Integer)GetCostCenterCodeFromDimSet(DimSetID: Integer): Code[20]GetCostCenterCodeFromDefDim(TableID: Integer; No: Code[20]): Code[20]CostCenterExists(CostCenterCode: Code[20]): BooleanCostCenterExistsAsDimValue(CostCenterCode: Code[20]): BooleanLookupCostCenterFromDimValue(var CostCenterCode: Code[20])GetCostObjectCodeFromDimSet(DimSetID: Integer): Code[20]GetCostObjectCodeFromDefDim(TableID: Integer; No: Code[20]): Code[20]CostObjectExists(CostObjectCode: Code[20]): BooleanCostObjectExistsAsDimValue(CostObjectCode: Code[20]): BooleanLookupCostObjectFromDimValue(var COstObjectCode: Code[20])InsertCostBudgetRegister(CostBudgetEntryNo: Integer; CostBudgetName: Code[10]; CostBudgetAmount: Decimal): IntegerUpdateCostBudgetRegister(CostBudgetRegNo: Integer; CostBudgetEntryNo: Integer; CostBudgetAmount: Decimal)IsGLAccNoFirstFromRange(CostType: Record "Cost Type"; GLAccNo: Code[20]): BooleanGetCostType(GLAccNo: Code[20]; var CostTypeExists: Boolean)OpenDimValueListFiltered(FieldNo: Integer)
Plus 9 local procedures.
Triggers
OnRun
Called by
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 1105 “Transfer GL Entries to CA” (5 calls:
GetCostCenterCode → GetCostCenterCodeFromDimSet,GetCostObjectCode → GetCostObjectCodeFromDimSet,InsertCostJournalLine → CostCenterExists, …) - Table 1109 “Cost Budget Entry” (3 calls:
HandleCostBudgetRegister → InsertCostBudgetRegister,HandleCostBudgetRegister → UpdateCostBudgetRegister,OnModify → UpdateCostBudgetRegister) - Table 15 “G/L Account” (3 calls:
OnInsert → UpdateCostTypeFromGLAcc,OnModify → UpdateCostTypeFromGLAcc,OnRename → UpdateCostTypeFromGLAcc) - Table 349 “Dimension Value” (2 calls:
UpdateCostAccFromDim → UpdateCostCenterFromDim,UpdateCostAccFromDim → UpdateCostObjectFromDim) - Codeunit 11 “Gen. Jnl.-Check Line” (1 call:
RunCheck → CheckValidCCAndCOInGLEntry) - Codeunit 408 “DimensionManagement” (1 call:
UpdateCostType → UpdateCostTypeFromDefaultDimension)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Cost Account Mgt"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.