Ansicht
Dokumentation
LIST_ICON_PREPARE_FOR_MODIFY - Preparing an icon for use with MODIFY
CL_GUI_FRONTEND_SERVICES - Frontend Services BAL Application Log DocumentationThis documentation is copyright by SAP AG.
Functionality
Before you can replace one icon with another using MODIFY, you must format the new one, for example by calling the function module LIST_ICON_PREPARE_FOR_MODIFY or by specifying the PREPARE_NEW_ICON addition in the function module LIST_MODIFY_QUICKINFO.
Example
INCLUDE <icon>.
DATA new_icon LIKE icon_tree VALUE icon_positive.
DATA old_icon LIKE icon_tree VALUE icon_negative.
. . .
WRITE old_icon AS ICON.
. . .
AT LINE-SELECTION.
CALL FUNCTION 'LIST_ICON_PREPARE_FOR_MODIFY'
CHANGING
new_icon = new_icon.
MODIFY CURRENT LINE FIELD VALUE old_icon FROM new_icon.
Parameters
NEW_ICONExceptions
Function Group
SYMBGeneral Material Data ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 899 Date: 20240523 Time: 044929 sap01-206 ( 20 ms )