hi friends ,
my friend had written this code .in this he has used do and endo statement.
here w_week contains value = 3 during runtime.
but he is internally clearing that value .eventhough report is working fine .
i couldn't understand .please if u know update me on this.
regards,]
diana
DO w_week TIMES.
IF so_date-low IS NOT INITIAL.
CLEAR: wa_weektable, w_week.
CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
EXPORTING
date = so_date-low
IMPORTING
week = wa_weektable-week
monday = wa_weektable-monday
sunday = wa_weektable-sunday.
wa_weektable-wday = so_date-low.
APPEND wa_weektable TO it_weektable.
CLEAR wa_weektable.
so_date-low = so_date-low + 1.
ENDIF.
ENDDO.