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

Reading Program code into an internal table

Bhaskar_Tripath
Participant
0 Likes
815

Hi All,

Is there any way i can get the entire source code of a given program into an internal table?

If so, please explain how.

Thanks,

Bhaskar

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
727

Check online help on the statement READ REPORT..


READ REPORT prog INTO itab [MAXIMUM WIDTH INTO wid] 
                           [STATE state]. 

Regards,

Naimesh Patel

4 REPLIES 4
Read only

naimesh_patel
Active Contributor
0 Likes
728

Check online help on the statement READ REPORT..


READ REPORT prog INTO itab [MAXIMUM WIDTH INTO wid] 
                           [STATE state]. 

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
727

use READ REPORT command..

just press F1 on this

Read only

_IvanFemia_
Active Contributor
0 Likes
727

HI,

READ REPORT prog INTO itab [MAXIMUM WIDTH INTO wid].

If you wanna scan the content you can use

SCAN ABAP-SOURCE itab ...TOKENS INTO itab2 
                       ...STATEMENTS INTO itab3.

Check more option with F1.

Regards

Ivan

Read only

Bhaskar_Tripath
Participant
0 Likes
727

Thanks to all!!! It was helpful.