ax 2012 purchase order posting classes

ax 2012 purchase order posting class

confirmation-purchpurchorderjouranlcreate

reciptlist-purchreciptlistjournalpost

packingslip-purchpackingslipjournalpost

invoice-purchinvoicejournalpost

these are posting class will hit while posting your po with confirmation,receipt list,packing,invoice

thnks

For more information go through the white paper ‘Using_the_refactored_Formletter_framework_AX2012’

http://www.microsoft.com/en-us/download/details.aspx?id=20864

where the Po Confimation Update and data insert in vendPurchOrderjour table?

\Classes\PurchPurchOrderJournalCreate\createJournalHeader

hi,

i create one table "ExemptionPurchRefernce ", when i confim the PO automatically insert the PurcTable Datas insert into My table,

i try these code but it should not insert

Note: My code in Bold,

protected void initJournalHeader()
{
ExemptionPurchRefernce exemptionPurchRefernce;
//ExemptionTable exem;
[journalNumber, voucher] = this.getNumAndVoucher();

vendPurchOrderJour.clear();
vendPurchOrderJour.initValue();

vendPurchOrderJour.ParmId = purchParmUpdate.ParmId;
vendPurchOrderJour.PurchaseOrderId = this.getJournalNumber();
vendPurchOrderJour.PurchaseOrderVoucher = this.getVoucher();
vendPurchOrderJour.PurchOrderDate = this.updateDate();

if (!purchTable.selectForUpdate())
{
purchTable = PurchTable::findRecId(purchTable.RecId, true);
}

if (this.proforma())
{
VersioningPurchaseOrder::newPurchaseOrder(purchTable).createApprovedVersion();
}
else
{
VersioningPurchaseOrder::newPurchaseOrder(purchTable).confirm();
}

vendPurchOrderJour.PurchTableVersion = PurchTableVersion::findLatest(purchTable.PurchId, purchTable.DataAreaId).RecId;
vendPurchOrderJour.initFromPurchTable(purchTable);

vendPurchOrderJour.setDocNum(purchTable);

vendPurchOrderJour.InterCompanyPosted = this.parmInterCompanyPosted();

ttsBegin;
exemptionPurchRefernce.PurchOrderNo = purchTable.PurchId;
exemptionPurchRefernce.VendorAccount = purchTable.OrderAccount;
exemptionPurchRefernce.VendorName = purchTable.PurchName;
exemptionPurchRefernce.VendorCurrency = VendTable::find(purchTable.OrderAccount).Currency;
exemptionPurchRefernce.Status = ExemptionStatus::Reserved;
exemptionPurchRefernce.insert();
ttsCommit;
}

hi ,

is u r debugger is getting hitting ??

thnks,

srikanth.

This code will execute in IL, you should generate an incremental CIL inorder to have your changes effected.

HI,

No debugger is not hitting …

ramanujam

HI ,

GO to Tools >Option> developement > uncheck the execute busniess opertaion in cIL

IT IS A TEMPORARY SOLUTION , OTHER WISE U NEED TO RUN THE CIL COMPILER AND U SHOULD NT GET ANY ERROR

THAT TIME ONLY U R debuuger will HIT

THNKS

SRIKANTH

Thanks,

It will work