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

Grey out button in t-code

Former Member
0 Likes
2,622

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,888

hi,

you can do with <b>SHD0</b>(zero)transaction variant.

Regards

vijay

6 REPLIES 6
Read only

Former Member
0 Likes
1,888

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

Read only

Former Member
0 Likes
1,889

hi,

you can do with <b>SHD0</b>(zero)transaction variant.

Regards

vijay

Read only

0 Likes
1,888

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.

Read only

Former Member
0 Likes
1,888

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

Read only

ferry_lianto
Active Contributor
0 Likes
1,888

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

Read only

Former Member
0 Likes
1,888

I believe the best brains are in this forum. Used "SHD0", works like a charm.Thanks for all the tips from everyone.