‎2009 Aug 10 7:09 AM
Hi experts,
I'd like to know if there is a function module which can list out all the input and output parameters (variables, tables, etc.) by giving the report name as input.
If not, please suggest a way to find out the input/output parameters.
Regards,
Ancy
‎2009 Aug 10 7:17 AM
Hi,
Goto SE80 and give the report name selecting the program option and give display. You will get a list of all tables (data dictionary) and variables (fields) used in the program.
Regards,
Vik
‎2009 Aug 10 7:15 AM
Hi,
One of the ways is to write a custom program, with report name as input.
1)You can read the source code using key word READ REPORT report name, into a internal table.
2)SEARCH the itab for stmts like TABLES,DATA etc..
3) Display the SEARCH results as your report output.
Hope this helps.
Regards,
Raghavendra
‎2009 Aug 10 7:17 AM
Hi,
Goto SE80 and give the report name selecting the program option and give display. You will get a list of all tables (data dictionary) and variables (fields) used in the program.
Regards,
Vik
‎2009 Aug 10 7:51 AM
Hi Vik,
Thanks for the info. Just like how SAP lists out / seggregates the various fields, dictionary structures, etc in SE80 when you give the report program name, I'd like to know if I can get such a list as output programmatically.
Regards,
Ancy
‎2009 Aug 10 7:27 AM
The below FM gives list of parameters of all the Function modules in the Function Group
RS_FUNCTION_POOL_PARAMETERS
Also Check this too
RS_REPORTSELECTIONS_INFO
Edited by: Mahesh Reddy on Aug 10, 2009 8:29 AM
‎2009 Aug 10 7:55 AM
Thanks Mahesh.
The function module RS_REPORTSELECTIONS_INFO has helped me get the input parameters.
Now I also want to know how to find all exporting parameters too. Including tables.
Regards,
Ancy
‎2009 Aug 10 8:14 AM
Your question doesn't make much sense. There are no "input/output" parameters for reports. Please clarifiy what you mean by "input/output parameter".
Do you mean you want a where used list? Check out tables like CROSS. To find other useful tables, put an SQL trace on, do the where used, and see what tables are hit.
matt
‎2009 Aug 10 9:29 AM
By input/output parameters, i mean all the variables, internal tables etc. in the report that can be used for passing data.
If not function module, I'd like to know if there's a database table or some form of code that can be used to fetch these parameters.
For eg. If you give a program name in SE80, the repository displays these fields in the FIELDS folder. Can you tell me how this is being fetched.
Regards,
Ancy
‎2009 Aug 10 11:19 AM
Well, they're not input/output parameters, and really you shouldn't refer to them as such. A variable is simple what it says - a variable. You could, I suppose, refer to data sources. But then, the report could be getting data from a set of function modules.
So my assumption is correct, you are talking about a where-used list.
>Check out tables like CROSS. To find other useful tables, put an SQL trace on, do the where used, and see what tables are hit.
matt
‎2009 Aug 10 11:24 AM
No your assumption isnt correct. I wasnt talking abt where-used list.
I found the answer myself.
Check out the Function Module RS_PROGRAM_INDEX. The TABLES parameter COMPO returns all components of the program object. If you give the type as D, it will list out all the global data used in the program for exchange of data.
Regards,
Ancy
‎2009 Aug 10 1:15 PM
I see. You want the internal information about the program.If raghavendra ay had gone one stage further, and mentioned the use of SCAN, he'd have given you all that you needed.
Please take care to post your questions clearly in future, using technically accurate words. All that talk of input/output parameters was not exactly clear
matt