AX 2012: Open fiscal periods in X++
Views (1599)
Purpose:
The purpose of this document is to describe how we can quickly open fiscal periods through X++.
Development:
static void MAKOpenFiscalPeriods(Args _args)
{
FiscalCalendarPeriod fiscalCalendarPeriod;
LedgerFiscalCalendarPeriod ledgerFiscalCalendarPeriod;
ttsBegin;
//Open fiscal periods
update_recordSet ledgerFiscalCalendarPeriod
setting Status = FiscalPeriodStatus::Open
join fiscalCalendarPeriod
where fiscalCalendarPeriod.RecId == ledgerFiscalCalendarPeriod.FiscalCalendarPeriod
&& fiscalCalendarPeriod.Type == FiscalPeriodType::Operating;
ttsCommit;
}
This was originally posted here.

Like
Report
*This post is locked for comments