Professional Documents
Culture Documents
•Identify the stages where the enquiry routines would get executed
4.Applies dynamic conditions specified in the selection criteria box to the selected list
of IDs and rebuilds the list.
5.For each ID in the list, the corresponding record from the application is read.
Depending on the fields defined in the enquiry, the data is picked up and displayed
from left to right.
2. Subroutines are executed from T24 by an internal call from an application, version
or from the command line.
Subroutines that are attached to the ENQUIRY application are called as Enquiry
Routines. They are used to provide additional functionality to enquiries and to
manipulate data before display in report.
2. The build routine is attached to the field BUILD.ROUTINE in the ENQUIRY record.
• The dynamic array can be any user defined name. The syntax is
ArrayName<FM.VM>. ENQ.DATA is not a common variable but a user defined
variable that has to be passed to the build routine.
The screen shot is the selection criteria screen for an enquiry named ACCOUNT.TRG
based on the ACCOUNT application.
As shown
respective working balance after accepting the category from the user.
For category 1001 - Balance should be in the range zero and 49999
For category 6001 - Balance should be in the range 50000 and 100000
For category greater than 7000 - Balance should be in the range 100000 and 500000
The operator (RG) and the values (based on CATG) are appended similarly to their
respective positions, as shown in the code.
Note that all the Working Balances are within the range 50000 to 100000, which is the
range set for CATEGORY EQ 6001.
2. O.DATA is a common variable that holds the last extracted value in the enquiry.
This is similar to the variable COMI in I_COMMON which holds the last entered
value.
[Note – LD.LOANS.AND.DEPOSITS only stores the Account officer ID. To display the
officer name, do a look up on the DEPT.ACCT.OFFICER table
Extract the account officer ID for the current record being processed, using the
common variable R.RECORD.
O.DATA contains the value of the last field extracted in the current record. In our
example it’s the MIS Dept officer ID. This field is replaced with the name by the code
O.DATA = R.OFFICER<EB.DAO.NAME>