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

Report parameters - user authorization

Former Member
0 Likes
499

Hi all -

We are trying to limit the ways a particular user can run a report (with a standard selection screen 1000). For example, the report has a parameter for company code on the selection screen - but the user should only be allowed to run the report for ONE particular company code. We can obviously create a transaction code that starts with a particular variant in order that the appropriate data is populated. However, we want to limit the user's access to other variants available to that report. Is there a way we can disable the "Get variant" button for a report selection screen?

If anybody has another suggestion as to how we can run a report where the user only has authorization to run with particular parameters, I would really appreciate hearing about it!

Thanks -

Abby

1 ACCEPTED SOLUTION
Read only

suresh_datti
Active Contributor
0 Likes
448

One option is to create your own status in SE41 & disable the 'GET' function code on the application toolbar. In your report SET PF-STATUS to point to this menu based on authorization check.

~Suresh

3 REPLIES 3
Read only

suresh_datti
Active Contributor
0 Likes
449

One option is to create your own status in SE41 & disable the 'GET' function code on the application toolbar. In your report SET PF-STATUS to point to this menu based on authorization check.

~Suresh

Read only

Former Member
0 Likes
448

Hi,

If it is only for company code then you can use the authorization check for the company code..

Check this FM BAPI_COMPANYCODE_EXISTENCECHK for authorization check for the company code..

Thanks,

Naren

Read only

Former Member
0 Likes
448

Thanks, but unfortunately company code is just an example... there are other fields as well.

But I think I've found the solution... limit the function code GET as shown below...

DATA itab TYPE TABLE OF sy-ucomm.

PARAMETERS test(10) TYPE c.

AT SELECTION-SCREEN OUTPUT.

APPEND: 'GET' TO itab.

CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'

EXPORTING

p_status = sy-pfkey

TABLES

p_exclude = itab.

Thanks for the help!