Application Development 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: 

Reading Program code into an internal table

Bhaskar_Tripath
Participant
0 Kudos

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

naimesh_patel
Active Contributor
0 Kudos

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

naimesh_patel
Active Contributor
0 Kudos

Check online help on the statement READ REPORT..


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

Regards,

Naimesh Patel

Former Member
0 Kudos

use READ REPORT command..

just press F1 on this

_IvanFemia_
Active Contributor
0 Kudos

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

Bhaskar_Tripath
Participant
0 Kudos

Thanks to all!!! It was helpful.