Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ICONS

Hi

How can we get icons ( like grater than symbol or equal to symbol )for a field in ITAB and display an icon according to the result we get...

also please let me know where we can find the code for a particular icon...

Tags:
replied

Hi rahul,

1. simple

2. just copy paste this in new program.

3. <b>it will show

EQUAL to

GREATER than ICON

from field of internal table.</b>

4.

REPORT abc.

TYPE-POOLS: icon.

*----


DATA : BEGIN OF itab OCCURS 0,

bukrs LIKE t001-bukrs,

myicon(100) TYPE c,

END OF itab.

SELECT * FROM t001

INTO CORRESPONDING FIELDS OF TABLE itab.

*----


important.

LOOP AT itab.

IF sy-tabix >= 5.

<b> MOVE '@1G@' TO itab-myicon.</b>

ELSE.

<b>MOVE '@1I@' TO itab-myicon</b>.

ENDIF.

MODIFY itab.

ENDLOOP.

LOOP AT itab.

WRITE :/ itab-bukrs , itab-myicon.

ENDLOOP.

5. double icon in TYPE-POOLS: icon

and u will get all list of icons.

regards,

amit m.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question