06-15-2006 9:40 AM
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
06-15-2006 9:45 AM
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.
06-15-2006 9:46 AM
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
06-15-2006 9:46 AM
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
06-15-2006 9:47 AM
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.
06-15-2006 9:56 AM
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.
06-15-2006 10:00 AM
Tina,
I guess that should be controlled using authorizations.
Regards,
Ravi
06-15-2006 10:36 AM
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
06-15-2006 9:53 AM
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
06-15-2006 9:57 AM
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
06-15-2006 10:00 AM
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.