on 01-07-2015 11:42 AM
Hi Experts,
I have created one custom component in BSP_WD_CMPWB. Then I have added one view and created one value node with one field PARTNER in that custom view. I have put the below code in the GET_V method of that field. The f4 help is coming properly. But when I selecting any row of that f4 help popup the value is not coming in that field.
METHOD get_v_partner.
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.PARTNER'.
ls_map-f4_attr = 'PARTNER'.
APPEND ls_map TO: lt_inmap,lt_outmap.
CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = 'ZSWBUPA' "#EC NOTEXT
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>HELP_ID_KIND_DTEL
iv_trigger_submit = 'X'
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap
* IV_OBJECT_REF =
iv_f4title = 'Select Business Partner'.
ENDMETHOD.
Hi Swarup,
i hope you might have checked but just for my confirmation did you check the field in search help.
in context_attr you have passed structure.xxx where as f4_attr that should be the field of search help field name.
ex:
LS_MAP-CONTEXT_ATTR = 'STRUCT.BP_NUMBER'.(Attribute name with Struct.)
LS_MAP-F4_ATTR = 'COUNTRY'. (Search help field attribute in se11)
see this.. link..
Regards,
Srinivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swarup,
Possible mistake could be the f4_attr name that you are specifying.
ls_map-f4_attr = 'PARTNER'.
f4_attr is the name of search help field name.
Thanks,
Ritu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you have found your solution, then you should close your discussion by marking correct and helpful answer (if any). Have a look into the blog post How to close a discussion and why | SCN
User | Count |
---|---|
7 | |
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.