Академический Документы
Профессиональный Документы
Культура Документы
Warning: This document, is protected by copyright law and international treaties. No part of this
document may be reproduced or transmitted in any form or by any means, electronic or mechanical,
for any purpose, without the express written permission of TEMENOS Holdings NV Unauthorized
reproduction or distribution of this presentation or any portion of it, may result in severe civil and
criminal penalties, and will be prosecuted to the maximum Copyright © 2004under
extent possible TEMENOS HOLDINGS
applicable law.” NV
Information in this document is subject to change without notice.
Validation Routine
Input Routine
Authorization Routine
R.OLD(C$SYSDIM)
R.NEW.LAST(C$SYSDIM)
When Browser is used as the front end, field level validations will
take place only if the field is set as a hot field.
These routines get invoked after a user presses the ‘TAB’ key.
Create a version for the Funds Transfer application with the following
fields. As soon as the Debit Account Number is entered the appropriate
currency has to get defaulted in the Currency field. Make the Currency
field a NOINPUT field.
1. Transaction Type
2. Debit Account Number
3. Debit Currency
4. Debit Amount
5. Debit Value Date
6. Credit Account Number
7. Credit Currency
Create a version for the Funds Transfer application with the fields
mentioned in Example 2. Ensure that you make the
DEBIT.CURRENCY field a ‘NOINPUT’ field.
From the extracted record, extract the currency of the account and
display it in the field Debit Currency in the Version.
*Version subroutine that will populate the debit currency based on *the
Debit Account Number.
SUBROUTINE V.TRG.VAL.RTN
$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_F.ACCOUNT
$INSERT I_F.FUNDS.TRANSFER
IF MESSAGE NE ‘VAL’ THEN
Y.ACCT.NO = COMI ; Y.ACCT.CUR = ‘’
FN.ACCOUNT = ‘F.ACCOUNT’ ; F.ACCOUNT = ‘’
CALL OPF(FN.ACCOUNT,F.ACCOUNT)
CALL F.READ(FN.ACCOUNT,Y.ACCT.NO,R.ACCT.REC,F.ACCOUNT,ERR1)
Y.ACCT.CUR = R.ACCT.REC<AC.CURRENCY>
R.NEW(FT.DEBIT.CURRENCY) = Y.ACCT.CUR
CALL REBUILD.SCREEN
END
RETURN
END
Make an entry in the PGM.FILE with the type as ‘S’ and attach it
to the VALIDATION.RTN (prefixed with an ‘@’ symbol) in the
version.
Warning: This document, is protected by copyright law and international treaties. No part of this
document may be reproduced or transmitted in any form or by any means, electronic or mechanical,
for any purpose, without the express written permission of TEMENOS Holdings NV Unauthorized
reproduction or distribution of this presentation or any portion of it, may result in severe civil and
criminal penalties, and will be prosecuted to the maximum Copyright © 2004under
extent possible TEMENOS HOLDINGS
applicable law.” NV
Information in this document is subject to change without notice.
21
Input routines get invoked even when the record is put on hold.
These are dynamic arrays defined in I_COMMON that can hold the
physical field number, multi value and sub value position (of fields)
respectively.
AF = 1
AV = 1
AS = 1
ETEXT = “Error”
CALL STORE.END.ERROR
Will cause the error message to be displayed adjacent to the field ‘1.1.1’.
*Version input routine that checks if the debit and the credit currency
are *equal. Else flashes an error message
SUBROUTINE V.TRG.INP.RTN
$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_F.FUNDS.TRANSFER
IF MESSAGE NE ‘HLD’ THEN
Y.DEBIT.CUR = R.NEW(FT.DEBIT.CURRENCY)
Y.CREDIT.CUR = R.NEW(FT.CREDIT.CURRENCY)
IF Y.DEBIT.CUR NE Y.CREDIT.CUR THEN
AF = FT.DEBIT.CURRENCY ; * Note that the field name
* has been used instead of field number
ETEXT = “Credit Acct Ccy Not Equal To Debit Acc Ccy”
CALL STORE.END.ERROR
END
END
RETURN
END
Warning: This document, is protected by copyright law and international treaties. No part of this
document may be reproduced or transmitted in any form or by any means, electronic or mechanical,
for any purpose, without the express written permission of TEMENOS Holdings NV Unauthorized
reproduction or distribution of this presentation or any portion of it, may result in severe civil and
criminal penalties, and will be prosecuted to the maximum Copyright © 2004under
extent possible TEMENOS HOLDINGS
applicable law.” NV
Information in this document is subject to change without notice.
31
US0010001.C-100069.PRINT.2
Companycode.C-CustomerNo.PRINT.2
Get the street and town country values for the second address through
a local reference field.
Form a record for the DE.ADDRESS file with the short name, name.1,
name.2 (all the above mentioned 3 fields should be extracted from the
customer record being authorized.), street and town country( through
the local reference field)
Write the record formed into the DE.ADDRESS file using the routine
OFS.POST.MESSAGE
Syntax
SUBROUTINE V.TRG.AUTH.RTN
$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_F.CUSTOMER
$INSERT I_F.DE.ADDRESS
*
GOSUB INIT
GOSUB OPENFILES
GOSUB PROCESS
RETURN
*
INIT:
FN.CUS = 'F.CUSTOMER'
F.CUS = ''
Y.ADDRESS = ''
RETURN
OPENFILES:
CALL OPF(FN.CUS,F.CUS)
RETURN
PROCESS:
IF R.OLD(1) = '' THEN ;* If it is a new record being authorised
Y.DE.ADDRESS.ID = ID.COMPANY:'.C-':ID.NEW:'.PRINT.2‘
Y.ADDRESS = R.NEW(EB.CUS.LOCAL.REF)<1,7>
Y.OFS.REC=“DE.ADDRESS/I/PROCESS,TRAIN03/654321,”:Y.DE.ADDRE
SS.ID:”,”:BRANCHNAME=R.NEW(EB.CUS.SHORT.NAME):”,”:DE.ADD.NA
ME.1=R.NEW(EB.CUS.NAME.1):”,”:DE.ADD.NAME.2=R.NEW(EB.CUS.NA
ME.2):”,”:DE.ADD.STREET.ADDRESS= Y.ADDRESS“
OFS.MSG.ID="“
OFS.SOURCE.ID="GCS“
OPTIONS="“
END
RETURN
END