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: 

How to introduce space in between a radio button and a select option

Former Member
0 Kudos

Hello Experts,

I have written a code for a radio button and select option in a single line between a Begin Of...End Of line.

But I am unable to view the labes on the selection screen as radio buttons and Select Options are appearing close to each other.

Please help with some sample code how can I introduce some space enough for assigning a lable to a radiobutton on the screen.

Will definately assign points if the solution is helpful

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try this code..create text-elements text-001,text-002 with 10 char length. If u want mote than 10 char then increase then comment length SELECTION-SCREEN COMMENT 1(10) and SELECTION-SCREEN COMMENT 34(10)

tables: vbak.

SELECTION-SCREEN BEGIN OF BLOCK selection1 WITH FRAME.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(10) text-001 FOR FIELD p_chkbox.

PARAMETERS p_chkbox AS CHECKBOX DEFAULT ''.

SELECTION-SCREEN COMMENT 34(10) text-002 FOR FIELD s_vbeln.

SELECT-OPTIONS s_vbeln FOR vbak-vbeln.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK selection1.

Regards,

Joy.

4 REPLIES 4

Former Member
0 Kudos

write SELECTION-SCREEN SKIP 1 between radio button and select option.

former_member181995
Active Contributor
0 Kudos

jaydeep,

SELECTION-SCREEN BEGIN OF LINE.
PARAMETER p1 RADIOBUTTON GROUP rad1 DEFAULT 'X'.
SELECTION-SCREEN POSITION 4.
SELECTION-SCREEN COMMENT (5) text-p01 FOR FIELD p1.
SELECTION-SCREEN POSITION 20.
SELECTION-SCREEN p2 RADIOBUTTON GROUP rad1.
SELECTION-SCREEN POSITION 24.
SELECTION-SCREEN COMMENT (5) text-p02 FOR FIELD p2.
SELECTION-SCREEN END OF LINE.

I hope this makes sense.

mind the position which you are mention it should not overlap.

Amit.

Former Member
0 Kudos

Hi,

Try this code..create text-elements text-001,text-002 with 10 char length. If u want mote than 10 char then increase then comment length SELECTION-SCREEN COMMENT 1(10) and SELECTION-SCREEN COMMENT 34(10)

tables: vbak.

SELECTION-SCREEN BEGIN OF BLOCK selection1 WITH FRAME.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(10) text-001 FOR FIELD p_chkbox.

PARAMETERS p_chkbox AS CHECKBOX DEFAULT ''.

SELECTION-SCREEN COMMENT 34(10) text-002 FOR FIELD s_vbeln.

SELECT-OPTIONS s_vbeln FOR vbak-vbeln.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK selection1.

Regards,

Joy.

former_member182354
Contributor
0 Kudos

Hi,

Use Selection-screen comment statement for your purpose.

Raghav