on 09-19-2008 2:17 PM
Hi Experts...
I am new to CRM ...and WEB UI ENHANCEMENTS...
My Requirement : Provide F4 Value help for Opportunity field Partner Number Description(Component BTPARTNER,
Context Node BTPARTNER,
Structure PARTNER_NO_DESCR)
How do I provide F4 value help?I got a pointer as to implement code as below in GET_V method of field..
*************************************************************************
CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = '(CL_CRM_UIU_BP_IDTYPE_2_F4)' "#EC NOTEXT
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
Now what you have to alter is the variable lv_help_id to reflect a F4-Valuehelp class.As you can see CL_CRM_UIU_BP_IDTYPE_2_F4 is a normal ABAP class
implementing interface IF_BSP_WD_CUSTOM_F4_CALLBACK.
*************************************************************************
Now where do i implement IF_BSP_WD_CUSTOM_F4_CALLBACK interface?
I have to select Employees assigned to certain Positions and display the Name and ID of them in the Result window.How do I do that?
In which table are the relationships of BP and Positions stored?
Looking forward to some pointers...
Helpful Pointers would be rewarded..
Thanks...
Hi...
Problem solved using another method...Thanks...
This thread remains closed...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I Implemented F4 help by creating Z searchhelp from Zview table for BP (Competitor) in Abap, and called it directly in WebUi GET_V method as below:
data:
ls_map type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING,
lt_inmap type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING_TAB,
lt_outmap type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING_TAB,
ls_map-context_attr = 'STRUCT.ZZ_TIEBACK'. " attribute name
ls_map-f4_attr = 'NAME1'. " +field to be displayed in f4 +
append ls_map to: lt_inmap, lt_outmap.
create object rv_valuehelp_descriptor type CL_BSP_WD_VALUEHELP_F4DESCR
exporting
iv_help_id = 'Z_COMPETITOR' " +name of the z searchhelp created from view by joining BUT000/BUT100+
iv_help_id_kind = IF_BSP_WD_VALUEHELP_F4DESCR=>HELP_ID_KIND_NAME
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
Regards
Jignesh
Hi,
Thanks for the reply. I also did the same code in GET V but still its not working for me.
data:
ls_map type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING,
lt_inmap type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING_TAB,
lt_outmap type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING_TAB.
ls_map-context_attr = 'STRUCT.DESCRIPTION'.
ls_map-f4_attr = 'ATBEZ'.
append ls_map to lt_outmap,lt_inmap.
create object rv_valuehelp_descriptor type CL_BSP_WD_VALUEHELP_F4DESCR
exporting
iv_help_id = 'ZMKT_ATTR_DESC'
iv_help_id_kind = IF_BSP_WD_VALUEHELP_F4DESCR=>HELP_ID_KIND_NAME
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
Can you give me any clue where i need to look.
Regards,
Kamesh
Hi,
yes i did checked the import and export parameters in search help. i tried to implement the same search help in BP_HEAD component for NAME2 and it is working there. same code... i don't know why it is not working in BP_DATA/MarketingAttributesEOVP context node attributes-description.
any clues?
Regards,
kamesh
Hi Kamesh,
Kamesh it can be one of the reasons :
BP_DATA/MarketingAttributesEOVP seems to be overview page and probaly it will be always in display mode.The method METHOD GET_I_DESCRIPTION has { rv_disabled = 'TRUE'.} code which always disables so can be read only.Try and sctivate the below code
{*
DATA: current TYPE REF TO if_bol_bo_property_access.
*
rv_disabled = 'TRUE'.
IF iterator IS BOUND.
current = iterator->get_current( ).
ELSE.
current = collection_wrapper->get_current( ).
ENDIF.
*
TRY.
*
IF current->is_property_readonly(
'DESCRIPTION' ) = abap_false. "#EC NOTEXT
rv_disabled = 'FALSE'.
ENDIF.
*
CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
cx_crm_genil_model_error.
RETURN.
ENDTRY.
*
}
Also it is an attrubute set structure and the GET_V_ATTR_SET_DESCR method sets some values for description which might be overwriting get_v_description .
I'm unable to see this field in my WebUi so not 100% sure of above.Give it a try.
Regards
Jignesh
User | Count |
---|---|
5 | |
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.