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

Selection screen

Former Member
0 Likes
731

Hi

i have a selection screen which i must design as follow



RB No1
      CB TEST1         CB TEST3
      CB TEST2

RB represent radio button and CB is check box

I have to leave a little space before the check box how can i do that ?


PARAMETERS:
rb_act      RADIOBUTTON GROUP gp1 DEFAULT 'X'.  "Actual radio button

SELECTION-SCREEN SKIP.

SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS cb_pl_a     AS CHECKBOX. " DEFAULT "Profit and loss check box
SELECTION-SCREEN COMMENT 3(19) text-002.

PARAMETERS cb_pl_s     AS CHECKBOX. "Sales only check box
SELECTION-SCREEN COMMENT 25(19) text-003.
SELECTION-SCREEN END OF LINE.

I have done like this but there is no space before the check box it is align with the radio button

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
700

Hi ,

This works as per ur requirement.


PARAMETERS:
rb_act RADIOBUTTON GROUP gp1 DEFAULT 'X',  "Actual radio button
rb_act2 RADIOBUTTON GROUP gp1.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN position 10. " pos lies b/w 1 & 83
PARAMETERS cb_pl_a     AS CHECKBOX. " DEFAULT Profit and loss check box

SELECTION-SCREEN position 20.
PARAMETERS cb_pl_s     AS CHECKBOX. "Sales only check box
SELECTION-SCREEN END OF LINE.

Regards,

Mdi.Deeba

9 REPLIES 9
Read only

Former Member
0 Likes
700

Hi,

Try with the following,

PARAMETERS:

rb_act RADIOBUTTON GROUP gp1 DEFAULT 'X'. "Actual radio button

SELECTION-SCREEN SKIP 2.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS cb_pl_a AS CHECKBOX. " DEFAULT "Profit and loss check box

SELECTION-SCREEN COMMENT 3(19) text-002.

PARAMETERS cb_pl_s AS CHECKBOX. "Sales only check box

SELECTION-SCREEN COMMENT 25(19) text-003.

SELECTION-SCREEN END OF LINE.

Thank U,

Jay....

Read only

Former Member
0 Likes
700

Hi newbie82 c,

Try with the below code.

PARAMETERS:

rb_act RADIOBUTTON GROUP gp1 DEFAULT 'X',

rb_act1 RADIOBUTTON GROUP gp1 . "Actual radio button

SELECTION-SCREEN SKIP 1.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS cb_pl_a AS CHECKBOX. " DEFAULT "Profit and loss check box

SELECTION-SCREEN COMMENT 3(19) text-002.

PARAMETERS cb_pl_s AS CHECKBOX. "Sales only check box

SELECTION-SCREEN COMMENT 25(19) text-003.

SELECTION-SCREEN END OF LINE.

I added the radio button rb_act1, because a radiobutton group should have more than 1 radio buttons.

Hope this will solve your problem.

Regards,

Phani.

Read only

Former Member
0 Likes
700

Hi,

I tried the same piece of code u provided, it is giivng me enuf space between the radio buttons and the checkboxes.

Read only

Former Member
0 Likes
700

write selection screen comment before check box as well ..

SELECTION-SCREEN COMMENT 3(3) text-010. " declare text-010 with space as content

PARAMETERS cb_pl_a AS CHECKBOX. " DEFAULT "Profit and loss check box

Read only

Former Member
0 Likes
700

Try to use: SELECTION-SCREEN POSITION <pos>.

Regards,

Satya

Read only

dev_parbutteea
Active Contributor
0 Likes
700

Hi,

Just add a comment before:

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(3) text-003. " text-003 doesn't contain anything

PARAMETERS cb_pl_a AS CHECKBOX. " DEFAULT "Profit and loss check box

SELECTION-SCREEN COMMENT 8(19) text-002.

Regards.

Read only

viquar_iqbal
Active Contributor
0 Likes
700

Hi

check this standard piece of code source sap library

SELECTION-SCREEN: BEGIN OF LINE,

PUSHBUTTON 2(10) push USER-COMMAND fcode,

POSITION 16.

PARAMETERS para TYPE c LENGTH 20.

SELECTION-SCREEN: COMMENT 40(40) text,

END OF LINE.

Read only

Former Member
0 Likes
701

Hi ,

This works as per ur requirement.


PARAMETERS:
rb_act RADIOBUTTON GROUP gp1 DEFAULT 'X',  "Actual radio button
rb_act2 RADIOBUTTON GROUP gp1.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN position 10. " pos lies b/w 1 & 83
PARAMETERS cb_pl_a     AS CHECKBOX. " DEFAULT Profit and loss check box

SELECTION-SCREEN position 20.
PARAMETERS cb_pl_s     AS CHECKBOX. "Sales only check box
SELECTION-SCREEN END OF LINE.

Regards,

Mdi.Deeba

Read only

Former Member
0 Likes
700

Hi,

SELECTION-SCREEN BEGIN OF LINE.

selection-screen position 7.

parameters cb_pl_a AS CHECKBOX.

SELECTION-SCREEN COMMENT 9(19) text-002.

SELECTION-SCREEN END OF LINE.

THANKS,

Nithya