cancel
Showing results for 
Search instead for 
Did you mean: 

Hide/Disable back button

Former Member
0 Kudos

Hi,

I have a requirement to hide the back button on the Web UI. Please provide pointers on how to do that.

Any pointers would be highly appreciated.

Regards,

Radhika

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Radhika,

You can disable the button in the technical profile associated with the business role.

Regards

Yogesh Kathe

Former Member
0 Kudos

Hi,

Thanks for providing some pointers.

I have tried this approach, but it did not help me. In my requirement, the user should not be allowed to navigate to any other transaction for a particular business role. The Back button(of the CRM system) on the Web UI is still enabled and functioning as it was doing before. Please share if any other setting is also required along with the previous mentioned changes.

Regards,

Radhika

former_member192716
Contributor
0 Kudos

Hi Radhika,

As an alternative approach, you can achieve this through coding. The standard Back button on the top right side is from the component BSPWD_BASICS, view BreadCrumbView. The button is created in the layout page.

But making any changes to this layout will impact on the whole web ui, so use specific conditional statements to ensure the button is disabled only for the pages you need.

Regards,

Arun

Former Member
0 Kudos

Hi Yogesh,

I tried the way you referred. But at runtime, the enhancement set for this componenet is not triggered. Only the SAP standard code gets executed here. Please tell if some other modification is required. If i by pass some piece of code in the .htm page, the required functionalityy is achieved. But here the issue is that the enhanced piece of code is not getting executed/triggered.

Regards,

Radhika

former_member192716
Contributor
0 Kudos

Hi Radhika,

For bspwd_basics component the enhanced version will not get triggered as this will be called immediatly after the ui frame.

So you have to modify the standard code, that is why i mentioned you need to take utmost care in modifying it.

Regards,

Arun

Former Member
0 Kudos

Hi Arun,

I tried validating if the component enhancement is not getting determined for the component bspwd_basics. I had put a breakpoint in the implementation class of BADI COMPONENT_LOADING. The observation here was that the enhancement set is getting determined before the component is triggered. Hence it should have executed the custom code.

Moreover, the only way I understand to enhance the standard code is 'Implicit Enhancement'. If I try doing that, then the modification can be made only at the start or at the end of standard code, but here i would have to add my code in between.

Please correct me if my understanding is wrong.

Regards,

Radhika

former_member189678
Active Contributor
0 Kudos

There is a Method in the WIndow IMPL class/Component Controller IMPL class/Viewset IMPL clas which has WD_DESTROY method implemented. Please put a breakpoint there and you will come to know where to make changes. Don't try to do Implicit Enhancement it will impact rest of the application as well.

Rg.

Harshit

Former Member
0 Kudos

Hi Harshit,

Thanks for the inputs.

I tried the approach, but this helped me in disabling the Forward button once i click on Back button by skipping the piece of code in wd_destroy method of the window impl class. On the similar lines, I tried finding out the piece of code which would help in disabling the Back button, but I could not find any breakthrough.

Regards,

Radhika

Former Member
0 Kudos

Hi Radhika

I also have similar requirement.. Could you please share some more info. to disable the back button.

Thanks

Hemalatha

Former Member
0 Kudos

Hi Hemalatha,

We were able to back this requirement. Back button is not specific to any transaction. It is in general for the Web UI and is not advisable to modify it.

Regards,

Radhika

Former Member
0 Kudos

Hi.

Go to SPRO: CRM > UI Framework > Technical Role Definition > Define Technical Profile

Here you have to maintain the field "Disable Browser Back Support" for the technical profile that its linked to your business role.

If you choise enable bowser back support, the back option from your internet browser will represent the back of your CRM tool... if you disable the back button from your browser takes you off of application.

Regards.