‎2006 Mar 03 11:31 AM
Hi,
There is a requirement that i need to have two blocks in my selection screen as , on Left few fields in one block and on right few fields in another block .
Please help me out with syntax.
-Priya
‎2006 Mar 03 11:34 AM
You have to use SELECTION-SCREEN BEGIN OF LINE .. END OF LINE and then SELECTION-SCREEN POSITION to place your fields on the left & right ..
regards,
Suresh Datti
‎2006 Mar 03 11:35 AM
selection-screen: begin of block b1 with fream text-001.
-
fields
-
fields
selection-scree: end of bolck b1.
selection-screen: begin of block b2 with fream text-002.
-
fields
-
fields
selection-scree: end of bolck b2.
‎2006 Mar 03 11:35 AM
Hi priya,
1. I don't think in selection-screen,
we can provide block LEFT/RIGHT.
2. It usually does vertically downwards,
occupying the full screen <------> horizontally !
3. Anyway, wait for other answers !
4. However, u may design thru screen painter,
in a normal se38 report,
and show that screen.
Design it so that it has two block left-right.
regards,
amit m.
‎2006 Mar 03 11:36 AM
You can position the elements on the screen using:
selection-screen position 50.
I think this is how you can place elements...
‎2006 Mar 03 11:37 AM
left right is not possible as said by amit
and syntax is as said by eswar
‎2006 Mar 03 11:40 AM
selection-screen begin of block b1 with FRAME title text-001.
select-options ...
parameters ...
selection-screen end of block b1.
‎2006 Mar 03 11:41 AM
design ur screen using screen painter & use it in ur report Program.
‎2006 Mar 03 11:41 AM
hi Priya,
I dont think it is possible to put two blocks parallely..
until you specify the POPSITION with every component.. hope you can use tabbed panes .. as follows..
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
PARAMETERS: p1(10) TYPE c,
p2(10) TYPE c,
p3(10) TYPE c.
SELECTION-SCREEN END OF SCREEN 100.
SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
PARAMETERS: q1(10) TYPE c,
q2(10) TYPE c,
q3(10) TYPE c.
SELECTION-SCREEN END OF SCREEN 200.
SELECTION-SCREEN: BEGIN OF TABBED BLOCK mytab FOR 10 LINES,
TAB (20) button1 USER-COMMAND push1,
TAB (20) button2 USER-COMMAND push2,
END OF BLOCK mytab.
INITIALIZATION.
button1 = 'Selection Screen 1'.
button2 = 'Selection Screen 2'.
mytab-prog = sy-repid.
mytab-dynnr = 100.
mytab-activetab = 'PUSH1'
regards
satesh
‎2006 Mar 03 11:54 AM
‎2006 Mar 03 11:41 AM
Hi priya
you can use this
<b>SELECTION-SCREEN: BEGIN OF LINE,
PUSHBUTTON 2(10) push USER-COMMAND fcode,
POSITION 16.
PARAMETERS para(20) TYPE c.
SELECTION-SCREEN: COMMENT 40(40) text,
END OF LINE.</b>
but the probelm is you cant use select-option insed this. you can have only parameters.
use position for the positioning the fields
regards
kishore
‎2006 Mar 03 11:42 AM
Hope you can position your elements like this...
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS left TYPE i.
selection-screen position 60.
PARAMETERS right TYPE i.
SELECTION-SCREEN END OF LINE.Regards,
Wenceslaus.
‎2006 Mar 03 11:43 AM
Hi Priya,
Create your own screen align it accroding to your requirement , call it in your program as your selection screen. that can be done...
Regards
vijay
‎2006 Mar 03 12:28 PM
Hi,
Create your selection screen with the required blocks.
Then open that screen in screen painter (SE51).
and move the blocks as needed.
Save and activate..
Hope this helps.
regards,
Shashank
‎2006 Mar 03 12:36 PM
Hi,
This code works well. Try it out...
TABLES: vbak.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS left TYPE i.
selection-screen position 60.
PARAMETERS right TYPE i.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECT-OPTIONS: s_vb FOR vbak-vbeln.
selection-screen position 60.
SELECT-OPTIONS: s_vb1 FOR vbak-vbeln.
SELECTION-SCREEN END OF LINE.
‎2006 Mar 03 12:45 PM
Hi Priya,
If that is the case you'll have to define the position of each item individually..as mentioned by all above
using the <b>POSITION</b> ..
selection-screen position xx.regards
satesh