LedgerAllocationProcessReqByBudgetPlan.createSpreadEvenDestinations Method [AX 2012]
Creates the destination BudgetPlanLine table buffers in the case where the allocation method is Spread Even and Source BudgetPlanLine table record's main account, dimensions or both are to be used to create the LedgerDimenison field of destination BudgetPlanLine table buffers.
Syntax
protected void createSpreadEvenDestinations(
RecId _ledgerDimensionId,
DimensionDefault _dimensionDefault,
boolean _usingSourceAccounts,
boolean _usingSourceDimensions)
Run On
Called
Parameters
- _ledgerDimensionId
Type: RecId Extended Data Type
The record ID of the DimensionAttributeValueCombination table.
- _dimensionDefault
Type: DimensionDefault Extended Data Type
The record ID of the DimensionAttributeValueSet table.
- _usingSourceAccounts
Type: boolean
true when source BudgetPlanLine table record's main account needs to be used; otherwise false.
- _usingSourceDimensions
Type: boolean
true when source BudgetPlanLine table record's dimension(s) needs to be used; otherwise false.
Remarks
This method is similar to LedgerAllocationProcessRequest class createSpreadEvenDestinations method.LedgerAllocationProcessRequest class uses LedgerAllocationTmpSource table to store the GeneralJournalAccountEntry table source records. It also breaks the GeneralJournalAccountEntry table LedgerDimension field storing Main Account in the LedgerAllocationTmpSource table LedgerDimension field and rest of the dimemsion in the GeneralJournalAccountEntry table DefaultDimension field.
In LedgerAllocationProcessReqByBudgetPlan class this information is stored in setLedgerDimension set, setAccountset and setDimension set and retrieved accordingly.