‎2006 Apr 07 6:40 PM
Gurus, Is there a way I can grey out a button on a standard SAP T-code. For example, I want to hide or grey out an existing "create button" on t-code SU01.
Thanks
‎2006 Apr 07 6:51 PM
hi,
you can do with <b>SHD0</b>(zero)transaction variant.
Regards
vijay
‎2006 Apr 07 6:46 PM
Naveen,
You can control authorizations at a granular level of CREATE / CHANGE / DELETE.
So, in this case, if you can take out the authorization of CREATE user your problem should be solved. Even if the button is greyed out, the user will get a message that he does not have authorization for CREATE.
Regards,
Ravi
Note : Please mark the helpful answers
‎2006 Apr 07 6:51 PM
hi,
you can do with <b>SHD0</b>(zero)transaction variant.
Regards
vijay
‎2006 Apr 07 7:05 PM
The program behind SU01 calls the function module SUSR_USER_MAINT_WITH_DIALOG. In here, there is a case statement and one of the WHEN conditions is the 'CREA' for create. In the logic here it checks for the AUTHORIZATION OBJECT 'S_USER_GRP'. Give the users '03' for the ACTIVITY field of this object and you should be good to go.
You can achieve this using authorizations, even though you will not be able to do the cosmetic change of greying out the CREATE option.
‎2006 Apr 07 7:09 PM
HI Naveen,
Yes, vijay is right.
we can achieve the same using Transaction Variant.
Where you mark your own ZSU01 as standard, users don't have to use different transaction code.
Do check this link also.
http://sap.ittoolbox.com/groups/technical-functional/mysap-l/default-values-in-report-screen-69823
Cheers
Sunny
Rewrd points , if found helpful
Message was edited by: Sunny
‎2006 Apr 07 7:10 PM
Hi Naveen,
You can use transactin code <b>SHD0</b> to create transaction variant to disable the button.
Please check this link for more information.
http://help.sap.com/saphelp_nw04/helpdata/en/7d/f639fb015111d396480000e82de14a/content.htm
or you can use <b>GuiXT</b> to disable button as well. Check this link for more detail.
http://www.synactive.com/docu_e/specials/guiscripting.html
Hope this will help.
Regards,
Ferry Lianto
‎2006 Apr 10 4:16 PM
I believe the best brains are in this forum. Used "SHD0", works like a charm.Thanks for all the tips from everyone.