Show TOC Entering content frame

Background documentation Write-Protection and Activation Locate the document in its SAP Library structure

You can depict the data in the ALV output using UI elements that allow the data to be changed. However, you can then use various methods to prevent the user from changing data in these UI elements. You can make the following settings:

·        Control write-protection for the ALV output

·        Activate and deactivate the ALV output

·        Deactivate individual UI elements (see Assigning Properties to Columns and Cells).

Controlling Write-Protection for the ALV Output

The ALV output is write-protected. You have to remove the write-protection in order to allow the user to change data. Write-protection has the following effects:

·        UI elements (in the cells, not in the toolbar) that allow data changes are not operable.

·        ALV standard functions in the toolbar for inserting, appending, and deleting rows and for checking data changes are hidden. You cannot show them if the ALV output is write-protected.

To switch write-protection on or off, use the methods of the interface class IF_SALV_WD_TABLE_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE).

Methods for the Write-Protection of the ALV Output

Function

Method

Switch write-protection on/off

SET_READ_ONLY

Check whether write-protection is switched on/off

GET_READ_ONLY

Activating and Deactivating the ALV Output

The ALV output is activated by default. All interactive UI elements of the ALV output, both in the toolbar and in the table section, are operable if the ALV output is activated and write-protection is switched off (see above).

To activate or deactivate the ALV output, use the methods of the interface class IF_SALV_WD_TABLE_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE).

Methods for Activating the ALV Output

Function

Method

Activate or deactivate ALV output

SET_ENABLED

Check whether ALV output is activated

GET_ENABLED

 

 

Leaving content frame