Thursday, January 19, 2017

Get Caller child class name in Parent class ax 2012

//How to get Caller child class name in Parent class ax 2012

Class - > Test // Parent class
                  Method - > Test - get(Type _type = type::none)
                         //To differentiate caller class use _type value

Class - > TestTrans1 extends Test // Child Class 1
                  method - > TestTrans1 - get(Type _type = type::test1)
                             code : super(_type)

Class - > TestTrans2 extends Test // Child Class 2
                  method - > TestTrans2 - get(Type _type = type::test2)
                             code : super(_type)

Tuesday, January 17, 2017

Viewing financial impact of Ledger Account before Posting journal in ax 2012

// Viewing financial Impact of Ledger Account before Posting journal in ax 2012

Step 1:
\AOT\Menu Items\Display\LedgerTransPreview_RU
Add Country region code in to country region Properties of Menu item

Step 2:
\AOT\Data Dictionary\Tables\TmpLedgerTransPreview_RU
Add Country region code in to country region Properties of Table

Step 3:
\General Ledger\Area Page\Journal\General journal\
\Accounts Payable\Area Page\Journal\Payment journal\
\Accounts Payable\Area Page\Journal\Invoice journal\
\Accounts Receivable\Area Page\Journal\Payment journal\
\Accounts Receivable\Area Page\Journal\Invoice journal\

Action pane\Post\Preview journal Transaction

Monday, January 16, 2017

Encumbrance Setup Ax 2012

Encumbrance Setup

Budget
Encumbrance (Committed accounting)

Note: Encumbrance configuration key must be enable for this process
Step 1:
Budget --> Set up - > Budget Control -- > Budget Control configuration
(Purchase Requisition and Purchase order need to enable as per requirement)
Step 2:
GL -- > Set up -- > Parameters -- > ledger -> (enable Use posting definition and Encumbrance /Pre encumbrance)
Step 3:
GL -- > Set up -- > Posting -- > Posting Definitions
Step 4:
GL -- > Set up -- > Posting -- > Transaction Posting definitions

(Purchase Requisition, Purchase order, vendor Invoice as per requirement)

Adding new Financial Dimension List in ax 2012

// Adding new Financial Dimension List for Customize Table in ax 2012

//Need to add new Relation in customize Table
//New Relation
//Relation Table DimensionAttributeValueset
//CustomizeTable.DefaultDimension ==  DimensionAttributeValueset.RecId

Step 1:
Create New View - DimAttribute<TableName>
Step 2:
Label name
Step 3:
View Data source name - Backing Entity
Step 4:
Add fields in View
1) key - RecId
2) Value - Unique field Id
3) Name - Name field
Step 5:
Clear All dimension cache scope in ax job
DimensionCache::clearAllScopes();

//Close and reopen ax application

// Now Newly mapped existing dimension list is applicable to select in Financial dimension master and Account structure


Copy Markup charges while posting purchase invoice using X++

 Copy Markup charges while posting purchase invoice using X++ Class: Important: Code logic is just for Reference.  New class => Duplicate...