int seconds = 10;
int i,j,k;
;
j = 100;
k = 200;
print 'a';
pause;
//info(strfmt("%1",j));
i = sleep(seconds*1000); // sleep time is in milliseconds print "job
slept for " + int2str(i/1000) + " seconds"; pause;
print 'b';
pause;
//info(strfmt("%1",k));
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(); ...