cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert Traffic light icon in Table UI column

Former Member
0 Kudos

Hi Expert,

I am not able to put traffic light icon to table UI's column.

Can any one help me.

Thanks and Regards,

Anil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Refer this link for the same

Regards,

Lekha.

Former Member
0 Kudos

Hi Lekha,

I gone through the link provided by you. I have few doubt.

what is ls_book_aux? is it table UI anme? please help.

  • Define the cancelled icon

LOOP AT lt_book ASSIGNING <fs_book>.

MOVE-CORRESPONDING <fs_book> TO ls_book_aux.

IF sy-tabix eq 2.

ls_book_aux-CELL_EDITOR = 'IMAGE' giev the ICon of your type

ELSE.

ls_book_aux-CELL_EDITOR = 'TEXTVIEW'

ENDIF.

APPEND ls_book_aux TO lt_book_aux.

ENDLOOP.

Regards,

Anil

Former Member
0 Kudos

hi,

lt_book - Internal table to be binded with Table node.

<fs_book> - FIELD-SYMBOLS

FIELD-SYMBOLS <fs_book> LIKE LINE OFlt_book.

ls_book_aux - Work Area.

ls_book_aux type lt_book.

Former Member
0 Kudos

Hi Saurav,

Still not clear!!!

My table name at layout is TABLE_VAL and node name with which i am binding this table is TABLE_DISPLAY. I have 6 column where i need to put traffic light. Now you tell me which structure will have edtior field. As i assume it should be table UI. But how i can define my UI table?

Regards,

Anil

Former Member
0 Kudos

Hi,

For that column of the TABLE, while create BInding option, give the UI element as Image type.

In the Layout tab of the view, for that column, cell editor give the Image source as the

ICON......

Clarify this -

Do you want to show this icon on any condition basis or ?

Out of 6 oclumns for which column you want the traffic light icon...

Hope you got this.

Regards,

Lekha.

Former Member
0 Kudos

Hi Lekha,

Its working....

Thanks for such a simple solution.

Regards,

Anil

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Anil ,

there is a tutorial on SDN "PROGRAMMING THE ALV CONFIGUIRING MODEL"

refer this link :

[original link is broken]

go to the tutorial for configuiring ALV , in that step by step is depicted how to dispaly traffic icon in ur table's column :

regards,

amit

Former Member
0 Kudos

Hi,

Have a image UI element in your table. Now bind it with the attribute of type string.

In ur method set the velue of this attribue as:

ICON_YELLOW_LIGHT

ICON_GREEN_LIGHT

ICON_RED_LIGHT

Regards,

Pankaj Aggarwal

Former Member
0 Kudos

SAP provides predefined Web icons for the standard objects and functions that are used most frequently.

Refer this :

http://help.sap.com/erp2005_ehp_04/helpdata/EN/ec/bb08428dab5f24e10000000a1550b0/frameset.htm