cancel
Showing results for 
Search instead for 
Did you mean: 

Why is my enhancement not called?

Former Member
0 Kudos

Hello experts.

I am the first one enhancing the webclient component in the CRM7.0 in my current project. So I just did what I've done before in other projects as below:

in bsp_wd_cmpwb, enter the component name which is BT116H_MAIL, click the button to make the field for enhancement set visible, and enter z-enhancementset, then click hte display button. Once inside the workbench, click the button "Enhance Component". then right mouse click on the view to enhance the view which is send_screen. Then redefine the method do_prepare_output.

I set external breakpoint in the redefinition of do_prepare_output (which is in the z-class) and also breakpoint in the parent's do_prepare_output, when I run the crm_ui, the execution stops at hte parent's do_prepare_output, but not in the redefinition of my z-class. Which means, it still takes SAP standard controller class, not the enhanced controller z-class.

I've verified in the SICF and see that the z-bsp application is active, I also checked the send_screen.do, the controller class is indeed my z-class.

So, guys, what happens here? what can cause this strange thing?

Thousands of thanks.

Jayson

BTW, for the view, we're using the standard UI configuration, I don't think this can cause hte problem though.

Edited by: Jayson on Oct 4, 2011 8:29 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

First test this..

before clicking any of the button which should hit your custom code, click in any of the fields in the view which you have enhanced and click F2. It should show your custom enhancement set. If it does not show then follow below mentioned steps.

this problem can happen if the enhancement set is not assigned with ur user id when u login with your business role. And this can happen in two ways --

1. you have not maintained the z-enhancement set in the table BSPWDV_EHSET_ASG for your client. or

2.If the BADI component_loading is custom implemented and active, the enhancement set assignment is changed in runtime there.

Let us know what is happening ?

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jayson,

Just to be sure, check the following:

- That the Enhancement Set is in the corresponding client (view BSPWDV_EHSET_ASG).

- Check if there is a custom implementation of the BAdI Definition COMPONENT_LOADING that may affect.

Hope it helps.

Regards,

Isaac