Start of Content Area

Function documentationPROTECT_LINES  Locate the document in its SAP Library structure

Use

You can protect ranges of lines against changes. Use this method to switch the protection on and off.

When a line is protected, its background color changes. If you try to enter text in a protected line, a warning signal sounds.

Windows

HTML

Java

ü

X

ü

Features

call method textedit- >protect_lines

  exporting
    from_line = from_line
    to_line = to_line
    protect_mode = protect_mode
    enable_editing_protected_text = enable_editing_protected_text

  exceptions
    error_cntl_call_method = 1
    invalid_parameter = 2.

Parameters

Description

Possible values

from_line

Starting line for the range

 

to_line

Final line (inclusive) of the range

 

protect_mode

Switches input protection on or off

true
Protection switched on (default value)

false
Protection switched off (default value)

enable_editing_protected_text

Editing for protected sections of text

false
Protected sections cannot be edited (default value)

true
Protected sections can be edited