cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic menu rendering with nwbc for html

raffi1
Participant
0 Kudos

Hi altogether,

I have a requirement to hide/show links to WDA-applications in NWBC for HTML, based on one personal information of the logged in user. We are calling the NWBC as cockpit and not throught the standard URL (/sap/bc/nwbc).

I tried the following BAdIs:

  • HRXSS_SERVICE_FILTER: Is called at the moment when I open the WDA-application and that is too late.
  • HRESS_MENU: is only called with a role assignment (based on post BAdI BADI_NWBC_RUNTIME_EXT_ROLE) --> Does not help here, because we don't have the infomation of the role when starting the NWBC as cockpit. I tried it with my own implementation. It only works when calling NWBC the standard way.
  • NWBC_RUNTIME_EXTENSION: Is never called.

Are there any alternatives (besides different roles)? Do I miss something?

Thanks in advance and best regards

Christian

Accepted Solutions (0)

Answers (1)

Answers (1)

Hi Christian,

there were some problems with the BAdIs not being called in the past - which should have been resolved by now..

Can you please check whether SAP note 2481347 resolves your problem?

Best regards,

Mona

raffi1
Participant
0 Kudos

Hi Mona,

thanks for the answer. The problem is now solved for nearly all users without the help of that note. Nevertheless I will check if the note can be implemented.

How did we solve it?

Using the BAdI NWBC_RUNTIME_EXTENSION was correct. It was not called, because cache table NWBC_NAV_TREE was filled for most of the users. After clearing that table with the report NWBC_DELETE_MENU_CACHE and the browser cache, it worked as expected.

But it is still no 100%-solution. Sometimes the problem comes up again, even if the mentioned caches are cleared.

best regards

Christian

0 Kudos

Hi Christian,

thanks for sharing your solution.

Also, as far as I know, implementing the note resolves the problem altogether, I'd give it a try 😉

Best regards,
Mona