cancel
Showing results for 
Search instead for 
Did you mean: 

how to create f4 thorugh elementary search help

Former Member
0 Kudos

Hi,

I have elementary / collective search help which is created in se11 then i want to show this on web ui so i know we have to implement get_p and get_v please guide me what i need to write in get_v methods provide sample code...

divya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Divya,

In GET_P method you have to place the below code

CASE iv_property.
*   Set the field type
    WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
      rv_value = cl_bsp_dlc_view_descriptor=>field_type_input.
  ENDCASE.

Regards,

Lakshmi.Y

Former Member
0 Kudos

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

ls_map-context_attr = 'CAMPAIGN_ID'.

ls_map-f4_attr = 'EXTERNAL_ID'.

append ls_map to: lt_inmap, lt_outmap.

create object rv_valuehelp_descriptor

type

cl_bsp_wd_valuehelp_f4descr

exporting

iv_help_id = THIS IS Z SEARCH HELP NAME IN SE11

iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name

iv_trigger_submit = 'X'

iv_input_mapping = lt_inmap

iv_output_mapping = lt_outmap.

I want CAMPAIGN ID Back in UI so I have given it in INMAP and OUTMAP Tables. Give your required field in INMAP AND OUTMAP Tables.