ReleaseUpdateDB60_Ledger.updateLedgerTableStatus_ES Upgrade Script

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Class

ReleaseUpdateDB60_Ledger

Method

updateLedgerTableStatus_ES

Description

Updates ActiveFrom and ActiveTo fields in the DimensionAttributeValue table.

Affected Modules and Tables

Affected Modules

General ledger

Affected Tables

DimensionAttributeValue

Remarks

The Status field of the LedgerTable table is renamed to the DEL_Status_ES field and the DimensionAttributeValue table records are modified for accounts with the corresponding status of old, change, or new. If the value of the Status field of the LedgerTable is old or change, then the value of the ActiveTo field will be set to December 31, 2007. If the value of the Status field of the LedgerTable is new, then the value of the ActiveFrom field will be set to January 1, 2008. If the value of the Status field of the LedgerTable is blank, then no action is taken.