Application Development and Automation 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: 
Read only

Blocks in Selection screen

Former Member
0 Likes
2,611

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

15 REPLIES 15
Read only

suresh_datti
Active Contributor
0 Likes
1,776

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

Read only

Former Member
0 Likes
1,776

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.

Read only

Former Member
0 Likes
1,776

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.

Read only

Former Member
0 Likes
1,776

You can position the elements on the screen using:

selection-screen position 50.

I think this is how you can place elements...

Read only

hymavathi_oruganti
Active Contributor
0 Likes
1,776

left right is not possible as said by amit

and syntax is as said by eswar

Read only

Former Member
0 Likes
1,775

selection-screen begin of block b1 with FRAME title text-001.

select-options ...

parameters ...

selection-screen end of block b1.

Read only

Former Member
0 Likes
1,776

design ur screen using screen painter & use it in ur report Program.

Read only

Former Member
0 Likes
1,775

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

Read only

0 Likes
1,775

Hi Satesh,

I have select options also.

- priya

Read only

Former Member
0 Likes
1,775

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

Read only

Former Member
0 Likes
1,775

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.

Read only

Former Member
0 Likes
1,775

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

Read only

Former Member
0 Likes
1,775

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

Read only

0 Likes
1,775

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.

Read only

0 Likes
1,775

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