on 05-27-2014 4:01 PM
Hi!
I enhanced the component ICCMP_BP_DETAIL for the view BuPaCreate. I redefined the event handler EH_ONSAVE, but is not called the redefinition always call the standard code.
I need the code redefined is being called. I reviewed the DO_HANDLE_EVENT method and have the following code:
* Eventhandler dispatching
CASE htmlb_event_ex->event_server_name.
WHEN 'PARTNERCATCHANGED'. "#EC NOTEXT
eh_onpartnercatchanged( htmlb_event = htmlb_event
htmlb_event_ex = htmlb_event_ex ).
WHEN 'save'. "#EC NOTEXT
eh_onsave( htmlb_event = htmlb_event
htmlb_event_ex = htmlb_event_ex ).
WHEN OTHERS.
global_event = super->do_handle_event( event = event
htmlb_event = htmlb_event
htmlb_event_ex = htmlb_event_ex
global_messages = global_messages ).
ENDCASE.
I assume that you already looked at the viewcluster BSPWDVC_CMP_EXT and validated that the component enhancement for that component exists in the listing of enhancements for your active enhancement set?
Also another basic thing would be are you logging into business role that is assigned to your enhancement set?
It woudl be very strange for the method redefintion to not be called, if you enhanced things the right way and your business role configuration was correct.
OH also make sure you don't have WCF_IGNORE_ENHANCEMENT set on your userid. That would also cause the code not to run .
Take care,
Stephen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stephen,
I checked the viewcluster BSPWDVC_CMP_EXT and I validated that the component enhancement for that component exists in the listing of enhancements. I attached one picture about this.
When you say "business role that is assigned to your enhancement set", where is the customizing for do that?
I don't have WCF_IGNORE_ENHANCEMENT set on me user...
Thanks for the help.
David
Hi Sandeep,
The event DO_HANDLE_EVENT is redefined and not works properly. I don't what is the reason why the system call the standard code and not call the redefinition.
Any idea?
Thanks,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For your information,
We are working with SAP CRM EhP3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
Event names are case sensitive. I assume in your case the event name would be 'SAVE'.
So can you redefine your DO_HANDLE_EVENT and modify the code as below:
WHEN 'SAVE'. "#EC NOTEXT
eh_onsave( htmlb_event = htmlb_event
htmlb_event_ex = htmlb_event_ex ).
I hope that solves your problem.
Thanks,
Sandeep
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.