I have created a Z field using EEWB and used that Z field on WEB UI and even provided a F4 help by using GET_V_ method and i can see the F4 help in WEB UI, the problem which i am facing is that when i select any value from F4 help its not getting transferred to the field and field is remaining blank with no value but when i am trying to put value manually the field is accepting the value please help. I am using a Z elementary search help the code i have used in GET_V_ method is
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.ZZORDERADM_I0401'.
LS_MAP-F4_ATTR = 'PROJECT'.
APPEND LS_MAP TO: LT_INMAP, LT_OUTMAP.
CREATE OBJECT RV_VALUEHELP_DESCRIPTOR
IV_HELP_ID = 'ZCRMEPROJECT' "'ZCRMEPROJECT'
IV_HELP_ID_KIND = IF_BSP_WD_VALUEHELP_F4DESCR=>HELP_ID_KIND_NAME
IV_INPUT_MAPPING = LT_INMAP
IV_OUTPUT_MAPPING = LT_OUTMAP.
and in GET_P_ method
IF IV_DISPLAY_MODE EQ ABAP_TRUE.
RV_VALUE = CL_BSP_DLC_VIEW_DESCRIPTOR=>FIELD_TYPE_EVENT_LINK.
RV_VALUE = CL_BSP_DLC_VIEW_DESCRIPTOR=>FIELD_TYPE_INPUT.
RV_VALUE = ' '. "EC NOTEXT
guess your F4_ATTR in the mapping tab should be 'KEY'. See also: F4 Help in SAP CRM WEB UI
Make sure value of F4_attr is the field name in the search help and not the view attribute name.
Check this detailed article on SDN for more help:
[How-To Guide: Implement Value Helps in GenIL Components|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0646247-efe2-2b10-3b99-c1a12ef2d752?quicklink=index&overridelayout=true]
Refer the following link :
Thanks for the reply, I did whatever is mentioned in the thread still i am not able to get the desired result, in F4_ATTR field i am passing the field name of my elementary view as mentioned in the thread.
You can refer my code which i have put while creating this thread.
Will revard points before closing this thread..
Sorry the links are /people/yohan.kariyawasan/blog/2009/03/18/ui-framework-news-f4-help