‎2008 Dec 29 1:41 PM
Hi,
In my selection screen i have to place a radio button next a text box next a push button.All these 3 things has to come in single line.How to do it?
‎2008 Dec 29 1:44 PM
You can use position.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P1.
PARAMETERS: P1 LIKE SAPLANE-PLANETYPE, P2(5), P3(1).
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN POSITION pos.
Regards
Sasi
Edited by: sasikumar palanichamy on Dec 29, 2008 7:21 PM
‎2008 Dec 29 2:16 PM
‎2008 Dec 29 2:29 PM
Here :
SELECTION-SCREEN : PUSHBUTTON 1(15) PB1 USER-COMMAND PUB1,
Now if you embedd this in the begin of line and end of line, the pushbutton will be added on the same line.
regards,
Advait
‎2008 Dec 29 1:46 PM
Hi,
There is 2 ways, one is using abap commands and
the other by clicking program -> other objects -> screen 1000 click layout and edit it straight away.
try this one if it doesnt suits ur requirment den i will tell u how to do by abap commands.
Thanks
(for the points)
- Sayan
‎2008 Dec 29 1:47 PM
Hi,
You can use the following : ( refer to F1 help of these statments as well )
SELECTION-SCREEN BEGIN OF LINE
" add the controls here using the POSITION keywor
SELECTION-SCREEN END OF LINE.
regards,
Advait
‎2008 Dec 29 2:03 PM
Hi,
Define all the three in between Selection-screen start of line.... Selection-screen end of line
use positions and comment.
Eg:
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS P_1 AS CHECKBOX.
SELECTION-SCREEN COMMENT 3(10) TEXT-001.
PARAMETERS R_1 RADIOBUTTON GROUP GR1.
SELECTION-SCREEN COMMENT 17(30) TEXT-002.
PARAMETERS R_2 RADIOBUTTON GROUP GR1.
SELECTION-SCREEN COMMENT 50(10) TEXT-003.
SELECTION-SCREEN END OF LINE.
Regards.
‎2008 Dec 29 2:09 PM
use single line in that you can provide postion of that radio buttos
‎2008 Dec 29 2:47 PM
hi,
try this code..
SELECTION-SCREEN begin of SCREEN 9000.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS RAD1 RADIOBUTTON group gp1 USER-COMMAND CLK1.
SELECTION-SCREEN:position 20,
COMMENT 22(10) TEXT,
PUSHBUTTON 35(10) PUSH1 USER-COMMAND BUT1.
SELECTION-SCREEN:END OF LINE.
parameters rad2 RADIOBUTTON group gp1.
SELECTION-SCREEN end of SCREEN 9000.
INITIALIZATION.
text = 'Text field'.
push1 = 'OK'.
START-OF-SELECTION.
call SELECTION-SCREEN 9000.
here PUSH1 is the name of the button, CLK1 is the usercommand for that button, RAD1 is the name of the radiobutton.
text field means comment rite.. or else u mean parameter..
here i mentioned as comment..
if it is a parameter declare the position first and then declare the parameter like
SELECTION SCREEN POSITION 20.
PARAMETER P1(20) TYPE C.
Edited by: RameshKumar on Dec 29, 2008 3:48 PM
‎2008 Dec 30 4:38 AM
Hi,
Please try the following code where in a textbox, a set of radiobuttons abd a pushbutton will be placed on a single line.
selection-screen begin of block b1 with frame.
selection-screen begin of line.
selection-screen comment 2(15) text-001 for field p_matnr.
PARAMETERS p_matnr type mara-matnr.
selection-screen comment 45(5) text-002 for field p_yes.
PARAMETERS: p_yes radiobutton group g1.
selection-screen comment 55(5) text-003 for field p_no.
PARAMETERS: p_no radiobutton group g1.
selection-screen PUSHBUTTON 70(10) text-004 user-command PUSH1.
selection-screen end of line.
SELECTION-SCREEN end of BLOCK b1.
Just double click on the text symbols (that is text-001 etc.) and give a value that needs to be displayed along side the elements. For example in text-001 put Material No, text-002 - Yes, text-003 - No and
text-004 - Display.
Hope this solves your query.
Thanks and Regards,
Sachin Dargan.
‎2008 Dec 30 4:50 AM
Hi,
you can declare Radio buttons inplace of checkbox in below code.
- Line 1 (Basic Data 1, Sales Data 1, Sales Data 2)
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN: POSITION 3.
PARAMETERS: view1 AS CHECKBOX.
SELECTION-SCREEN: COMMENT 5(21) text-028.
PARAMETERS: view2 AS CHECKBOX.
SELECTION-SCREEN: COMMENT 29(21) text-029.
PARAMETERS: view3 AS CHECKBOX.
SELECTION-SCREEN: COMMENT 53(30) text-030.
SELECTION-SCREEN END OF LINE.
regards,
Siva.
‎2008 Dec 30 6:14 AM
Hi,
All three define between selection-Screen Start of Line and End Of Line.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS P1 AS CHECKBOX.
SELECTION-SCREEN COMMENT 3(10) TEXT-001.
PARAMETERS R1 RADIOBUTTON GROUP GR1.
SELECTION-SCREEN COMMENT 15(30) TEXT-002.
PARAMETERS R2 RADIOBUTTON GROUP GR1.
SELECTION-SCREEN COMMENT 50(10) TEXT-003.
SELECTION-SCREEN END OF LINE.
Regards
Md.MahaboobKhan
‎2008 Dec 30 6:38 AM
Hi Saranya,
Try it like this:
Selection-screen: begin of line,
COMMENT 5(5) text1.
Parameters:
check1 radiobutton group rad user-command ABC.
Selection-screen: COMMENT 15(5) text4.
Parameters:
check2 radiobutton group rad.
Selection-screen: COMMENT 25(10) text2.
Parameters:
char1(2) type c.
Selection-screen: COMMENT 40(10) text3.
SELECTION-SCREEN:
PUSHBUTTON 55(5) but1 USER-COMMAND cli1.
SELECTION-SCREEN: END OF LINE.
Initialization.
text1 = 'abcd'.
text2 = 'bcde'.
text3 = 'cdef'.
text4 = 'cdeg'.
but1 = 'but'.With luck,
Pritam.
‎2008 Dec 30 6:58 AM
Hi,
Execute the tcode se51 and give your program name and change the layout according to your needs and activate and then execute your report now it will be changed according your requirements.
Thanks and Regards,
Thirukumaran. R
‎2008 Dec 30 7:06 AM
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 3(10) text-001.
PARAMETERS P_BUKRS T001-BUKRS.
SELECTION-SCREEN COMMENT 20(10) TEXT-002.
PARAMETERS: p_2 RADIOBUTTON GROUP Radi USER-COMMAND B1,
p_3 RADIOBUTTON GROUP RADI.
SELECTION-SCREEN COMMENT 35(10) TEXT-003.
SELECTION-SCREEN PUSHBUTTON 50(15) TEXT-004 USER-COMMAND B1.
SELECTION-SCREEN END OF LINE.
Please try this for your requirement.
Regards,
Joan