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: 

Unable to read inactive lines of report SAP ABAP

PH4
Explorer
0 Kudos

Hello Experts,

I need to scan source code of a report.

I am using READ REPORT ZREPORT INTO LT_CONTENT.

It is working good if our report is active.

Problem is if I do some changes in the report , and save it (not activate it ). Then if I try to read this using READ REPORT , It only returns activated code.

Is there any way I can read the saved code instead on activated code ?

Thanks a lot for your help !

Harish Bhatt

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

There is an option for READ REPORT: STATE state ('A' or 'I') But seems reserved for SAP (so at your own risk...)

NB: If you are the one who last changed the report, perform some search on FM RS_WORKING_AREA_PREPARE, and call it before the READ REPORT statement...

2 REPLIES 2

raymond_giuseppi
Active Contributor

There is an option for READ REPORT: STATE state ('A' or 'I') But seems reserved for SAP (so at your own risk...)

NB: If you are the one who last changed the report, perform some search on FM RS_WORKING_AREA_PREPARE, and call it before the READ REPORT statement...

PH4
Explorer
0 Kudos

Thanks a lot Raymond !

it solved my Issue.