10.OFS Session 1 - R14
10.OFS Session 1 - R14
1
2
You all would be familiar with the screen shot shown above. And you
might be using other interfaces like Gmail, yahoo etc., to send and
receive mail. But the interesting thing is, let it be any e-mail facility you
use, the format of the message remains same. The whole point is,
interface differs, but the process of sending and receiving mail remains
same.
Secondly , with OFS, it becomes possible for T24 to transact with and
reply to queries from various external channels (or systems). This is
especially handy when we have huge volumes of transaction to be
updated, or when there are systems like ATM switches and other
banking systems requiring a 24/7 connection to T24.
You have seen that OFS messages are requests to T24 . There are 2
types of common requests in T24. Each request follows a particular
syntax which you will learn as you go through this session.
1. One is a transaction request that will create, modify or delete a
record in any table in T24. Simply to say, transaction request is
nothing but DML.
If you want to do a fund transfer, then you require the below mentioned
information:
1. Whether you have rights to access T24 : LOGIN CREDENTIALS
2. Name of the Application and Version : FUNDS.TRANSFER
3. The operation, that you are supposed to perform in T24 : I
4. Data : Debit account no, debit amount, debit currency, amount,
credit Account no, transaction date
In this slide, you can see an example for transaction request and the
syntax for the same.
In the syntax :
User Information -The user credentials using which the enquiry will be
executed.
10
If you just paste the OFS transaction request seen earlier, you will be get a response as shown
above.
TRANSACTION ID - The transaction ID contains either the value supplied for the transaction in
the request or the value that is automatically generated by the T24 table (when no such value
had been supplied in the request).
MESSAGE ID - The Message ID contains the value of the Message ID if it had been supplied in
the request.
SUCCESS / FAILURE INDICATOR - This part of the message indicates the status of the
transaction request processed. OFS returns one of the following values:
1 Successful transaction.
-1 Errors encountered during processing.
-2 Override condition (s) encountered during processing.
-3 T24 server is offline
RETURNED MESSAGE DATA – A successfully processed message will contain all the fields
populated in the transaction as field and value pairs
The structure for the Returned Message Data portion of an OFS transaction response is similar
to that of the request. Each field in this is further subdivided in to 4 different parts. Namely:
Field Name –The field name is as in the STANDARD.SELECTION record of the table.
Multi value number –the multi value field number is returned.
Sub value number –the sub value field number is returned.
Field content – the contents of the field
12
The response format is slightly different when there are errors. When an
attempt to store data in a field has failed, the error message is returned
in place of field content
13
That means, if you want to fetch data from T24, you need to know
1. Whether you have rights to access T24
2. Name of the Application that executes the report
3. The name of the report
4. Conditions
14
If you want get the list of currency in T24, then you require the below
mentioned information:
15
In this slide, you can see an example for enquiry request and the syntax
for the same.
In this syntax:
16
If you just paste the OFS enquiry request seen earlier, you will get a
response as shown above.
17
In this slide, you can see an example for enquiry request and the syntax
for the same.
In this syntax:
18
OFS message can be processed in 3 different ways.
1. The first way we can use OFS is in Batch processing. Batch
processing , as the name implies, is used for handling multiple
messages which may be processed offline. This is useful for handling
offline requests from third party systems. The mode used is obviously
BATCH .
2. The second way that we use OFS is Telnet mode, where An external
system or user connects directly to OFS or to OFS through TCS or
TOCF.
3. The last way in which we can use OFS is Session mode. Online
processing signifies that is a request is sent , processed immediately
and the response sent back to the requestor. A user connects to the
T24 system using Browser. In this case SESSION mode is used.
You will now learn about processing OFS message using telnet and
batch modes in detail.
19
The first step is to run OFS message is to create a record in
OFS.SOURCE table. OFS.SOURCE contains the parameters for
setting up a OFS connection into T24. The important fields in this
application are:
20
The Telnet mode was used for setting up a direct connection to T24 ,
usually from a third party system, via a live TELNET link / connection. It
used a Operating System level user id and password to gain Telnet
access to the T24 server. Once the connection was established, the
third party system would send an OFS request via the open connection
and wait for the response.
Then you have to use the program tSS to talk to T24 with the
OFS.SOURCE record ID.
22
23
25
26
27
1. No
2. Yes
3. OFS.SOURCE
4. Batch and Telnet mode
5. When there are no headers
29
30