2011 Feb 23 2:56 PM
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,
2011 Feb 23 3:07 PM
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,
2011 Feb 23 3:07 PM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |