2008 Jul 18 4:17 PM
Hi everyone,
Is it possible to use checkbox and select option on the same variable?
My requirement is for a variable which is a select option with no intervals, and along with that, I need to put a checkbox in the left hand side of the same field.
Please suggest.
Hi,
I believe it is not possible to do that...unless you declare another PARAMETERS for the check box..
Thanks
Naren
2008 Jul 18 4:19 PM
Hi,
I believe it is not possible to do that...unless you declare another PARAMETERS for the check box..
Thanks
Naren
2008 Jul 18 4:24 PM
Correct. I am not sure if you can achieve it without declaring a PARAMETER.
selection-screen : begin of block blk1 with frame title text-001.
selection-screen : begin of line.
parameters : p_chkbox as checkbox default 'X'.
selection-screen : comment 5(15) text-002.
selection-screen : position 21.
select-options : s_date for sy-datum no intervals.
selection-screen : end of line.
selection-screen : end of block blk1.Thanks,
Pavan
2008 Jul 18 4:25 PM
Variable name will be different ..
selection-screen begin of line.
selection-screen comment 1(10) text-003.
select-options : s_pernr for pernr-pernr no intervals.
selection-screen comment 40(10) text-004.
parameters : p_1 as checkbox.
selection-screen end of line.
2008 Jul 18 4:34 PM
Hi,
Check this sample code,
SELECTION-SCREEN :
BEGIN OF BLOCK test WITH FRAME,
BEGIN OF LINE.
SELECTION-SCREEN : POSITION 10.
PARAMETERS : p_check AS CHECKBOX.
SELECTION-SCREEN : POSITION 30.
SELECT-OPTIONS : s_date FOR sy-datum NO INTERVALS.
SELECTION-SCREEN :
END OF LINE,
END OF BLOCK test.Regards
Adil
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |