11 Replies Latest reply: Dec 12, 2013 6:31 PM by ashok gondi RSS

F4 Help in SAP CRM WEB UI

Rajat Gupta
Currently Being Moderated

Hi All,

 

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

 

METHOD GET_V_ZZORDERADM_I0401.

  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 = 'STRUCT.ZZORDERADM_I0401'.

  LS_MAP-F4_ATTR = 'PROJECT'.

  APPEND LS_MAP TO: LT_INMAP, LT_OUTMAP.

  CREATE OBJECT RV_VALUEHELP_DESCRIPTOR

    TYPE

      CL_BSP_WD_VALUEHELP_F4DESCR

    EXPORTING

      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.

ENDMETHOD.

 

and  in GET_P_ method

 

METHOD GET_P_ZZORDERADM_I0401.

  CASE IV_PROPERTY.

    WHEN IF_BSP_WD_MODEL_SETTER_GETTER=>FP_FIELDTYPE.

      IF IV_DISPLAY_MODE EQ ABAP_TRUE.

        RV_VALUE = CL_BSP_DLC_VIEW_DESCRIPTOR=>FIELD_TYPE_EVENT_LINK.

      ELSE.

        RV_VALUE = CL_BSP_DLC_VIEW_DESCRIPTOR=>FIELD_TYPE_INPUT.

      ENDIF.

    WHEN IF_BSP_WD_MODEL_SETTER_GETTER=>FP_ONCLICK.

      RV_VALUE =  ' '.   "EC NOTEXT

  ENDCASE.

ENDMETHOD.

 

Regards,

 

Rajat Gupta