Skip to Content
0
Former Member
May 30, 2007 at 07:17 AM

Traffic lights in ALV

62 Views

I have used traffic lights in alv using slis layoutalv.

is_layout-lights_fieldname = 'STATUS'.

is_layout-lights_tabname = 'IT_MSEG_BOM'.

LOOP AT it_mseg_bom INTO is_mseg_bom.

IF is_mseg_bom-menge = is_mseg_bom-mnglg.

is_mseg_bom-status = 3.

ELSE.

is_mseg_bom-status = 1.

ENDIF.

MODIFY it_mseg_bom FROM is_mseg_bom TRANSPORTING status..

ENDLOOP.

how can i get this field STATUS as the last field name now it comes as the first fieldname.

Thanks n advance