Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Icon in Table Control

Former Member
0 Likes
2,827

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.

2 REPLIES 2
Read only

Former Member
0 Likes
1,178

Dear Friend,

Check this thread: [|]

Thanks,

Duy

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,178

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.