cancel
Showing results for 
Search instead for 
Did you mean: 

CRM Search View F4 help - HELP_ID and SERVER_EVENT not working together

adwait_bachuwar
Active Contributor
0 Kudos

Hi All,

I have requirement to trigger server event when user selects entry on F4 value help pop-up. I have  written below code in GET_DQUERY_DEFINITIONS method.

  READ TABLE rt_result ASSIGNING <lf_result> with key FIELD = 'ZZSALES_OFFICE_S'.

  IF sy-subrc eq 0 and <lf_result> is ASSIGNED.

      <lf_result>-help_id-help_id = '(CL_CRM_UIU_ORGSET_SLS_OFF_VH)'.

      <lf_result>-help_id-help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp.

      <lf_result>-OUTPUT_MAPPING-context_attr = 'EXT.ZZSALES_OFFICE_S'.

      <lf_result>-OUTPUT_MAPPING-f4_attr      = 'KEY'.

      <lf_result>-INPUT_MAPPING-context_attr = 'EXT.ZZSALES_GROUP_S'.

      <lf_result>-INPUT_MAPPING-f4_attr      = 'ZZSALES_GROUP_S'.

      <lf_result>-SERVER_EVENT                = 'EMPL_SEL'.

  ENDIF.

I have observed one thing when we specify only server_event and leave other values(help_id, context_attr....) blank its working and triggers server event.

Please can you suggest a way to enable both the functionality together.

Thanks and regards,

Adwait

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member205429
Contributor
0 Kudos

HI Adwait,

You can achieve the Server event and F4 Help using the GET_P method of the attribute..

pls check the same and let me know in case of any issues !!