cancel
Showing results for 
Search instead for 
Did you mean: 

Generate NWBC Menu for users in advance

Former Member
0 Kudos

Hi,

I was wondering if anybody knows a way to pre-generate the NWBC menu for all users? We notice that the NWBC menu can take some time to generate the first time for a user and we have also noticed that we sometimes need to run /UI2/NWBC_DELETE_MENU_CACHE to sort out problems for users. Running this program forces a menu rebuild for everyone which can be annoying for users to wait for.

Does anyone know if there is a way to run a batch job (e.g. overnight) that would fill the NWBC menu cache, ready for users the next day?

Thanks,

Simon

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Method /UI2/IF_NWBC_RUNTIME35~GET_NAVIGATION_TREES of ABAP class /UI2/CL_NWBC_RUNTIME35. Simply instantiate the runtime and call the method for the user(s). The method can be used to populate the SAP Menu, User Menu and Favorites caches.

Edit: note that if you want to run the program in the background, the NWBC runtime of course doesn't exist. If that is what you want to do, you will have to copy over the code from the ABAP class. In the end it's simply code that calls the standard PFCG function modules (which do not require a NWBC runtime) and stores the result in database tables (cluster and transparent). The NWBC runtime stores the cache also in the ABAP session but as long as it is in the database cache, it will be fast.

Former Member
0 Kudos

Thanks Samuli. I might add this to the feature request list for NWBC 🙂

Answers (0)