Skip to Content
0
Former Member
Mar 05, 2009 at 07:13 AM

Why mod operator is invalid in the loop

48 Views

code :

TABLES spfli.

data c type i.

SELECT * FROM spfli.

c = ( sy-linno mod 2 ).

if c = 0.

format COLOR COL_TOTAL.

else.

format COLOR col_key.

endif.

WRITE : / sy-vline,(15) spfli-carrid,

sy-vline,(15)spfli-connid,

sy-vline.

ULINE AT /(37).

ENDSELECT.

Variable c is 0, never changed in the loop why ?