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

reports

Former Member
0 Likes
495

when we read reports using read report, how to retrieve the tables , variables , fields that we are using in that report?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
477

Hi Sabari

retrieving data(fields) from database table is by using SELECT statement

variables are declared in DATA section and will be used in the report

Message was edited by:

p328202

3 REPLIES 3
Read only

Former Member
0 Likes
478

Hi Sabari

retrieving data(fields) from database table is by using SELECT statement

variables are declared in DATA section and will be used in the report

Message was edited by:

p328202

Read only

Former Member
0 Likes
477

Hi

There is no such ready made program/fun module in SAP that gives all the objects(tables/includes/fields/routines/fun modules) with in a program/Report

we use only

SCAN ABAP-SOURCE <name> command to find Statements etc

Reward points if useful

Regards

Anji

Read only

0 Likes
477

Hi,

Try with below example.

READ REPORT P_ReportName INTO itab.

SCAN ABAP-SOURCE itab TOKENS INTO itab_tok

STATEMENTS INTO itab_stmt

KEYWORDS FROM itab_keyw.

Here in 'itab' you will get the entire report code

then itab_stmt you can find all the statements which are used in that report

Hope this will solve your problem.

Regards,

Raj