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

to create a pushbutton on the selection screen

Former Member
0 Likes
939

We use

SELECTION-SCREEN PUSHBUTTON (10) Multiply USER-COMMAND BUTMUL.

But I want to position this button at position 50, What should I do?

Thanks in advance.

Deniz.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
913

Hi,

Use 50(10) in command.

Thanks

Sandeep

Reward if helpful

9 REPLIES 9
Read only

Former Member
0 Likes
913

Hi,

SELECTION SCREEN PUSHBUTTON [/]<pos(len)> <push>

USER-COMMAND <ucom> [MODIF ID <key>].

Regards

Sudheer

Read only

Former Member
0 Likes
913

PUSHBUTTON 2(10) but1 USER-COMMAND cli1,

PUSHBUTTON 12(10) text-020 USER-COMMAND cli2,

try using in the above format where 2 and 12 indicating positions

u can use the position u want

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
913

Hi

Hi,

To place a pushbutton on the selection screen, u need to define the PF-STATUS.

PF-STATUS needs to be called in the AT SELECTION-SCREEN OUTPUT.

e.g.

Define the selecvtion screen.

then write the following code :

AT SELECTION-SCREEN OUTPUT.

SET PF-STATUS 'ZTEST'.

Double click on ZTEST. It will take u to the GUI Status Creation screen.

In the application toolbar, define a pushbutton and assign a function code say 'FUNC1' to it.

activate the GUI Status.

Now, in ur program,

Write the following piece of code :

CASE SY-UCOMM.

WHEN 'FUNC1'.

Write the logc.

Hope it helps.

Regards,

Sree

Read only

Former Member
0 Likes
913

SELECTION-SCREEN PUSHBUTTON <u>50(10</u>) Multiply USER-COMMAND BUTMUL.

Read only

Former Member
0 Likes
913
selection-screen begin of line.
SELECTION-SCREEN PUSHBUTTON 50(10) MULTIPLY USER-COMMAND BUTMUL.
selection-screen end of line.
Read only

Former Member
0 Likes
913

Hi,

Refer to the following link:

http://www.sapdevelopment.co.uk/reporting/selscr/but_buttons.htm

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
914

Hi,

Use 50(10) in command.

Thanks

Sandeep

Reward if helpful

Read only

S0025444845
Active Participant
0 Likes
913

Hi,

Try with this code just copy paste n run.

TABLES sscrfields.

SELECTION-SCREEN PUSHBUTTON 50(10) mul USER-COMMAND abcd.

INITIALIZATION.

MOVE 'Multiply' TO mul.

AT SELECTION-SCREEN.

IF sscrfields-ucomm = 'ABCD'.

ENDIF.

regards,

Sudha

reward points if useful.

Read only

Former Member
0 Likes
913

Hi Deniz,

If you want a Push Button to be placed at the 50th colomn.Just write the following code.

selection-screen pushbutton 50(40) but1 user-command c11

visible length 40.

Wher '50' specifies the colomn from which the Push button should start and the number 40 specifies the length of the Push Button.

I think this will answer this query.

Cheers

Navy