on 2013 Jan 25 12:48 PM
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
Request clarification before answering.
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 !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
2 | |
1 | |
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.