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

Push button on selection screen

Former Member
0 Likes
554

hi,

How to Create a Push Button on Selection Screen

???

Thx,

Shashi..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
518

hi,

look at this

selection-screen:

begin of screen 500 as window title tit,

begin of line,

pushbutton 2(10) but1 user-command cli1,

pushbutton 12(10) text-020 user-command cli2,

end of line,

begin of line,

pushbutton 2(10) but3 user-command cli3,

pushbutton 12(10) text-040 user-command cli4,

end of line,

end of screen 500.

at selection-screen.

message i888(sabapdocu) with text-001 sscrfields-ucomm.

case sscrfields-ucomm.

when 'CLI1'.

flag = '1'.

when 'CLI2'.

flag = '2'.

when 'CLI3'.

flag = '3'.

when 'CLI4'.

flag = '4'.

endcase.

<REMOVED BY MODERATOR>

Gaurav J.

Edited by: Alvaro Tejada Galindo on Aug 15, 2008 3:34 PM

4 REPLIES 4
Read only

Former Member
0 Likes
518

Hi,

Please refer to the SAP standard demo program demo_sel_screen_pushbutton.

Thanks,

Sriram POnna.

Read only

Former Member
0 Likes
518

Declare as follows ...

SELECTION-SCREEN: PUSHBUTTON 2(10) PB1 USER-COMMAND ucom.

Read only

Former Member
0 Likes
519

hi,

look at this

selection-screen:

begin of screen 500 as window title tit,

begin of line,

pushbutton 2(10) but1 user-command cli1,

pushbutton 12(10) text-020 user-command cli2,

end of line,

begin of line,

pushbutton 2(10) but3 user-command cli3,

pushbutton 12(10) text-040 user-command cli4,

end of line,

end of screen 500.

at selection-screen.

message i888(sabapdocu) with text-001 sscrfields-ucomm.

case sscrfields-ucomm.

when 'CLI1'.

flag = '1'.

when 'CLI2'.

flag = '2'.

when 'CLI3'.

flag = '3'.

when 'CLI4'.

flag = '4'.

endcase.

<REMOVED BY MODERATOR>

Gaurav J.

Edited by: Alvaro Tejada Galindo on Aug 15, 2008 3:34 PM

Read only

Former Member
0 Likes
518

> How to Create a Push Button on Selection Screen

Not sure actually... it says "Delete" on it... well, there's only one way to find out then...