Documente Academic
Documente Profesional
Documente Cultură
3. This learning unit is example based. First an example output will be shown then you
will be taught the steps to create the Enquiry. At the end of each section a workshop is
given to test your level of understanding.
To view data from an application , you can do a LIST (L) of all the records. You can also
view a particular record, if you know the record ID using the SEE (S) function. The LONG
LIST (L L) function allows you to specify a selection criteria before the list of records are
displayed to you.
How do you create user defined reports that fetch and display data as you require? You
can use the ENQUIRY application.
T24 allows you to create your own reports, using the application ENQUIRY in T24. An
enquiry is a query that is executed to fetch data from the database and display the results
in a user defined format
In technical terms, an enquiry is a ‘SELECT’ executed in order to fetch data from T24
and the results displayed in a user defined format
2. The example shows CUSTOMER data when you use the LIST (L) function.
Note: When discussing the use of fields in the ENQUIRY application, only
RELEVANT fields are discussed and displayed in the screenshots.
Before designing an enquiry, you must decide on the page layout. Does your report have
a header? How many lines can be displayed per page of the report? The first field
PAGE.SIZE allows you to do this. You will specify the number of lines for the header and
number of lines for the body of the report separated by a comma. In this example four
lines are allocated for the header and nineteen lines are allocated for the report.
The whole idea about creating an enquiry is to extract data from a particular application in
T24. The name of the application must be specified in the field FILE.NAME. In the
example you are creating an enquiry for the CUSTOMER application.
Each column in the report is an extracted field from the application. Each column must
have a header that represents what data is being displayed. This header is mentioned in
the field FIELD.NAME. The OPEARATION field holds the actual field name from the
application that must be displayed.
Tip: If you specify the actual field name from the STANDARD.SELECTION in the field
FIELD.NAME, this value is defaulted in the OPERATION field too. This saves you some
time during enquiry creation.
Note: Columns must be specified in order to display the values. Columns must always be
specified in the correct order, meaning from left to right. The ENQUIRY application
cannot display the output correctly if the columns are all mixed up.
Tip: The values 1,2,3.. are sufficient for the ENQUIRY application to display values in the
browser. For the enquiry to work in the CUI mode as well, you must put the exact spacing
between the columns. For example, 5, 25, 45, 60 and so on.
Value for the LENGTH.MASK field is defaulted by T24. You can adjust the length and
justification of the field using the LENGTH.MASK field . Also the value in the field
SINGLE.MULTI is defaulted by T24 depending on the nature of the field. This field can
hold the value S or M.
What do you think your enquiry will display? The 5 fields mentioned for all records in the
CUSTOMER application, page by page. That is, by default, any enquiry is T24 displays
all records from the application the enquiry is based on. Now what if you don’t want to
see all records - consider a scenario where you want to view all customer records with
SECTOR as 1000. Now where will you specify this selection criteria?
2. When you execute the enquiry, a Dynamic Selection Criteria box appears. This allows
you to specify run time selection criteria based on all fields of the application the enquiry
is based on. You may specify one or more conditions in the selection criteria box to filter
out specific records from the database. The format of the criteria is <Fieldname> <Logical
Operand> <Value>. When you specify multiple conditions, there is a logical AND
between them. Then click on the Find button to execute your enquiry. You will see that
you can specify a selection criteria on any field of the CUSTOMER application. The list of
fields displayed here matches the list of fields in the STANDARD.SELECTION record for
the CUSTOMER application.
3.The enquiry result may consist of more than one page of results depending upon the
number of records selected and the page size of the enquiry. You can use the Previous
Page and the Next Page buttons to navigate between the pages.
1.Create an Enquiry based on the CUSTOMER application in T24 which lists the
following fields - @ID (Customer ID), MNEMONIC, SECTOR, and NATIONALITY
2.Execute the Enquiry to generate the report of customers who belong to SECTOR (One
thousand and one) 1001.
2.Another way of doing this is to use the command line itself while executing the enquiry
itself.
ENQ TRG.ENQ.CUST.DETAILS SECTOR EQ 1001
Here the selection criteria is appended along with the execution request itself.
What will you do if you want to specify the same condition the next time when you
execute the enquiry?
You can use the following command to use the last specified condition,
The keyword word “LAST” instructs the system to use the last selection criteria used.
1,2. Create a report based on the CUSTOMER application in T24 which lists the
following fields @ID (Customer ID), MNEMONIC, SECTOR, NATIONALITY and
RESIDENCE. The header for the first column displayed needs to be ‘Customer Code’.
The enquiry report will have two lines of headers displayed one below the other,
‘Temenos Training’ and ‘Customer Details’ are the two headers.
Value for LENGTH.MASK field is defaulted by T24, yet it can be modified for display purpose.
SECTION - It is not sufficient just to specify the row and column details. You must also use
the field SECTION. Set this to ‘HEADER’ for the text to be displayed in the header of the
enquiry output.
CUS5 Introduction
CUS5 IntroductiontotoEnquiry-R15
Enquiry-R12.03 16
You also need to display “Customer Code” as the header for the @ID field. How do you
display the header for the @ID field ?
FIELD.LBL - Header for a field is specified in the field FIELD.LBL . Header for the @ID
field is specified in FIELD.LBL as ‘Customer Code’. If this field is left blank, value in
FIELD.NAME field will be defaulted.
Authorise your enquiry record and execute to view the results. Ensure that you specify
COLUMN value for all the fields.
2. The column heading for the loan account number field needs to be ‘Loan Id’.
Refer : Enq-WS2_demo.cp
4. The Value for the field SECTOR need to be obtained from the user
at run time. Make this as a mandatory input.
SECTOR is the dynamic selection criteria that must be specified when executing the
enquiry. SECTOR will be part of the list of fields in the dynamic selection box. But we
cannot ensure that the user will enter a criteria before clicking the ‘Find’ button. But the
requirement is to make it mandatory at lunch time. Do you think you can set this up?
When you first saw the dynamic selection criteria box, you noted that all fields of the
application were displayed. When you use this multi-value set in the ENQUIRY
application, only the fields defined here are displayed during run-time. If this multi-value
set is not used, the dynamic selection box lists all fields.
2. You can see customer records with NATIONALITY as US and SECTOR as three
thousand five hundred and five.
2. Value for the field Currency should be obtained from the user at run time
The other task is to select customer records that has RESIDENCE or NATIONALITY as
US. These are the dynamic conditions of your enquiry.
How do you relate the two dynamic conditions? You need records that has either
NATIONALITY or RESIDENCE as US. Therefore relate the two conditions using the ‘OR’
operator. This is specified in the field called REL.NEXT.FIELD. The REL.NEXT.FIELD
provides two options namely AND , OR. Dynamic Selection Fields form a multi value set.
By default all the dynamic selection conditions work with the AND operator. However you
may also use the OR operand to group the dynamic selection conditions.
Specify the other required fields and authorise the enquiry record.
2. You can see the sample output of your enquiry. The enquiry output displays
customers who either belong to SECTOR 1000 or 1001.
2. Either the value for currency has to be supplied or the value for interest rate
has to be supplied And
FIXED.SORT- This field is used to specify fixed sorts for enquiry. Specify the name of
the field that has to be sorted. By default the system sorts in ascending order. To sort the
records in descending order specify DSND along with the field name.
2. When you execute the LIST (L) function on the command line , internally the T24
system invokes the built-in Enquiry of T24.
2. Depending on the structure of the record ID these saved records can be system wide
(available to everyone) or for specific users.
Specify the required selection criteria and the Name for your favourite in this record. In
the above illustration (CATEG 1001 USD) and (CATEG 5001 GBP) are the 2 named
favourites.
As an illustration, launch the default enquiry for customer security using the command
ENQ %CUSTOMER.SECURITY.
A prompt is displayed asking the user to key in a name for your favaourite. Eg.
Depositories in our case.
A user specific favourite can be deleted by clicking on the favourite image shown with a (-
) sign. An important information that we need to understand here is that a system wide
favourite cannot be deleted by a normal user.
4. Ensure that you specify COLUMN values for all the fields in your enquiry.