cancel
Showing results for 
Search instead for 
Did you mean: 

HELP NEEDED....F4 VALUE HELP IN WEB UI

Former Member
0 Kudos

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...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi...

Problem solved using another method...Thanks...

This thread remains closed...

Former Member
0 Kudos

Hi Swapna,

Could you please tell me, how did you solve it? I need to put F4 help for description field in BP_DATA/MarketingAttributesEOVP .

Regards,

Kamesh

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

This message was moderated.