Skip to main content

Posts

Create General Journal in axapta 2012 by code

To Create General Journal entries in axapta 2012 by code you can try following code statements in job and can see in whether journal is created in General journal under chart up account menu. AxLedgerJournalTable LedgerjournalTable; AxLedgerJournalTrans LedgerjournalTrans; container AccountSer; container OffsetAccountSer; ; LedgerjournalTable = new AxLedgerJournalTable(); LedgerjournalTrans = new AxLedgerJournalTrans(); LedgerjournalTable.parmJournalName("JV"); LedgerjournalTable.save(); LedgerjournalTrans.parmJournalNum(journalTable.ledgerJournalTable().JournalNum); LedgerjournalTrans.parmTransDate(systemDateGet()); LedgerjournalTrans.parmAccountType(LedgerJournalACType::Ledger); AccountSer = ["abc101", "abc102", 0]; LedgerjournalTrans.parmLedgerDimension(AxdDimensionUtil::getLedgerAccountId(AccountSer)); LedgerjournalTrans.parmAmountCurDebit(2000); OffsetAc

Download Support for previous POS version in Dynamics AX 2012 R2 pdf

This is a good link to Download document for  Support for previous POS version in Dynamics AX 2012 R2 in  pdf format. Microsoft Dynamics AX 2012 R2 White Paper: Support for Previous POS Versions This document describes how to enable previous versions of Retail Point of Sale (POS) to exchange data with Microsoft Dynamics AX 2012 R2.

Resize an image in AX 2012 using Batch functionality

How To re size an image in AX 2012 using Batch functionality. If You have thousands of images and want to re size them through batch.  You need to use System.Drawing.Image::FromFile(imagePath) method to get the image object. You can use the "resize" method in "image" class image img = new image(); ; img.loadImage("_filename"); img.resize(200,200, interpolationmode::InterpolationModeDefault);

Error Cannot create a record in Purchase orders in axapta 2012

If you are facing this troubleshooting in ax 2012 You may face  the below error while creating new Purchase order in AX 2012. If This error is coming in only one company and you are not able to create PO in same company. ... Cannot create a record in Purchase orders (PurchTable). Purchase order: COM-0000XX, COM-00XXXX. The record already exists. Microsoft.Dynamics.Ax.Xpp.DuplicateKeyException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.DuplicateKeyException' was thrown. at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue) at Microsoft.Dynamics.Ax.MSIL.cqlCursorIL.insert(IntPtr table) at Microsoft.Dynamics.Ax.Xpp.Common.doInsert() at Dynamics.Ax.Application.PurchTableType.Insert(Boolean _interCompanySilent, Date _accountingDate, Boolean , Boolean ) in PurchTableType.insert.xpp:line 21 at Dynamics.Ax.Application.PurchTable.Insert(Boolean _interCompanySilent, Date _accountingDate, Boolean , Boolean ) in PurchTable.insert.xpp:li

Three tier Extended architecture in axapta

THREE TIER ARCHITECTURE EXTENDED ARCHITECTURE