09-11-2008 11:14 AM
Hi ABAP gurus,
I wrote a code to display the radio batton group in the selection screen, to select either 'yes' or 'no'.Now it is displayed like,
Yes <radiobutton1>
No <radiobutton2>
in the selection screen.
But I want to display it in the following format.
<radiobutton1> Yes
<radiobutton2> No
Could you help me?
09-11-2008 11:21 AM
Hi,
Use this.
SELECTION-SCREEN BEGIN OF LINE.
Parameter: rb1 as radio........
SELECTION-SCREEN COMMENT 'YES'.
SELECTION-SCREEN BEGIN OF LINE.
Parameter: rb2 as radio........
SELECTION-SCREEN COMMENT 'NO'.
Bhupal
09-11-2008 11:17 AM
use this code
SELECTION-SCREEN BEGIN OF BLOCK out WITH FRAME TITLE text-s01.
selection-screen begin of line.
parameters: p_type radiobutton group grp1.
selection-screen comment 4(15) text-010 for field p_type.
selection-screen end of line.
selection-screen begin of line.
parameters: p_reason radiobutton group grp1.
selection-screen comment 4(17) text-020 for field p_reason.
selection-screen end of line.
SELECTION-SCREEN END OF BLOCK out.
09-11-2008 11:18 AM
Hi ,
Try using SELECTION-SCREEN BEGIN OF LINE .
Search in SDN or use F1 help in your ABAP editor for further details...
Regards,
Sachin M M
09-11-2008 11:20 AM
Hi
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS :
r1 RADIOBUTTON GROUP rad1 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 3(10) text-001.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS :
r2 RADIOBUTTON GROUP rad1.
SELECTION-SCREEN COMMENT 3(10) text-002.
SELECTION-SCREEN END OF LINE.
Regards
pavan
09-11-2008 11:21 AM
Hi,
Use this.
SELECTION-SCREEN BEGIN OF LINE.
Parameter: rb1 as radio........
SELECTION-SCREEN COMMENT 'YES'.
SELECTION-SCREEN BEGIN OF LINE.
Parameter: rb2 as radio........
SELECTION-SCREEN COMMENT 'NO'.
Bhupal
09-11-2008 11:23 AM
09-11-2008 11:26 AM
hi ,
See the below example code
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE a1.
PARAMETERS : p_yes RADIOBUTTON GROUP g1, " radiobutton for yes
p_no RADIOBUTTON GROUP g1. " radiobutton for no
SELECTION-SCREEN END OF BLOCK b1.
INITIALIZATION.
a1 = 'radibuttons'. "for frame name
Regards..