‎2008 Dec 03 7:05 AM
Hi Experts,
when i execute below code all the radio buttons are displaying one by one line, my requirement is it has to be disaplyed in a single line two radio buttons can anyone guide me,,,,
selection-screen begin of block k with frame title text-011.
parameter : cweek radiobutton group o default 'X' USER-COMMAND RB,
pweek radiobutton group o ,
month radiobutton group o ,
prandc radiobutton group o ,
PRCANDM RADIOBUTTON GROUP O,
user radiobutton group o.
selection-screen end of block k.
Regards,
Thiru. R
‎2008 Dec 03 7:13 AM
Hi
Jus check the below code.
selection-screen begin of block k with frame title text-011.
selection-screen begin of line.
selection-screen comment 1(7) com1.
parameter : cweek radiobutton group o default 'X' USER-COMMAND RB.
selection-screen position 10.
selection-screen comment 12(7) com2.
parameters pweek radiobutton group o.
selection-screen end of line.
selection-screen end of block k.
initialization.
com1 = 'Button1'.
com2 = 'Button2'.
Cheers,
Hakim
‎2008 Dec 03 7:08 AM
here i have taken into 3 lines.
if u want in one line put them in single begin of line---- end of line.
----
SELECTION SCREEN
----
selection-screen begin of block b1 with frame title text-014.
select-options: s_vkorg for vbak-vkorg modif id org,
s_matkl for vbap-matkl modif id not,
s_erdat for vbak-erdat modif id gre.
selection-screen begin of line.
selection-screen end of line.
selection-screen begin of line.
selection-screen end of line.
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-015.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: POSITION 5.
parameters: Y2D radiobutton group G1 USER-COMMAND BS.
SELECTION-SCREEN: COMMENT 8(30) text-002.
SELECTION-SCREEN: POSITION 40.
parameters: Q2D radiobutton group G1.
SELECTION-SCREEN: COMMENT 43(30) text-003.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: POSITION 5.
parameters: M2D radiobutton group G1.
SELECTION-SCREEN: COMMENT 8(30) text-004.
SELECTION-SCREEN: POSITION 40.
parameters: D2D radiobutton group G1 default 'X'.
SELECTION-SCREEN: COMMENT 43(30) text-005.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: POSITION 5.
parameters: CUS radiobutton group G1.
SELECTION-SCREEN: COMMENT 8(30) text-006.
SELECTION-SCREEN: END OF LINE.
selection-screen end of block b2.
selection-screen begin of block b3 with frame title text-016.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 5.
parameters: NA radiobutton group G2 USER-COMMAND BS.
SELECTION-SCREEN: COMMENT 8(30) text-008.
SELECTION-SCREEN: POSITION 40.
parameters: LA radiobutton group G2.
SELECTION-SCREEN: COMMENT 43(30) text-009.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: POSITION 5.
parameters: EP radiobutton group G2.
SELECTION-SCREEN: COMMENT 8(30) text-010.
SELECTION-SCREEN: POSITION 40.
parameters: AP radiobutton group G2.
SELECTION-SCREEN: COMMENT 43(30) text-011.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: POSITION 5.
parameters: GB radiobutton group G2 default 'X'.
SELECTION-SCREEN: COMMENT 8(30) text-012.
SELECTION-SCREEN: POSITION 40.
parameters: CU radiobutton group G2.
SELECTION-SCREEN: COMMENT 43(30) text-013.
SELECTION-SCREEN POSITION 75.
selection-screen: pushbutton 75(7) text-007 user-command exe.
SELECTION-SCREEN: END OF LINE.
selection-screen end of block b3.
‎2008 Dec 03 7:13 AM
Hi,
If u don't mind can you update my code to my requirement..
Thanks,
Thiru. R
‎2008 Dec 03 7:12 AM
Hi,
Use below code for this purpose:
selection-screen begin of line.
parameters: rad1 radiobutton group radi default 'X'.
selection-screen comment 4(20) text-002.
parameters: rad2 radiobutton group radi.
selection-screen comment 30(20) text-003.
selection-screen end of line.
Regards,
Nitin
‎2008 Dec 03 7:13 AM
Hi
Jus check the below code.
selection-screen begin of block k with frame title text-011.
selection-screen begin of line.
selection-screen comment 1(7) com1.
parameter : cweek radiobutton group o default 'X' USER-COMMAND RB.
selection-screen position 10.
selection-screen comment 12(7) com2.
parameters pweek radiobutton group o.
selection-screen end of line.
selection-screen end of block k.
initialization.
com1 = 'Button1'.
com2 = 'Button2'.
Cheers,
Hakim
‎2008 Dec 03 7:24 AM
hi,
The following is the pseudocode , just try it once
SELECTION-SCREEN BEGIN OF BLOCK k WITH FRAME TITLE text-011.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETER : cweek RADIOBUTTON GROUP o DEFAULT 'X' USER-COMMAND rb.
SELECTION-SCREEN COMMENT 3(10) text-009.
PARAMETERS pweek RADIOBUTTON GROUP o .
SELECTION-SCREEN COMMENT 20(10) text-010.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS :month RADIOBUTTON GROUP o .
SELECTION-SCREEN COMMENT 3(10) text-011.
PARAMETERS prandc RADIOBUTTON GROUP o .
SELECTION-SCREEN COMMENT 20(10) text-012.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : prcandm RADIOBUTTON GROUP o.
SELECTION-SCREEN COMMENT 3(10) text-013.
PARAMETERS user RADIOBUTTON GROUP o.
SELECTION-SCREEN COMMENT 20(10) text-013.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK k.Thanks & Regards
‎2008 Dec 03 7:25 AM
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: POSITION 5.
parameters: M2D radiobutton group G1.
SELECTION-SCREEN: COMMENT 8(20) text-004.
SELECTION-SCREEN: POSITION 30.
parameters: D2D radiobutton group G1 default 'X'.
SELECTION-SCREEN: COMMENT 32(30) text-005.
SELECTION-SCREEN: POSITION 64.
parameters: D2D radiobutton group G1 default 'X'.
SELECTION-SCREEN: COMMENT 64(10) text-006.
SELECTION-SCREEN: END OF LINE.
use this logic it works for u to arrange all 3 radio buttons into 1 line.
Regards,
Ajay
‎2008 Dec 03 7:29 AM
Hi,
Implement this code to meet your requirement,
Give text elemts for text-001,text-002,text-003,text-004,text-005,text-006
Code:
selection-screen begin of block k with frame title text-001.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: POSITION 2.
parameter : cweek radiobutton group o default 'X' USER-COMMAND RB.
SELECTION-SCREEN: COMMENT 5(5) text-002.
SELECTION-SCREEN: POSITION 15.
parameter : pweek radiobutton group o.
SELECTION-SCREEN: COMMENT 18(5) text-003.
SELECTION-SCREEN: POSITION 28.
parameter : month radiobutton group o.
SELECTION-SCREEN: COMMENT 31(5) text-004.
SELECTION-SCREEN: POSITION 36.
parameter : prcandm radiobutton group o.
SELECTION-SCREEN: COMMENT 38(8) text-005.
SELECTION-SCREEN: POSITION 48.
parameter : user radiobutton group o .
SELECTION-SCREEN: COMMENT 50(5) text-006.
SELECTION-SCREEN: end OF LINE.
selection-screen end of block k.
Hope it helps you,
Regards,
K.Tharani.