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

Function module to go to a statement in a report

Former Member
0 Likes
807

Is there any function module or class i can use which goes to a Line in a report.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
756

Yes, function module EDITOR_PROGRAM can be used to open source code in display or edit mode.

Here is a snippet for opening report ZTEST_REPORT in display mode.

CALL FUNCTION 'EDITOR_PROGRAM'
   EXPORTING
     appid       = 'PG'
     display     = 'X'
     line        = '000024'
     program     = 'ZTEST_REPORT'
   EXCEPTIONS
     application = 1
     OTHERS      = 2.
3 REPLIES 3
Read only

FredericGirod
Active Contributor
0 Likes
756

Hi,

have a look to this program  RPR_ABAP_SOURCE_SCAN

regards

Fred

Read only

Former Member
0 Likes
757

Yes, function module EDITOR_PROGRAM can be used to open source code in display or edit mode.

Here is a snippet for opening report ZTEST_REPORT in display mode.

CALL FUNCTION 'EDITOR_PROGRAM'
   EXPORTING
     appid       = 'PG'
     display     = 'X'
     line        = '000024'
     program     = 'ZTEST_REPORT'
   EXCEPTIONS
     application = 1
     OTHERS      = 2.
Read only

0 Likes
756

Hi Manish,

Thank you ... It is useful