ReleaseUpdateDB60_Vend.updateReasonCodeReferences 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_Vend

Method

updateReasonCodeReferences

Description

Updates reason code references in the VendRFQJour, purchRFQTable, purchRFQLine, and vendRFQTrans tables.

Affected Modules and Tables

Affected Modules

Accounts payable

Affected Tables

VendRFQJour

VendRFQTrans

PurchRFQTable

PurchRFQLine

ReasonTableRef

Remarks

The input parameters are the reason code, a comment and the new reason code. This method processes the VendRFQJour, purchRFQTable, PurchRFQLine, and VendRFQTrans tables as follows. Records where the reason code exists and the reason reference field is zero will be selected. A record will be inserted into the ReasonTableRef table with the new reason ID and the comment. The new RecId value from the ReasonTableRef table will be used to update the reason reference field.

Data Migration Section

From Table: PurchRFQReasonCode

To Table: ReasonTable

New Tables or Fields

Table

Field

Extended Data Type

-or- Base Enum

VendRFQJour

ReasonRef

RecId

VendRFQTrans

ReasonRef

RecId

PurchRFQTable

ReasonRef

RecId

PurchRFQLine

ReasonRef

RecId