X++ Code to cancel Sales order
static void
DMSSOCancel(Args _args)
{
SalesTable salestable;
SalesUpdateRemain SalesUpdateRemain;
changeCompany('f898')
{
salestable = salestable::find("F898-000460");
SalesUpdateRemain::cancelRemainderOnOpenSalesLines(salestable);
}
}
X++ Code to cancel Purchase order
static void
DMSCancelPO(Args _args)
{
PurchFormLetter Purch;
PurchTable PurchTable;
PurchCancel PurchCancel ;
changeCompany("f898")
{
PurchTable =PurchTable::find("F898-000079");
PurchCancel = PurchCancel::construct();
PurchCancel .parmPurchTable(PurchTable);
PurchCancel .run();
}
}
Do you have, or can you help me with, the X++ code for cancelling Purchase Requisition? I need to create a custom functionality to cancel purchase requisition that also logs the reason for cancellation.
ReplyDeletePurchParmTable method is protected in D365fo . i'm unable to use it in my class .. any suggestions please asap
ReplyDelete