Pages

Banner 468 x 60px

 

Saturday, November 18, 2017

Get LedgerAccountId using x++

0 comments
Get LedgerAccountId using x++ :

void BIT_InsertLedgerDimension()
{
    DimensionValue       dim1,dim2,dim3,dim4,dim5,dim6;
    container            conDimValue;
    MainAccountNum       mainAccountNum;
    RefRecId             ledgerDimension;
    ;
   
    conDimValue = [InventJournalTrans.BIT_MainAccountNum, InventJournalTrans.BIT_MainAccountNum];

    ledgerDimension = AxdDimensionUtil::getLedgerAccountId(conDimValue);     
   
    while select forUpdate InventJournalTrans where InventJournalTrans.BIT_MainAccountNum != ''
    {
        ttsbegin;
        InventJournalTrans.LedgerDimension = ledgerDimension;
        ttsCommit;
    }
    InventJournalTrans.update();
  
 }





















  



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