U@AUSECURED

U@AUSECURED 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, 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

Output E@AUSECURED (always set)

Programming Example

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