Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

READ REPORT sentence

Former Member
0 Likes
452

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,

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
414

Hi,

Please search in SCN before posting any question, This is already posted in wiki.

Please refer the link:[http://wiki.sdn.sap.com/wiki/display/ABAP/DownloadAllprogramsandFMsofa+package]

There are also specific functions available to read the source code in function modules,includes,classes,reports etc. Please do a search in SCN.

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,

1 REPLY 1
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
415

Hi,

Please search in SCN before posting any question, This is already posted in wiki.

Please refer the link:[http://wiki.sdn.sap.com/wiki/display/ABAP/DownloadAllprogramsandFMsofa+package]

There are also specific functions available to read the source code in function modules,includes,classes,reports etc. Please do a search in SCN.