Loading ...
Loading ...
Loading ...
T24 Application Development
Validation (.VALIDATE)
This section will be performed only when function key F5 has been entered and V$FUNCTION is 'I' or 'C'.
This should contain all the code required to fully validate the record being input or changed. R.NEW
will contain the record as input or amended during the current transaction, R.NEW.LAST will hold the
record as it was before any input or changes were made and R.OLD will contain the record as it
currently stands on the live file.
Fields in error can be flagged with a corresponding error message by calling STORE.END.ERROR
with AF, AV and AS set to define the offending field and ETEXT to the message, a key to the
EB.ERROR application. The section would normally process all the fields of the record so that the
user can see all errors in one attempt.
However, some cross-validation will make it futile checking further fields if related fields are in error.
The decision on how to handle the cross-validation must depend on the particular application.
Be aware that this routine will be invoked for DELETE and REVERSE as well. Check
V$FUNCTION to determine what is being invoked.
You must NEVER update files in this routine.
Override Processing (.OVERRIDES)
Fields that require overrides (do not embed this in the .VALIDATE routine) should be analysed in this
subroutine. Any override messages should be displayed by calling STORE.OVERRIDE(CURR.NO)
and setting TEXT to the message (do not modify the value of CURR.NO); text should be set as a key
to a record in the OVERRIDE application. If TEXT is returned as NO, then exit the subroutine
immediately. The subroutine should initialise the override fields by calling STORE.OVERRIDE with
CURR.NO set to zero at the start of the subroutine.
Processing (.PROCESS)
This section should contain coding to perform processing which is to be done before the record is written
to the unauthorised file. It will be executed when V$FUNCTION is D, R, C or I and the .VALIDATE routine
has performed successfully. Typical use of this section would be to make related updates to other files,
call accounting, etc.
Authorisation (.AUTHORISE)
This section is used for any special processing required before the live record is written. It is normally
used to invoke accounting in authorisation mode and to handle the authorisation of a reversal.
Where there are multiple authorisations, this routine will be called multiple times. This routine
is also invoked during the authorisation of a reversal. To determine the real action,
interrogate the RECORD.STATUS.
TEMENOS T24 User Guide Page 21 of 34
Loading ...
Loading ...
Loading ...