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 list out a report's input/output parameters

Former Member
0 Likes
3,420

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,183

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

10 REPLIES 10
Read only

Former Member
0 Likes
2,183

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

Read only

Former Member
0 Likes
2,184

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

Read only

0 Likes
2,183

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

Read only

former_member222860
Active Contributor
0 Likes
2,183

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

Read only

0 Likes
2,183

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

Read only

0 Likes
2,183

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

Read only

0 Likes
2,183

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

Read only

0 Likes
2,183

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

Read only

0 Likes
2,183

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

Read only

0 Likes
2,182

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