Skip to Content
0
Former Member
Feb 23, 2011 at 02:56 PM

READ REPORT sentence

38 Views

Hi , I'm trying to do a program to downloaded all my Z programs in different files. Sentence "Read Report" read the text source of

my program and save it in a internal table.

data: BEGIN OF IT_DATA _SOURCE occurs 0,

LINE(177) TYPE c,

END OF IT_DATA_SOURCE.

The problem is that I don't know the size in characters of the program. And if 'Z_REPORT_X2' is more large that line . It will be a dump.

READ REPORT 'Z_REPORT_X2' INTO IT_DATA _SOURCE.

I'm trying to use field symbols but until I don't solve this. somebody has an idea that can I use to solve this problem ?

thanks in advance,