Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Align more than one element in same line in a selection screen

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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.