Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

How to post financial dimensions against customer account?

$
0
0

In AX2009 you could post financial dimensions against a customer account.

ledgerJournalTrans.AccountNum    = glAccountNum;
ledgerJournalTrans.AccountType   = this.GeneralJournal_GetAccountType(glAccountType); //CUST
ledgerJournalTrans.Dimension[i + 1] = dimensionValue;

In AX2012 we discovered the following code. But this API does not specify dimensions.

RecId result;
result = AxdDimensionUtil::getMultiTypeAccountId(enumName2Id( "LedgerJournalACType" ), accountType ,[accountDisplayValue,account]);

How to specify financial dimensions for the customer?

For example when we post to main accounts we can specify in the container a number of dimension atributes and values. These are stored in dimension list and get appended to the dimension container. How do we do this for posting to CUST and customer account number? Thanks very much to who can provide some direction here!!

dimensions = [accountDisplayValue, account,dimensionCount];  // the count is how many dimension AVP to follow

iterator = new ListIterator(dimensionList);

 
while (iterator.more())

{

v = iterator.value();

dimensionName = conPeek(v,1);

valueCode = conPeek(v,2);

dimensions += [dimensionName, valueCode];   // this is where the dimension AVP are appended

iterator.next();

}

result = AxdDimensionUtil::getLedgerAccountId(dimensions);


Viewing all articles
Browse latest Browse all 73760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>