Application Development 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: 

Hiding a selection screen field for Standard Report Transaction

Former Member
0 Kudos

Hello All,

We are trying to hide a check box on the selection screen for a standard sap report transaction (s_alr....). We can hide it by creating a variant but then if the users don't select it, the checkbox will be visible. We can't use transaction variant to hide this since its not a dialog transaction.

We don't want any users to select that option by clicking on the checkbox and then running the report. Any suggestions or help is much appreciated.

Thanks,

Sal

3 REPLIES 3

Former Member
0 Kudos

Hi Salman,

Go to transaction SHD0, create Screen variant and activate it.

<b>Reward for helpful answers</b>

Satish

0 Kudos

Satish,

Thanks for your response but I can't create a screen variant since its a report transaction. I get the following error in SHD0..."Variants are possible only for dialog transactions. MS417".

Sal

former_member589029
Active Contributor
0 Kudos

Did you think about modifying the standard report by adding NO-DISPLAY to the parameter option?

If you are not allowed to modify another option - although much more effort - would be to replicate the standard selection screen in an own Z-report and at the end do a SUBMIT standard report WITH parameter

In your won report you can easily hide that parameter and always pass a space to the standard report.

To submit data to the standard report just use

DATA: lt_par TYPE TABLE OF rsparams.

build the selection table based on the selection criteria the user entered and do:

SUBMIT rep USING SELECTION-SCREEN 1000

WITH SELECTION-TABLE lt_par.

Then just remove access to the standard transaction and create an own transaction for your custom report which is added to the users authorized transactions.

Not the easiest way to do it, but it does work.

Regards,

Michael