‎2006 Sep 07 6:55 PM
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
‎2006 Sep 07 7:09 PM
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
‎2006 Sep 07 7:09 PM
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
‎2006 Sep 07 7:29 PM
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
‎2006 Sep 07 7:32 PM
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!