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();
 }
 
 
 Facebook
Facebook

 
0 comments:
Post a Comment