2010 Aug 30 8:27 AM
Hi Experts,
I have designed a table Control with module pool. Depending on some Condition i need to display different ICON on the Bush button of the table control. I have done the following code in PBO of the Screen, but Still the ICONS are not displayed. Please help me what am i missing ?
LOOP AT SCREEN.
IF wa_base-matkl = '' AND screen-name = 'WA_BASE-ICON'.
icon_name = 'ICON_REJECT' .
ELSE.
icon_name = 'ICON_ALLOW' .
ENDIF.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_name
add_stdinf = ' '
IMPORTING
RESULT = wa_base-icon
EXCEPTIONS
icon_not_found = 1
outputfield_too_short = 2
OTHERS = 3.
MODIFY SCREEN.
ENDLOOP.
Hi Experts,
I have designed a table Control with module pool. Depending on some Condition i need to display different ICON on the Bush button of the table control. I have done the following code in PBO of the Screen, but Still the ICONS are not displayed. Please help me what am i missing ?
LOOP AT SCREEN.
IF wa_base-matkl = '' AND screen-name = 'WA_BASE-ICON'.
icon_name = 'ICON_REJECT' .
ELSE.
icon_name = 'ICON_ALLOW' .
ENDIF.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_name
add_stdinf = ' '
IMPORTING
RESULT = wa_base-icon
EXCEPTIONS
icon_not_found = 1
outputfield_too_short = 2
OTHERS = 3.
MODIFY SCREEN.
ENDLOOP.
2010 Aug 30 5:06 PM
2010 Aug 30 7:14 PM
There is no need of any icon_create fm.
Just make the icon field disabled( should not be in editable mode ).
Decalre the field as character 4, just pass the icon value like '@8Y@'.
Then modify your internal table.
Then icons will appear in the TBC.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |