Application Development 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: 

Menupainter: How to disable - Standard toolbar -

Former Member
0 Kudos

Hi All,

I wish to disable few buttons in Standard toolbar in a report output.This report is obtained from a standard program.Kindly suggest a solution.

Regards

Tina

10 REPLIES 10

Former Member
0 Kudos

the syntax to deactivate buttons is:

SET PF-STATUS EXCLUDING <function code of button >.

This should be coded in PBO of that screen.

If your report is a standard report then you might have to change it although its not advisable.

Former Member
0 Kudos

If you are using a Menu (PF-STATUS), create a internl table with the function code that you want to disable and set the PF status like this

SET PF-STATUS xxx EXCLUDING tab.

For more help

http://help.sap.com/saphelp_nw04/helpdata/en/d1/801e2d454211d189710000e8322d00/frameset.htm

Regards,

Ravi

Former Member
0 Kudos

hai,

In the set pf status statement give the button function code you want to disable.

Ex : SET PF-STATUS 'XXX' EXCLUDING 'SAVE'.

This will disable the button.

Cheers,

Umasankar

Former Member
0 Kudos

DATA fcode TYPE TABLE OF sy-ucomm.

...

MODULE status_0100 OUTPUT.

APPEND 'CHANGE' TO fcode.

APPEND 'SAVE' TO fcode.

SET PF-STATUS 'STATUS_0100' EXCLUDING fcode.

ENDMODULE.

0 Kudos

Hi,

Actually in my report i m calling a standard transaction, i m passing some values to that transaction via the selection screen of the program.

After executing this prg i m getting a output [through this standard transaction], in this output i want to make changes in the standard toolbar.

I tried this 'EXCLUDING' in my prg, but it is showing error, 'Status XXXXXX of the user interface 'prg name' missing'.

Pl help.

0 Kudos

Tina,

I guess that should be controlled using authorizations.

Regards,

Ravi

0 Kudos

Hi,

you are calling standard Transaction.

get the main program name and pf-status name.

and then collect the okcodes(function codes) for the buttons which you want to exclude.

now you have to append to the table of type sy-ucomm.

then call this way..

data: p_extab type table of sy-ucomm.
append 'ENTR' to p_extab.
...
..
 SET PF-STATUS 'STATUS'  OF PROGRAM 'ZTEST_PROG' excluding p_extab.

Regards

vijay

former_member480923
Active Contributor
0 Kudos

Hi,

If you are modifying the PF status of a SAP Standard program you have to get the Access key and then goto SE41 and then modify it but otherwise you can copy the same toolbar into a Z-version of that program and then modify it thru the same transaction.

Hope it helps

Anirban

Former Member
0 Kudos

If you just want to disable the functions with out any conditions(not at runtime), then just De-activate the functions in the menu painter{Extras-->Function Active <-> Inactive}

Warm Regards

Anup Varghese

Former Member
0 Kudos

Hi tina,

you cannot deactivate the menu of the standard report from your program, that is why you are getting that error. There is no other option then to change it in the standard report.