Enquiry Routines PDF
Enquiry Routines PDF
Enquiry Routines PDF
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.
ENQUIRY SUBROUTINES
CONVERSION
BUILD SUBROUTINES SUBROUTINES
Example - O.DATA
Defined in I_ENQUIRY.COMMON
Defined in I_ENQUIRY.COMMON
Gets invoked :
after
The fixed selection has been executed
before
The dynamic conditions specified in the Selection Criteria Box get
executed
Build Routines must have one passed argument(dynamic array) which contains:
Selection
Field Names
Operands
Actual Value
SUBROUTINE E.TRG.BUILD.RTN(ENQ.DATA)
$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_ENQUIRY.COMMON
RETURN
END
Include WORKING.BALANCE
also in the selection fields
Create an enquiry that will list all the LD contract numbers and the
loan amounts.
Field : AMOUNT
SUBROUTINE E.TRG.CONV.RTN
$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_ENQUIRY.COMMON
$INSERT I_F.LD.LOANS.AND.DEPOSITS
$INSERT I_F.CURRENCY
GOSUB INIT
GOSUB PROCESS
RETURN
INIT:
FN.CUR = 'F.CURRENCY'
F.CUR = ''
Y.LD.CURR = R.RECORD<LD.CURRENCY>
R.CUR.REC = ‘’
CALL OPF(FN.CUR,F.CUR)
RETURN
PROCESS:
IF Y.LD.CURR NE LCCY THEN
CALL F.READ(FN.CUR,Y.LD.CURR,R.CUR.REC,F.CUR,LD.ERR1)
O.DATA = R.CUR.REC<EB.CUR.MID.REVAL.RATE,1> * O.DATA
END
RETURN
END