VARIANTE

Description

This action is used in the OBJects with variants. It is called for each active window for the OBJect and for each user with access rights (no access code or execution right on the access code for the window).

OBJect type

Simple, Grid, Combined

Transaction

No

Use

It is used to prevent the display of a window (variant) in the selection window by setting the variable OK = 0.

Example : SUBSOHA   sales orders

In this action, for each window associated with an OBJect, the parameterization of the entry transaction is read. For each of them, the tests check if the entry transaction is active and the parameterized category in this transaction is coherent with the order to be displayed.

$VARIANTE
# Is the transaction usable ?
If clalev ([F:SLT])=0 Local File SALTRS [SLT] Endif
Read [SLT]SLT0=2;[F:AWI]TRN
If fstat
OK = 0
Elsif [F:SLT]ENAFLG<>2 | (GORDCAT <> 4 & [F:SLT]ORDCAT <> 4 & [F:SLT]ORDCAT <> GORDCAT)
OK = 0
Endif
Return

Associated actions

 Home page link

DEFTRANS

 

VARIANTE

 Home page link

SETTRANS