on 09-04-2008 9:49 AM
Hi Experts,
My requirement is to add a new button and disable GROUP button in MainSearchResult view of BP_HEAD_SEARCH component.The steps i followed are..
1.Created a Enhancement set in BSPWDVC_CMP_EXT and assign it to BSPWDV_EHSET_ASG in SM30.
2.Enhancing view MainSearchResult of BP_HEAD_SEARCH component using this Zenhancement set.
3.Redefin DO_PREPARE_OUTPUT method of impl class and add following code for disabling group button.
ls_button-enabled = abap_false.
and for add new button
<button>-text = 'Family'.
ls_button-id = 'CreateEmployee'.
ls_button-type = cl_thtmlb_util=>gc_icon_new.
ls_button-text = 'Employee'.
ls_button-on_click = 'CREATEEMP'.
ls_button-enabled = abap_true.
APPEND ls_button TO gt_button.
But nothing is reflecting while testing in CRM_UI_FRAME....please tell me what step i m missing and m i doing correct.
Thanks
Gaurav
Hi Gaurav,
the customizing you did seems OK. Just make sure you activated the EH-Set for the right client.
In the BP_HEAD_SEARCH component you need to enhance view MainSearchResult
The class is: cl_bp_head__mainsearchres_impl
Here redefining the DO_PREPARE_OUTPUT is correct.
You could just do the following:
DELETE gt_button where on_click = 'CREATEGROUP'.
Maybe you put a breakpoint in the method and check what is wrong?
cheers Carsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
problem has been solved....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
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.