Skip to Content
0

dynamic menu rendering with nwbc for html

Dec 02, 2017 at 03:54 PM

60

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member
Dec 04, 2017 at 01:38 PM
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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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
Former Member

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

0