on 2020 Mar 12 10:46 AM
Dear Experts,
I have a requirement where I need to do code changes in CRM webui.
The change is needed in Product components page.
From here i go to "Installed Bases"
Then i open one of the ibases list in the search page
Here in this page I need to disable or hide the Edit button for a particular Role (warranty coordinator)
I don't have any knowledge on Webui and underlying code.
1. How to find the find the program name where the edit button is there?
2. How to write the code to disable or hide the edit button when role = warranty coordinator?
3. How can i change the underlying SAP code ? Because this is not custom code.
Please help!
Thanks
Gopal
Request clarification before answering.
1. Create an Enhancement.
2. Search for table rt_buttons in your CRM Web UI Component.
3. If you want to hide the button remove the button info from rt_buttons. If you'd like to disable the button set the enabled property in rt_buttons table to false.
Hope this answers your question.
Cheers,
Sai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sai
I tried re-defining the method IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS as below.
But its not working. Edit button does not get hidden.
In debug mode i can see it calls this method but strangely it skips DELETE rt_buttons statement at the end.
Also i have observed that it is skipping READ TABLE rt_buttons.
Why is this so? what am i doing wrong? do I need to put my code in some other method ?
User | Count |
---|---|
19 | |
17 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.