900-PROC-LEV-SECURED

900-PROC-LEV-SECURED verifies that the current user has security access to the process level. CRT-PROC-LEV-SECURED is set to Y if the current user is secured from access to the process level in the specified company; 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-PROCESS-LEVEL

Output CRT-PROC-LEV-SECURED (always set)

Programming Example


      MOVE IAC-FROM-TO-CMPY        TO CRT-COMPANY
      MOVE IAC-FROM-TO-LOC         TO CRT-PROCESS-LEVEL
      MOVE "N"                     TO CRT-PROC-LEV-SECURED
      PERFORM 900-PROC-LEV-SECURED
      IF (CRT-PROC-LEV-SECURED = "Y")
          MOVE "IC22"             TO CRT-ERROR-CAT
          MOVE 112                TO CRT-ERROR-NBR
          MOVE IC22F1-IAC-FROM-TO-CMPY-FN  TO CRT-FIELD-NBR
          MOVE IAC-FROM-TO-CMPY
                                  TO IC22F1-IAC-FROM-TO-CMPY
          MOVE IAC-FROM-TO-LOC
                                  TO IC22F1-IAC-FROM-TO-LOC