10-04-2009 3:08 PM
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
10-04-2009 3:28 PM
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.
10-04-2009 3:28 PM
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.
10-04-2009 4:16 PM
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
10-04-2009 4:38 PM
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.
10-05-2009 7:00 AM
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
10-05-2009 7:08 AM
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
10-04-2009 4:04 PM
Please SEARCH this forum before you post .Because its basic question. Thanks Venkat.O
10-05-2009 7:06 AM
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.
03-02-2011 4:53 AM
03-02-2011 6:51 AM
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.