cancel
Showing results for 
Search instead for 
Did you mean: 

Default values for F4 helps

venkata_bharath
Participant
0 Kudos

Hi All,

How to provide the default value for the F4 helps.

That component is in WEB IC,its component name is IUICMDC and it's view is searchall , context node is search, context node attribute is STRUCT.X_COUNTRY . This attribute is for countries ,in this F4 Help it should show default drop down as 'us'.

What can i do for this?

Regards,

Venkatabharath Voona

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Redefine the GET_V method : Put following Code

Copy Search Help CRM_COUNTRY into some Zname from SE11.

go to change Mode and in search help give DEFAULT as US in DEFAULT VALUE column for LAND1.

Then put following code and comment other code.



  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.

data: F4_ADDR1_X_COUNTRY type ref to CL_BSP_WD_VALUEHELP_F4DESCR.

  IF NOT f4_addr1_x_country IS BOUND.
    ls_map-context_attr = 'struct.x_country'.               "#EC NOTEXT
    ls_map-f4_attr      =  'LAND1'.                            "#EC NOTEXT
    APPEND ls_map TO: lt_inmap, lt_outmap.

    CREATE OBJECT f4_addr1_x_country TYPE cl_bsp_wd_valuehelp_f4descr
      EXPORTING
        iv_help_id        = Give Z Search HElp Name
        iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
        iv_input_mapping  = lt_inmap
        iv_output_mapping = lt_outmap.

  ENDIF.

   rv_valuehelp_descriptor ?= f4_addr1_x_country.

Regards,

Naresh

Answers (1)

Answers (1)

former_member193352
Active Contributor
0 Kudos

Hello Venkat,

I believe its a standard field. Kindly refer to my reply in your another thread for this thread's reply.

Request you not to post duplicate questions.

Thanks

Vishal