cancel
Showing results for 
Search instead for 
Did you mean: 

F4 Help in SAP CRM WEB UI

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (8)

Answers (8)

0 Kudos

Hello Noreen,

Where have you added your EEWB attribute?

Have you added your EEWB feild into  Dquery Context Node?

BR,

MOHAMED

Former Member
0 Kudos

Hello Mohamed,

Thanks! I already resolved the issue. In the LS_MAP-CONTEXT_ATTR, we should pass the complete attribute name when we press F2 in the field from WEB UI.

Noreen

Former Member
0 Kudos

Hello Rajat,

Did you able to resolve the issue? I am facing the same. The value of my f4 Search help is not passed back to WEB UI field. Can you share with me the solution you did? I have the same codes and tried all possible solutions provided, but still not working.

Thanks!

Noreen

former_member209118
Participant
0 Kudos

Hi Gupta,

Try to use following code in get_v

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 = 'NAME_OF_FIELD_FROM_CONTEXT'. *ex struct.xyz

  ls_map-f4_attr = 'NAME_OF_FIELD_FROM_SEARCH_HELP'. *ex xyz

  APPEND ls_map TO: lt_inmap,lt_outmap.

CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr

EXPORTING

iv_help_id = 'name_of_search_help'   *  ex zxyz

iv_help_id_kind = IF_BSP_WD_VALUEHELP_F4DESCR=>HELP_ID_KIND_NAME

iv_input-mapping = lt_inmap

iv_output-mapping = lt_outmap.

thanks,

ashok.

former_member203215
Participant
0 Kudos

CREATE OBJECT RV_VALUEHELP_DESCRIPTOR
EXPORTING
IV_HELP_ID
=
IV_HELP_ID_KIND
=
IV_INPUT_MAPPING
=
IV_OUTPUT_MAPPING
=
I
V_TRIGGER_SUBMIT
= ABAP_TRUE.

  to get the value into f4 field just pass the abap_true to the iv_trigger_submit

anand_kumar56
Explorer
0 Kudos

Hi

I followed this Link "http://wiki.sdn.sap.com/wiki/display/CRM/How+to+provide+F4+Help" and resolved the issue ...

Hope it may help u...

Regards

Anand

MichaelNe
Employee
Employee
0 Kudos

Sorry the links are /people/yohan.kariyawasan/blog/2009/03/18/ui-framework-news-f4-help

and http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0646247-efe2-2b10-3b99-c1a12ef2d...

Former Member
0 Kudos

Hi Rajat,

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]

Thanks,

Rohit

Former Member
0 Kudos

Hi Rohit,

Thanks for the reply. I am refering the same artical which you have suggested, and in F4_ATTR i am using the field of search help.

Regards,

Rajat Gupta

ajaya_kumar
Active Participant
0 Kudos

Hi Rajat,

Refer the following link :

Regards

Ajay

Former Member
0 Kudos

Hi Ajay,

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.

Regards,

Rajat Gupta

Will revard points before closing this thread..

ajaya_kumar
Active Participant
0 Kudos

Hi Rajat,

Just check the following:

LS_MAP-CONTEXT_ATTR = 'STRUCT.ZZORDERADM_I0401'.

as this is the custom attribute, so this statement should be wihout STRUCT

LS_MAP-CONTEXT_ATTR = 'ZZORDERADM_I0401'.

Just try that.

Regards

Ajay

MichaelNe
Employee
Employee
0 Kudos

Hi,

guess your F4_ATTR in the mapping tab should be 'KEY'. See also:

Best Regards,

Michael

Former Member
0 Kudos

Hi Michael,

Thanks for reply.

The link which you have provided is for my thred. can you please again send me the link.

Regards,

Rajat Gupta