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 to add a button beside execute button?

Former Member
0 Likes
3,309

Can you please provide the solution?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,865

Hi adiseshi,

1. U will have to create your own

gui status.

2. and set it using SET pf-status 'MYPFSTATUS'

in the event

at selection-screen output.

regards,

amit m.

6 REPLIES 6
Read only

Former Member
0 Likes
1,866

Hi adiseshi,

1. U will have to create your own

gui status.

2. and set it using SET pf-status 'MYPFSTATUS'

in the event

at selection-screen output.

regards,

amit m.

Read only

gopi_narendra
Active Contributor
0 Likes
1,865

if this is a report, create a new PF-status using set pf-status or go to se41 and include in the FM.

Regards

Gopi

Read only

Former Member
0 Likes
1,865

put

AT SELECTION-SCREEN.

SET PF-STATUS '<ur status name>'.

Here you can set you status.

And best is first you copy the one that is being used by SAP and then add you options.

Regards

Nishant

Read only

Former Member
0 Likes
1,865

To add buttons to ABAP reports you can define

Application toolbars through

SET PF-STATUS 'XXX'

here you can provide the button with a function code.

And on

AT User-command.

event you can handle that function code.

Read only

Former Member
0 Likes
1,865

hi

good

in this case you have to change the standard sap program,the process that you have to follow is to add a new button by using the starus bar concept of the sap.

you have to convert the sap standard program to the z program , than you can do the changes in that.

tahnks

mrutyun^

Read only

athavanraja
Active Contributor
0 Likes
1,865

if you dont want to create a new PF status , you can use the following code sample to get additional buttons (up to 5) next to execute button in report programs.

tables: sscrfields .

include <icon> .

selection-screen function key 1 .

selection-screen function key 2 .

parameters: abc(10) .

at selection-screen .

if sscrfields-ucomm eq 'FC01' .

do something when the first button is clicked

endif .

if sscrfields-ucomm eq 'FC02' .

do something when the second button is clicked

endif .

initialization .

concatenate icon_execute_object 'Report' into

sscrfields-functxt_01 .

concatenate icon_execute_object 'Test' into

sscrfields-functxt_02 .

Regards

Raja