‎2007 May 08 4:53 PM
when we read reports using read report, how to retrieve the tables , variables , fields that we are using in that report?
‎2007 May 08 5:00 PM
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
‎2007 May 08 5:00 PM
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
‎2007 May 08 5:13 PM
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
‎2007 May 08 8:54 PM
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