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 Button positioning

Former Member
0 Kudos

Hi gurus,

i have a push button in an selection screen.. But i need to place that button in one particular area of that selection screen block... how do i do that... Plsss help...

Answrs will be appreciated

1 ACCEPTED SOLUTION

Former Member
0 Kudos

TABLES sscrfields.

TYPE-POOLS icon.

SELECTION-SCREEN:

BEGIN OF SCREEN 500 AS WINDOW TITLE title,

PUSHBUTTON 2(10) but1 USER-COMMAND cli1,

PUSHBUTTON 12(30) but2 USER-COMMAND cli2

VISIBLE LENGTH 10,

END OF SCREEN 500.

AT SELECTION-SCREEN.

CASE sscrfields.

WHEN 'CLI1'.

...

WHEN 'CLI2'.

...

ENDCASE.

START-OF-SELECTION.

title = 'Push button'.

but1 = 'Button 1'.

CALL FUNCTION 'ICON_CREATE'

EXPORTING

name = icon_information

text = 'Button 2'

info = 'My Quickinfo'

IMPORTING

RESULT = but2

EXCEPTIONS

OTHERS = 0.

CALL SELECTION-SCREEN '0500' STARTING AT 10 10.

5 REPLIES 5

Former Member
0 Kudos

TABLES sscrfields.

TYPE-POOLS icon.

SELECTION-SCREEN:

BEGIN OF SCREEN 500 AS WINDOW TITLE title,

PUSHBUTTON 2(10) but1 USER-COMMAND cli1,

PUSHBUTTON 12(30) but2 USER-COMMAND cli2

VISIBLE LENGTH 10,

END OF SCREEN 500.

AT SELECTION-SCREEN.

CASE sscrfields.

WHEN 'CLI1'.

...

WHEN 'CLI2'.

...

ENDCASE.

START-OF-SELECTION.

title = 'Push button'.

but1 = 'Button 1'.

CALL FUNCTION 'ICON_CREATE'

EXPORTING

name = icon_information

text = 'Button 2'

info = 'My Quickinfo'

IMPORTING

RESULT = but2

EXCEPTIONS

OTHERS = 0.

CALL SELECTION-SCREEN '0500' STARTING AT 10 10.

0 Kudos

Hi the requirement is that in one line i have a parameter field and in the same line i need to have the Push button... how do i do that..

Former Member
0 Kudos

HI,

Look into the standard program DEMO_SEL_SCREEN_PUSHBUTTON

It may help you.

Former Member
0 Kudos

Hiiii....

One option is create a selection screen in SE51 screen painter ...and place the button where ever u want ...

regards

chandu reddy

Former Member
0 Kudos

Hi,

This piece of code will surely help you.

SELECTION-SCREEN:BEGIN OF BLOCK b2 WITH FRAME TITLE text-011.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETER: p_mpmva1 TYPE przb-variant .

SELECTION-SCREEN PUSHBUTTON 70(4) but1 USER-COMMAND create.
SELECTION-SCREEN PUSHBUTTON 74(4) but2 USER-COMMAND change.
SELECTION-SCREEN PUSHBUTTON 78(4) but3 USER-COMMAND display.
SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK b2.

Plz reward if useful.

Thanks,

Dhanashri.