Quantcast
Viewing all articles
Browse latest Browse all 9052

Re: Counting lines of code sans blank lines and comments ABAP WebDynpro

Hi Tom,

 

Your itab must not be of type string, it must be type char. Try:

 

REPORT sy-repid.

DATA itab TYPE TABLE OF text100.

* some comment

READ REPORT sy-repid INTO itab.

 

DELETE itab WHERE table_line IS INITIAL or TABLE_LINE(1) eq '*'.

sy-tfill = lines( itab ).

write sy-tfill.

.

 

Cheers,

Custodio


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>