Skip to Content
0
May 02, 2014 at 01:35 PM

How to display ICONS in parameter field

1151 Views

Hi All,

I have a Parameter field which is an Input field with value help of three restricted values

Eg : PARAMETERS : e_icon TYPE icon_d .

On value request Red, Green,Yellow ICONS are displayed but when selected among those the screen value is displayed in internal format like

@0A@.

How can make this Display as ICON Symbol.

I have used F4 help on e_icon as below :

AT SELECTION-SCREEN ON VALUE-REQUEST FOR e_icon.

REFRESH: gi_icon,gi_return.


SELECT id name

FROM icon

INTO TABLE gi_icon

WHERE id IN ('@08@','@09@','@0A@').



CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'ID'

dynprofield = 'E_ICON'

dynpprog = sy-repid

dynpnr = sy-dynnr

value_org = 'S'

TABLES

value_tab = gi_icon

return_tab = gi_return.


e_icon = gi_return-fieldval.



REFRESH gi_return.

CLEAR gi_return.

Kindly suggest some ways.

With Thanks,

Dina