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

how can i create pushbutton

Former Member
0 Likes
458

hi experts,

i know how to create selection screen.

but i want to know how can i create selection screen with push button.

please help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
397

REPORT ZR_ALV_RB1.

TABLES sscrfields.

SELECTION-SCREEN BEGIN OF BLOCK ONE WITH FRAME TITLE TEXT-001.

selection-screen: PUSHBUTTON 2(10) but1 USER-COMMAND cli1,

PUSHBUTTON /12(30) but2 USER-COMMAND cli2

VISIBLE LENGTH 10.

selection-screen end of block one.

AT SELECTION-SCREEN.

CASE sscrfields.

WHEN 'CLI1'.

message i000(zz) with 'Button 1 was pressed'.

WHEN 'CLI2'.

message i000(zz) with 'Button 2 was pressed'.

ENDCASE.

initialization.

but1 = 'Button 1'.

but2 = 'Button 2'.

START-OF-SELECTION.

  • Rest of your logic here.

Please reward points accordingly.

2 REPLIES 2
Read only

Former Member
0 Likes
397

Hi ,

ABAP has many Programming Types .

You hav to create Screen Pgmming ( Module Pool ) .

http://help.sap.com/saphelp_erp2004/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm

Regards,

j

Do Award Points if u got any help.

Read only

Former Member
0 Likes
398

REPORT ZR_ALV_RB1.

TABLES sscrfields.

SELECTION-SCREEN BEGIN OF BLOCK ONE WITH FRAME TITLE TEXT-001.

selection-screen: PUSHBUTTON 2(10) but1 USER-COMMAND cli1,

PUSHBUTTON /12(30) but2 USER-COMMAND cli2

VISIBLE LENGTH 10.

selection-screen end of block one.

AT SELECTION-SCREEN.

CASE sscrfields.

WHEN 'CLI1'.

message i000(zz) with 'Button 1 was pressed'.

WHEN 'CLI2'.

message i000(zz) with 'Button 2 was pressed'.

ENDCASE.

initialization.

but1 = 'Button 1'.

but2 = 'Button 2'.

START-OF-SELECTION.

  • Rest of your logic here.

Please reward points accordingly.