900-ACCT-UNIT-SECURED

900-ACCT-UNIT-SECURED 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, CRT-ACCT-UNIT-SECURED is set to Y; otherwise, it is set to N.

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

Library DATABASE
Input

CRT-COMPANY

CRT-ACCT-UNIT

Output CRT-ACCT-UNIT-SECURED (always set)

Programming Example

     MOVE AGP-SECURITY-CD     TO CRT-COMPANY.
     MOVE ACV-ACTIVITY        TO CRT-ACCT-UNIT.
     PERFORM 900-ACCT-UNIT-SECURED.
     IF (CRT-ACCT-UNIT-SECURED  = "Y")
         MOVE 101                        TO CRT-ERROR-NBR
         MOVE "ACSC"                     TO CRT-ERROR-CAT