cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding buttons based up on business role; Is possible by the BASIS?

Former Member
0 Kudos

Hi Experts,

I have done one enhancement for hiding the buttons according to Business role using coding but it was not possible for all the desired buttons since I couldnu2019t find out relevant internal tables for the buttons.

Now we are planning to do the same activity by the BASIS help.

Are Hiding buttons based up on user or business role can be possible by the BASIS activity like authorization object to handle the drop downs based up on roles .

If possible please suggest me the way out to resolve the issue using any kind of BASIS activity.

Thanks

Chand

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This can be achieved only through the code.

These are the areas to look for the buttons.

1. HTML page

2. METHOD IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS

3. Method DO_PREPARE_OUTPUT

4.IF_BSP_WD_TOOLBAR_CALLBACK~GET_SYSTEM_BUTTONS

(Overview pages dont have HTML pages)

Regards,

Masood Imrani S.

prasenjit_sharma
Active Contributor
0 Kudos

Hello,

I do not think that the BASIS can help you in deleting/hiding buttons from the UI. Generally, the buttons are stored in the GT_BUTTON/GT_BUTTONS attribute of the overview view/viewset controller. In some cases it may be hard coded inside the htm page as well in the form of HTML tags.

We'd definitely need to do some programming to achieve the functionality you are looking for, Also remember it is different for different views. You need to find out the view that has the buttons.

Do a F2 on your UI screen to find out the details of the screen.

Regards

Prasenjit