Accounting.GetNextBatchNumberCK Callwrapper

From GAB Help
Jump to: navigation, search

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

Company Code

3-character Company Code

Post Date

8-character Post Date

Returned Properties

Status

Status returned after executing the callwrapper. Use this to confirm that the changes were successful.

Batch Number

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.

Example

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!")


Technical Information

  • Core program: GetNextBatchNumberCK