postTSet Method

Class: TranSet

Description

After you copy all transaction records to the transaction set using the TranSet.copyTran method, you can post the transactions into a TR array using the TranSet.postTSet method. All transaction record objects and all corresponding accounts will be updated as a result of this posting.

In addition to building the TR array, this method builds the A and %A arrays for each deposit and loan object (i.e., account numbers in those objects). After posting completes, this method copies the information in the TR array back to the transaction object for each transaction.

If posting transactions from a batch source (i.e., a source defined in the Source user table), you must include a call to the BCHSOURCE procedure to initialize the batch posting source. An example of a call to this utility follows:

do SOURCE^BCHSOURC(SRCTYP,KEY,UID,BRCD,UCLS,TSDRCID,TSCRCID,ODP)

This call returns the user ID, branch, userclass, and overdraft processing options for the batch posting source. In addition, this procedure returns the rejection handling method, same day retry processing option, maximum number of retries, and valid reasons for retry.

Syntax

transactionObject.postTSet(processingDate,branchCode,qualifier,

tranArray)

Parameters

processingDate

The date on which to post the transaction.

branchCode

A number identifying the branch at which the transaction was posted.

qualifier

One or more qualifiers that identify and handle transaction processing. Valid qualifiers include:

  • IPMODE Input mode (required)

0 = Batch

1 = Online

2 = Store and forward

3 = System-generated

4 = Transaction array (TR)

  • OPTION Processing option (required)

0 = Process transactions, no database update

1 = Do not process transactions, update database

2 = Process transactions, update database

  • UPDTTX Update teller file (optional)

0 = No

1 = Yes

  • EXCHNG Currency exchange (optional)

0 = No

1 = Yes

  • SEQNUM Transaction sequence number (optional)

Transaction sequence number in TR array to process
 

tranArray

Array passed back to the calling program after posting. It contains all the transactions that were processed, including system-generated transactions. The returned array is not an object. The data in the array conforms to the piece assignments of the schema.

Returns

A String.

When Became Available

Profile v6.0

Example

type RecordTTX ttx=Class.new(“RecordTTX”)

// ttx can be a variable or an array

type TranSet ts=Class.new(“TranSet”)

 

set ttx.cid=CID

set ttx.itc=ITC

set ttx.etc=ETC

set ttx.tamt=TAMT

set ttx.efd=%SystemDate

set ttx.tlo=%UserStation

set ttx.tcmt=TCMT

set ttx.cc=CC

if %MCP set ttx.crcd=CRCD

 

set ttx1=ts.copyTran(ttx)

 

set par(“OPTION”)=2 // Process transactions, update database

set par(“IPMODE”)=3 // System-generated

 

do ts.postTSet(TJD,BRCD,.par)

 

*The variables in this example would need to be defined prior to their use.