protect 

Use this method to protect the current worksheet so that only certain ranges can still be edited.

CALL METHOD spreadsheet->protect
       EXPORTING protect   = protect
                 no_flush  = no_flush
       IMPORTING error     = error
                 retcode   = retcode.

Description of parameters

Parameter

Optional

Description

protect

 

'X': Worksheet is protected

' ' : Worksheet is not protected