This callwrapper will retrieve the next Batch number, validate the batch number isn't duplicate, and update options with the new next batch number for Check Processing
Required Passed Properties
3-character Company Code
8-character Post Date
Status returned after executing the callwrapper. Use this to confirm that the changes were successful.
5-character Batch Number returned from successful execution of the callwrapper. Batch Number will have the format Knnnn where K is literal and n = digit 0-9.
Returns one of the following:
Success(00)- Next Batch Number will be returned to caller.
Failed(90)- Call failed.
Cancelled(99)- Call was cancelled.
F.Global.Callwrapper.New("Test","Accounting.GetNextBatchNumberCK") F.Global.Callwrapper.SetProperty("Test","CompanyCode","10T") F.Global.Callwrapper.SetProperty("Test","PostDate","12/04/2020") F.Global.CallWrapper.Run("Test") V.Local.sStatus.Declare(String) F.Global.CallWrapper.GetProperty("Test","Status",V.Local.sStatus) F.Global.CallWrapper.GetProperty("Test","BatchNumber",V.Local.sBatchNumber) F.Intrinsic.UI.Msgbox(V.Local.sReturn, "Complete!")
- Core program: GetNextBatchNumberCK