U@AUSECSYS

U@AUSECSYS verifies that the current user has security access to this accounting unit. If the current user is secured from this accounting unit in the specified company and system code, E@AUSECURED is set to Y; otherwise, it is set to N.

For a discussion of security processing, see the Lawson Administration: Resources and Security guide.

Module DATABASE
Input

E@COMPANY

E@ACCTUNIT

E@CRTSYSTEMCD

Output E@AUSECURED (always set)

Programming Example

     EVAL      E@COMPANY      = DAGPSCRTYC   
     EVAL      E@ACCTUNIT     = DACVACTVTY
     EVAL      E@CRTSYSTEMCD  = 'AC'
     CALLP     U@AUSECSYS                  Acct Unit Secured 
     IF        E@AUSECURED = 'Y'                             
     EVAL      E@ERRORNBR     = 101                          
     EVAL      E@ERRORCAT     = 'ACSC'