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: 

Hide the parameters on selection screen

Former Member
0 Kudos

Hi1

I have a report which has parameters as checkboxes in the sleection screen and by default all the three parameters are checked . What I want to do is hide these parameters in the selection screen while their functionality still existing mean when I run teh report the result should show what it showed when the three checjboxes were checked and the parameters were visible. So now I just want to hide these parameters in my selectiopn screen.

Can anyone help me out pls.

PARAMETERS: p_varia TYPE disvariant-variant MEMORY ID wrk,

p_rb1 RADIOBUTTON GROUP G1 user-command ucomm default 'X' hide,

p_all AS CHECKBOX DEFAULT 'X' modif id 123,

p_group AS CHECKBOX modif id 123,

p_rb2 RADIOBUTTON GROUP G1,

p_date AS CHECKBOX MODIF ID 234,

p_bedat TYPE fpla-bedat DEFAULT sy-datum MODIF ID 234,

p_endat TYPE fpla-endat MODIF ID 234,

p_rental AS CHECKBOX MODIF ID 234.

Thanks

1 ACCEPTED SOLUTION

former_member188685
Active Contributor

Use

NO-DISPLAY

along with the parameter which ever you want to hide.

6 REPLIES 6

Former Member
0 Kudos

hi,

Add NO DISPLAY statement beside that ... Add this beside each checkbox parameter ...

p_all AS CHECKBOX DEFAULT 'X' modif id 123 NO-DISPLAY,

former_member188685
Active Contributor

Use

NO-DISPLAY

along with the parameter which ever you want to hide.

0 Kudos

But when I put that in this it shows me error as:-

PARAMETERS: p_varia TYPE disvariant-variant MEMORY ID wrk,

p_all AS CHECKBOX DEFAULT 'X',

p_group AS CHECKBOX DEFAULT 'X',

p_rental AS CHECKBOX DEFAULT 'X'.

"NO-DISPLAY" and "AS CHECKBOX" can only be specified together.

Thanks

0 Kudos

hi,

Give this way ...Here in the below code it is not necessary a check box as this variable is not viewable to change ...


Parameters :
p_all  DEFAULT 'X'  NO-DISPLAY,
p_group DEFAULT 'X' NO-DISPLAY,
p_rental  DEFAULT 'X' NO-DISPLAY. 

0 Kudos

Thanks very much , it solved my problem.

Thanks

0 Kudos

Hi,

Try this sample code. Hope it will solve ur prob.

REPORT ztest_hl7.

PARAMETERS: p_varia TYPE disvariant-variant MEMORY ID wrk,

p_all AS CHECKBOX DEFAULT 'X' ,

p_group AS CHECKBOX DEFAULT 'X' ,

p_rental AS CHECKBOX DEFAULT 'X' .

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'P_ALL' OR screen-name = 'P_GROUP'

OR screen-name = 'P_RENTAL'.

screen-invisible = 1.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

START-OF-SELECTION.

WRITE /: p_all,p_group,p_rental.

Regards,

Joy.