Start of Content Area

Function documentationPROTECT_SELECTION  Locate the document in its SAP Library structure

Use

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

When a selection 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_selection

  exporting
    protect_mode = protect_mode

  exceptions
    error_cntl_call_method = 1
    invalid_parameter = 2.

Parameters

Description

Possible values

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