2008 May 21 1:16 PM
Hi ABAPers,
I am creating a selection screen with radiobuttons. Usually when we use selection text for selection-screen elements/titles. The text always displays at the left of the radiobutton but my requirement is to show it on the right of the radiobutton. Please help asap.
Thanks in advance.
Ritu
2008 May 21 1:19 PM
selection-screen begin of line.
PARAMETERS: p_r1 RADIOBUTTON GROUP grp1.
selection-screen comment 3(10) text-002.
PARAMETERS: p_r2 RADIOBUTTON GROUP grp1.
selection-screen comment 19(10) text-002.
selection-screen end of line.
2008 May 21 1:19 PM
selection-screen begin of line.
PARAMETERS: p_r1 RADIOBUTTON GROUP grp1.
selection-screen comment 3(10) text-002.
PARAMETERS: p_r2 RADIOBUTTON GROUP grp1.
selection-screen comment 19(10) text-002.
selection-screen end of line.
2008 May 21 1:24 PM
Hi,
Pls check the code:-
SELECTION-SCREEN BEGIN OF BLOCK blk3 WITH FRAME TITLE text-003.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETER: p_allprg TYPE c RADIOBUTTON GROUP grp2 MODIF ID prg.
SELECTION-SCREEN COMMENT 12(25) text-007 FOR FIELD p_allprgMODIF ID prg.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETER: p_prog TYPE c RADIOBUTTON GROUP grp2 MODIF ID prg.
SELECTION-SCREEN COMMENT 12(20) text-008 FOR FIELD p_prog MODIF ID prg.
PARAMETER: p_prg TYPE rs38m-programm MODIF ID prg.
SELECTION-SCREEN END OF LINE.
Regards,
Shiva Kumar
2008 May 21 1:27 PM
Hi ritu chaudhary ,
try this sample code .
Create the text elements u will definetely gets the output.
Block starts
selection-screen : begin of block blk3 with frame title text-008.
selection-screen: begin of line.
parameters: p_g1 radiobutton group rb1 .
selection-screen: comment 3(15) text-009 .
parameters: p_g2 radiobutton group rb1.
selection-screen: comment 21(10) text-010 .
parameters: p_g3 radiobutton group rb1.
selection-screen: comment 34(10) text-011.
selection-screen: end of line.
selection-screen : end of block blk3.
Block ends
Plz rewards points if helpful,
Ganesh.
2008 May 21 1:30 PM
Hi,
selection-screen begin of line.
PARAMETERS: p_r1 RADIOBUTTON GROUP grp1.
selection-screen comment 4(10) comm1.
selection-screen end of line.
selection-screen begin of line.
PARAMETERS: p_r2 RADIOBUTTON GROUP grp1.
selection-screen comment 4(10) comm2.
selection-screen end of line.
initialization.
comm1 = 'Radio1'.
comm2 = 'Radio2'.