cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic rendering of NWBC ESS menu

martin_svik2
Participant
0 Kudos

hi,

i have the requirement that menu in NWBC (for html) for ESS should be different for different users.

I know that there is BADI HRESS_MENU. I have implemented a Z-enhancement implementation in this BADI, BUT the implementation is not called.

I found out in SAP standard documentation that there is a filter setting in "pre called" BADI implementation HRESS_NWBC_MENU_EXT. the documentation says:

For the ESS (WDA) role in SAP NetWever Business Client for HTML, SAP delivers BAdI implementationHRESS_NWBC_MENU_EXT. This is used to modify the role menu at runtime, based on the BAdI: Specify Dynamic Rendering of Services (HRESS_MENU) BAdI implementation. This implementation has the technical name of the composite role as its filter value. If you copy the standard role (see Activities) and want the same flexibility of dynamic menu modification, you have to include the name of the newly copied role in the filter value HRESS_NWBC_MENU_EXT.

Well, i have a copied standard ESS role (Z-Role), BUT: how can i add a filter value to HRESS_NWBC_MENU_EXT ? This is sap standard object, when i click on change i have to enter SAP registration key for the object -> so this is an MODIFICATION, which is not allowed @my customer.

So how can i get my Z-role to the filter value of this Badi without modification ???

br, Martin

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

did you try the LPD badi: check this BADI_APB_LPD_MODIFY_LPD_LIST

it should work

martin_svik2
Participant
0 Kudos

hi,

i am NOT talking about LPD (launchpad), i am talking about nwbc with pfcg roles

so my way is the right one -> the only question left as mentioned: how can i add the Z-role to the filter of enchancement WITHOUT a need of sap key.

br Martin

siddharthrajora
Product and Topic Expert
0 Kudos

please can you share a screenshot where it asks you for key? it didnt ask when i try to add filter value, i need to confirm if i doing right steps

You are right for Z implementaiton of BADI it should not call for SAP access key, i need to check what steps you are taking

martin_svik2
Participant
0 Kudos

see screenshot: buttons for adding/changing filter values are greyed out in implementation HRESS_NWBC_MENU_EXT. i have to push the display/change button -> then i get popup for enterig sap key as this is an original object !!

SAP help clearly says to add the filter values in HRESS_NWBC_MENU_EXT. She underlined quote out of original SAP help:

f you copy the standard role (see Activities) and want the same flexibility of dynamic menu modification, you have to include the name of the newly copied role in the filter value HRESS_NWBC_MENU_EXT.

siddharthrajora
Product and Topic Expert
0 Kudos

check the note

2140184 - The dynamic filtering of the entries in the ESS Role is not happening when launching the ESS role through /UI2/NWBC. i was able to ask the filter value in BAdI 'BADI_NWBC_RUNTIME_EXT_ROLE' which calls this.

martin_svik2
Participant
0 Kudos

i have implemented the note before, but that has nothing to do with my issue itself. the question still is why i need a reg.key for that.

what do you mean by "i was able to ask the filter value" ???

siddharthrajora
Product and Topic Expert
0 Kudos

correct that note is not related, I meant I was able to enter the value

in this place 'BADI_NWBC_RUNTIME_EXT_ROLE' better to raise an oss message, as i couldnt find any note for this behavior

martin_svik2
Participant
0 Kudos

thank you, but WHERE you were able to enter the filter values ? maybe there is another place then in SE18/SE19 to enter filter values ?

can you maybe share a screenshot of where you can enter the values without getting asked for an SAP key ?

br Martin

siddharthrajora
Product and Topic Expert
0 Kudos

i entered it here

'BADI_NWBC_RUNTIME_EXT_ROLE' i  ll try again with the other role

martin_svik2
Participant
0 Kudos

so you don't get SAP key popup when changing original sap object 'BADI_NWBC_RUNTIME_EXT_ROLE' ? which transaction are you using for that ?


br Martin

siddharthrajora
Product and Topic Expert
0 Kudos

yes the above BADI and didnt get a sap key pop up

martin_svik2
Participant
0 Kudos

just to get sure: you are in SE18 and push the change button and get NO popup for SAP key ? thats strange !

see my screenshot: are you doing it the same way ?

br martin

siddharthrajora
Product and Topic Expert
0 Kudos

in first case, it comes like this without change

In second case i press change and see implementaiton and enter, still no pop up

martin_svik2
Participant
0 Kudos

but thats a sap standard object !

maybe you already have entered a key for this object long time ago ?!?

br Martin

Former Member
0 Kudos

You can add your own implementation.

Execute SE18

Click radio button Badi name

Type BADI_NWBC_RUNTIME_EXT_ROLE

Choose menu path: Enhancement Implementation->Create

I was able to invoke this badi with the role I was using as a filter to my implementation.

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

http://help.sap.com/erp_fao_addon10/helpdata/en/a4/b1b1674f1442c281f4956efecfc945/content.htm which role did you assign? SAP_EMPLOYEE_ESS_WDA_2? for example : This is the role that will call the BAdI HRESS_NWBC_MENU_EXT which calls the BAdI implementations of HRESS_MENU with the COUNTRY_FILTER filter value.

martin_svik2
Participant
0 Kudos

hi,

i know everything you wrote. as i said, i am using a Z-role as copy of SAP_EMPLOYEE_ESS_WDA_3 and i want to know how to set the filter without modification !

br Martin