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

add a button on normal screen ?

Former Member
0 Likes
560

hi,

what's the screen for showing the content of ' write' statement, and i want to add a button on this screen, how ?

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
521

YOu can use the statement

set pf-status:

refer the demo program:

demo_list_menu_painter

YOu have to create a pf-status by double clinking on the name of the pf-status.

Regards,

ravi

3 REPLIES 3
Read only

Former Member
0 Likes
522

YOu can use the statement

set pf-status:

refer the demo program:

demo_list_menu_painter

YOu have to create a pf-status by double clinking on the name of the pf-status.

Regards,

ravi

Read only

Former Member
0 Likes
521

Hi Zhang,

Please refer this code from help.sap.com

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.

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
521

you can use at pf key command.

while writing use set pf-status '1000'. -> double click on 1000 -> it will take you SE41 Transaction -> here you can keep what ever button you need.

Thanks

Seshu