Correct way to handle errors in Temenos T24 version AUTH.ROUTINE

6.7k views Asked by At

I am writing Temenos T24 VERSION (input screen) authorisation routine (AUTH.ROUTINE) to do some processing and I need authorisation to stop in case of error. Here is how I have written the error handling:

AF=1; AV=1; AS=1
ETEXT = "Some error message"
CALL STORE.END.ERROR
MESSAGE = "ERROR"

Such error handling displays the error message in field 1, multi-value 1, sub-value 1, and does not allow to continue. However the changes to the record itself are already committed to the database.

What is the correct way to stop authorisation in version AUTH.ROUTINE ?

3

There are 3 answers

0
Herin On BEST ANSWER

First thing to perform any check of the field level then better to use Validation Rtn as it will be call before authorize routine is triggered.

Now i come to your issue why it updates the field values even when it throws error is because Authroise routine gets executed after F.WRITE is being performed to the file in order to avoid such situation you need to write BeforeAuth routine as it will also get trigger at Authorise stage but before F.Write is being executed so your purpose will be served i.e in case of error data wont be updated in the table.

0
GibboP On

'E' is the common variable for setting errors at authorization time.

E = "Some Error Message" V$ERROR = @TRUE ;* makes browser bomb out and closes the record with no save

T24 core processing then handles the 'E' being set, not need to CALL STORE.END.ERROR

0
masterl On

You should not perform error checks at the AUTH.ROUTINE stage as these will be ignored. At that point it is expected that all validations and cross-validations have been done and passed.

Auth routines are usually for post-commit processing