on 05-16-2011 7:15 AM
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
Hello Noreen,
Where have you added your EEWB attribute?
Have you added your EEWB feild into Dquery Context Node?
BR,
MOHAMED
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
CREATE OBJECT RV_VALUEHELP_DESCRIPTOR
EXPORTING
IV_HELP_ID =
IV_HELP_ID_KIND =
IV_INPUT_MAPPING =
IV_OUTPUT_MAPPING =
IV_TRIGGER_SUBMIT = ABAP_TRUE.
to get the value into f4 field just pass the abap_true to the iv_trigger_submit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry the links are /people/yohan.kariyawasan/blog/2009/03/18/ui-framework-news-f4-help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
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.