Skip to Content
0
Former Member
Aug 05, 2005 at 06:34 PM

led light in alv grid

1963 Views

Hi Everyone,

This is the sample code where in i display the alv grid in this the green led light is not coming up.

In perfrom get table i have hardcoded, the values for icon name as led green . but in the alv it displays the values @5d,

what could be the problem do i have to change here in the alv display something or what else could be done to get the led in the grid.

MODULE status_0130 OUTPUT.

  • * Create objects

IF go_custom_container IS INITIAL.

CREATE OBJECT go_custom_container

EXPORTING container_name = 'TABLE'.

CREATE OBJECT go_grid

EXPORTING

i_parent = go_custom_container.

PERFORM data

ENDIF.

ENDMODULE.

FORM data

DATA: gs_layout TYPE lvc_s_layo.

PERFORM get table

USING

table_info

CHANGING

itab.

  • Set grid title

gs_layout-grid_title = 'Table Data.

gs_layout-smalltitle = 'X'.

gs_layout-cwidth_opt = 'X'.

CALL METHOD go_grid->set_table_for_first_display

EXPORTING

i_structure_name = 'struct_table'

is_layout = gs_layout

CHANGING

it_outtab = itab.

ENDFORM.

Thanks in advance,

Any help will be of great use to me.

Prabs.