Professional Documents
Culture Documents
Version Routines: Technical Courses
Version Routines: Technical Courses
Session 1
• Introduction & Validation Routine
Session 2
• Workshop
Session 3
• Input Routine & Authorisation Routine
Session 4
• Workshop
Session 1
• Check Record Routine
Session 2
• ID Routine
Session 3
• Auto Field Routine
Session 4
• Workshop
Session 1
• Before Auth Routine & After Unauth Routine
Session 2
• Version Control
Session 3
• Updating Local reference fields using routines
Session 4
• Workshop
ID.NEW
ID.OLD
ID.NEW.LAST
R.NEW
R.OLD
R.NEW.LAST
• Available in I_COMMON
Defined in I_COMMON
Dynamic array
For unauthorized record - ID of the unauthorized record is
held
Defined in I_COMMON
Dimensioned array
Consists of 500 dynamic arrays
Holds the currently opened record (If the record is
unauthorized)
Definition in I_COMMON
• DIM R.NEW.LAST(C$SYSDIM)
Defined in I_COMMON
Dynamic array
For authorized record
• Holds the ID of the authorized record
Enables to check if the current record is authorized
Defined in I_COMMON
Dimensioned array
Consists of 500 dynamic arrays
Holds the current authorized record (if any)
Holds the actual live record (If it exists)
Definition in I_COMMON
• DIM R.OLD(C$SYSDIM)
Global variable
Defined in I_COMMON file
Contains the last entered value in any application/version
Validation Routine
Input Routine
Authorization Routine
Auto Field Routine
Id Routine
Check Record Routine
After unauth Routine
Before Auth Routine
Entry in PGM.FILE
Entry in EB.API
• Currency
• HOT.VALIDATE
• Category
• Currency
• Mnemonic
Entry in PGM.FILE
Entry in EB.API
Entry in PGM.FILE
Entry in EB.API
Why ID routine?
When ID Routine is called?
Where do we Attach the routine?
Mandatory Prerequisites.
How to Create ID Routines – Scenario.
Entry in PGM.FILE
Entry in EB.API
Write a version routine that will check and not allow ID nos.
less than auto generated FT ID for the new FT.
Create a version for customer application when a new
customer is created and an ID is given it should be prefixed
with 'CU'.
Entry in PGM.FILE
Entry in EB.API
Common variable
Defined in I_COMMON
Contains the name of the currently opened version.
• Example : CUSTOMER,INPUT
– APPLICATION : CUSTOMER
– PGM.VERSION :,INPUT
Common variable.
Defined in I_COMMON
Any input that a user wishes to execute from the command
line.
• Example
Common variable.
Defined in I_COMMON
Contains the function that is being currently chosen by the
user.
Entry in PGM.FILE
Entry in EB.API
EXC.INC.RTN
• ‘Yes’
– Routines specified in VERSION.CONTRL will be
invoked.
• ‘No’ or ‘Blank’ – Routines wont be invoked.
VERSION.TYPE
• Id of the VERSION.CONTROL application