2008 Jun 27 4:28 PM
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
2008 Jun 27 4:32 PM
Use
NO-DISPLAYalong with the parameter which ever you want to hide.
Use
NO-DISPLAYalong with the parameter which ever you want to hide.
2008 Jun 27 4:30 PM
hi,
Add NO DISPLAY statement beside that ... Add this beside each checkbox parameter ...
p_all AS CHECKBOX DEFAULT 'X' modif id 123 NO-DISPLAY,
2008 Jun 27 4:32 PM
Use
NO-DISPLAYalong with the parameter which ever you want to hide.
2008 Jun 27 4:40 PM
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
2008 Jun 27 4:46 PM
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.
2008 Jun 27 4:53 PM
2008 Jun 27 4:56 PM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |