Hi swarup!
Please follow the link:
Take in count that in case of TableView Custom the field must contanier something like this:
method GET_V_ZZFLD00000S.
DATA:
lv_fieldname TYPE name_komp,
lt_fieldname_additional TYPE crmt_attr_name_tab,
lv_bp_category TYPE bu_type ,
lr_builheader TYPE REF TO cl_crm_bol_entity.
**********************************************
lv_bp_category = '1'.
lv_fieldname = 'ZZFLD00000T'.
INSERT lv_fieldname INTO TABLE lt_fieldname_additional. "#EC NOTEXT
CALL METHOD ZCL_CRM_IU_IC_OBJ_VALUEHELPZ=>GET_F4_TIPO_ID
EXPORTING
it_fieldname_additional = lt_fieldname_additional
iv_bpcategory = lv_bp_category
iv_index = iv_index
RECEIVING
rv_valuehelp_descriptor = rv_valuehelp_descriptor
EXCEPTIONS
OTHERS = 0.
endmethod.
The method must container somethink like this:
method GET_F4_TIPO_ID.
DATA:
lv_fieldname TYPE name_komp,
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.
DATA: iv_index TYPE sy-tabix,
lv_index TYPE string.
ls_map-f4_attr = 'TAXTYPE' ."
lv_index = ziv_index.
CONDENSE lv_index.
CONCATENATE 'TABLE[' lv_index '].ZZFLD000014' INTO lv_fieldname.
ls_map-context_attr = lv_fieldname.
INSERT ls_map INTO TABLE lt_outmap.
Good Luck!!
Best regards,
JMP.