You are on page 1of 1

TYPES: BEGIN OF T_TYPE,

LINE(72),
END OF T_TYPE.

data: ITAB TYPE STANDARD TABLE OF T_TYPE WITH


NON-UNIQUE DEFAULT KEY INITIAL SIZE 500 ,
WA TYPE T_TYPE,
count type i.

parameters: program type sy-repid default 'ZTEST''.

READ REPORT PROGRAM INTO ITAB.


IF SY-SUBRC = 0.
LOOP AT ITAB INTO WA.
if wa-line+0(1) = '*'.
count = count + 1.
endif.
ENDLOOP.
ENDIF.

Write:/ 'No of Comment Lines is ' , count .

You might also like