05-27-2008 1:44 PM
I have to align more than one element
in same line in a selection screen.
It is possible with the following code.
now the problem is i need space between these elements. how can i achieve it?
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (8) txt1.
PARAMETERS : location AS CHECKBOX,
loc(5) TYPE c.
SELECTION-SCREEN COMMENT (15) txt2.
PARAMETERS : dept AS CHECKBOX,
dpt(5) TYPE c.
SELECTION-SCREEN COMMENT (7) txt3.
PARAMETERS : product AS CHECKBOX,
prdt(5) TYPE c.
SELECTION-SCREEN END OF LINE.
05-27-2008 1:48 PM
Hi,
Use SELECTION-SCREEN POSITION option.
ex: SELECTION-SCREEN POSITION 15.
Sample code:
selection-screen: begin of block blk1 with frame.
selection-screen: begin of line.
parameters: R1 RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN position 5.
SELECTION-SCREEN COMMENT 6(5) comm1.
parameters: R2 RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN position 14.
SELECTION-SCREEN COMMENT 15(5) comm2.
selection-screen: end of line.
selection-screen: end of block blk1.
initialization.
comm1 = 'File1'.
comm2 = 'File2'.
Edited by: Velangini Showry Maria Kumar Bandanadham on May 27, 2008 2:54 PM
05-27-2008 1:57 PM
Hello,
Please see this:
SELECTION-SCREEN: BEGIN OF LINE,
PUSHBUTTON 2(10) push USER-COMMAND fcode,
POSITION 16.
PARAMETERS para TYPE c LENGTH 20.
SELECTION-SCREEN: COMMENT 40(40) text,
END OF LINE.
INITIALIZATION.
push = 'Push'.
text = '<--- Fill field, then push button!'.
Regards.