Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

Displaying Lights (Red, Yellow and Green) using ALV

By Tejaswini Demo program for displaying lights (Red, Yellow and Green): REPORT ALV_LIGHTS. * Published at SAPTechnical.COM TYPES !EGI" O# t$_al%& li'hts()* TYPE c& +E,ce-ti.n& H.ldin' the %alue ./ the li'hts te,t(01* TYPE c& +s.2e te,t E"3 O# t$_al%. 3ATA 's_al% TYPE t$_al%& 't_al% TYPE TA!LE O# t$_al%& '4_al% TYPE RE# TO cl_sal%_table& '4_c.lu2ns TYPE RE# TO cl_sal%_c.lu2ns_table. START5O#5SELECTIO". 's_al%5li'hts 6 7)7. +C.l.4 4ed 's_al%5te,t 6 7RE3 SIG"AL7. APPE"3 's_al% TO 't_al%. 's_al%5li'hts 6 707. +C.l.4 $ell.8 's_al%5te,t 6 7YELLO9 SIG"AL7. APPE"3 's_al% TO 't_al%. 's_al%5li'hts 6 7:7. +C.l.4 '4een 's_al%5te,t 6 7GREE" SIG"AL7. APPE"3 's_al% TO 't_al%. CALL METHO3 cl_sal%_table6;/act.4$ IMPORTI"G 4_sal%_table 6 '4_al% CHA"GI"G t_table 6 't_al%. '4_c.lu2ns 6 '4_al%5;'et_c.lu2ns( *. '4_c.lu2ns5;set_e,ce-ti.n_c.lu2n( %alue 6 7LIGHTS7 *. CALL METHO3 '4_al%5;dis-la$.

You might also like