Pages

Banner 468 x 60px

 

Tuesday, January 6, 2015

While Select forupdate from 2 different Table AX

0 comments
static void forupdate(Args _args)
{
    InventTable             _inventTable;
    InventItemGroupItem     _inventItemGroupItem;   
    ItemGroupId             _ItemGroupId = _inventItemGroupItem.ItemGroupId ;   
   
   
    ttsBegin;
    while select forUpdate _inventTable
        exists join _inventItemGroupItem
            where _inventItemGroupItem.ItemGroupId == "WIP" && _inventTable.TECIsOverideInvTransParam == NoYescombo::Yes
    {
        _inventTable.TECIsOverideInvTransParam = NoYesCombo::No;
        _InventTable.update();
    } 
    ttsCommit;
   

}

Regards,
Tyo

0 comments:

A financial dimension value is based on the record and has been used on a transaction. You cannot delete the record

  SOLUTION delete in table DimensionAttributeLevelValue base on Bank Account  :  and Delete the Bank Account FINISH