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: 

Selection screen query

Former Member
0 Kudos

Hi Friends,

In my selection screen there are 10 fields are displaying one below another. How do we display 5 fields in one column and another 5 fileds in second column instead of displaying all fields in one coloumn?

Please suggest me what changes i need to do for the following code.

Code for your reference:

parameters:

p_gjahr1 like cosp-gjahr,

p_gjahr2 like cosp-gjahr,

p_gjahr3 like cosp-gjahr,

p_gjahr4 like cosp-gjahr,

p_gjahr5 like cosp-gjahr,

p_perbl1 like cosp-perbl,

p_perbl2 like cosp-perbl,

p_perbl3 like cosp-perbl,

p_perbl4 like cosp-perbl,

p_perbl5 like cosp-perbl.

Best Regards

Srikanth

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check if the below code works for you

SELECTION-SCREEN BEGIN OF BLOCK block01 WITH FRAME TITLE text-t00.

SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_gjahr1 like cosp-gjahr,
                         p_perbl1 like cosp-perbl.
SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_gjahr2 like cosp-gjahr,
                         p_perbl2 like cosp-perbl.
SELECTION-SCREEN END OF LINE.
...
SELECTION-SCREEN END OF BLOCK block01. 

9 REPLIES 9

Former Member
0 Kudos

Check if the below code works for you

SELECTION-SCREEN BEGIN OF BLOCK block01 WITH FRAME TITLE text-t00.

SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_gjahr1 like cosp-gjahr,
                         p_perbl1 like cosp-perbl.
SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_gjahr2 like cosp-gjahr,
                         p_perbl2 like cosp-perbl.
SELECTION-SCREEN END OF LINE.
...
SELECTION-SCREEN END OF BLOCK block01. 

0 Kudos

Thanks for the quick reply. this is working fine. Now iam not getting parameter variable description in selection screen whatever we give in slection texts (In Menu bar : Goto -> Text Elements -> Selection Texts).

TIA

Srikanth

0 Kudos

You have to use selection screen comment to display the parameter label description


SELECTION-SCREEN: BEGIN OF LINE.
PARAMETERS: abc(10)  TYPE c.
SELECTION-SCREEN COMMENT 0(5) TEXT-001 FOR FIELD abc.
PARAMETERS: def AS CHECKBOX.
SELECTION-SCREEN COMMENT 10(20) TEXT-002 FOR FIELD def.
SELECTION-SCREEN: END OF LINE.

0 Kudos

Hi Vikrant,

Whether above code is working?

Iam getting the following error while executing the above code. Could you pla check it once.

Error when generating the selection screen "1000" of report "ZAB

Regards

srikanth

Edited by: Kanth on Oct 5, 2009 11:30 AM

0 Kudos

Hi,

Try this,



SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN COMMENT 3(5) text-001 FOR FIELD abc.
PARAMETERS: abc(10)  TYPE c.
SELECTION-SCREEN COMMENT 50(20) text-002 FOR FIELD def.
PARAMETERS: def AS CHECKBOX.
SELECTION-SCREEN: END OF LINE.

Regards,

Vikranth

venkat_o
Active Contributor
0 Kudos

Please SEARCH this forum before you post .Because its basic question. Thanks Venkat.O

Former Member
0 Kudos

hi modify the following code

SELECTION-SCREEN BEGIN OF BLOCK SL1 WITH FRAME TITLE TEXT-008.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 10(15) TEXT-001

FOR FIELD P1.

SELECTION-SCREEN POSITION POS_LOW.

PARAMETERS : P1 TYPE C USER-COMMAND R2 RADIOBUTTON GROUP R2 DEFAULT 'X',

P2 TYPE SCARR-CARRNAME,

P3 TYPE CHAR1 RADIOBUTTON GROUP R2.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK SL1.

Former Member
0 Kudos

thanks

0 Kudos

Hi,

when you use Parameter or select-options on selection always try to create a block for this and according to this block put your

fields in blocks.

Use

selection-screen: begin of block b1.

data: parameters or select-options.

selection-screen :end of block b1.