Args args = new Args();
ReportRun report;
Map criteriaMap = new Map(Types::String, Types::String);
// Map criteriaMap = new Map(Types::AnyType);
;
args.name(reportstr(axsd));
// args.caller(this);
criteriaMap.insert("nm","000213");
// criteriaMap.insert("TaxGroup", "Exempt");
args.parmObject(criteriaMap);
args.parm("Called Special");
report = new ReportRun(args);
report.init();
report.run();
To Cancel Deliver Remainder through X++ you can use below code sample. Thanks. static void _CancelDeliverRemainder_Sales(Args _args) { SalesLine SalesLine = SalesLine::find('SO0013', true); ; if (SalesLine) { // Set remaining inventory Qty to zero SalesLine.RemainInventPhysical = 0; // Set remaining physical Qty to zero SalesLine.RemainSalesPhysical = 0; // We have to cancel the SalesLine SalesLine.PurchStatus = PurchStatus::Canceled; SalesLine.update(); ...