Description myString = "A X++ string";
Counter myInteger = 100;
Qty myReal = 12.25;
TransDate myDate = str2Date('12-31-2005', 213);
TimeHour24 myTime = str2Time('14:05');
NoYesId myEnum = NoYes::Yes;
PackedQueryRun myContainer = ['12', 'test', 'tada'];
AnyType myAnyType = systemdateget();
;
print myString;
print myInteger;
print myReal;
print myDate;
print myTime;
print myEnum;
print conPeek(myContainer, 1);
print myAnyType;
pause;
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(); ...