Application Development and Automation 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: 
Read only

Checkbox with select option

Former Member
0 Likes
2,644

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 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.

4 REPLIES 4
Read only

Former Member
0 Likes
1,690

Hi,

I believe it is not possible to do that...unless you declare another PARAMETERS for the check box..

Thanks

Naren

Read only

0 Likes
1,690

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

Read only

Former Member
0 Likes
1,690

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.

Read only

Former Member
0 Likes
1,690

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