Hi Srinivas,
I solved that problem . Thanks for your help.
I have another issue.
I have to disable the edit/delete button under the Actions tab for the assignment block Address Types in Accounts. I have to disable them based on the dropdown value of the address type. If the address type is billing address only then i have to disable the buttons for actions. I have written code in GET_OCA_T_TABLE. But its getting disabled for all the dropdown values. I have given the code below. Can you please help me with this.
DATA: ls_one_click_action TYPE crmt_thtmlb_one_click_action.
DATA: lr_entity TYPE REF TO cl_crm_bol_entity,
lr_addr TYPE REF TO cl_crm_bol_entity,
lr_addr_collection TYPE REF TO if_bol_bo_col.
data : lr_cuco type ref to cl_bp_addr_cucoaddress_impl,
lr_col type ref to cl_bsp_wd_collection_wrapper,
lv_partner type string,
lv_addr type string.
lr_entity ?= collection_wrapper->get_current( ).
clear lv_addr.
ls_one_click_action-id = 'DELETE'. "#EC NOTEXT
ls_one_click_action-icon = 'delete.gif'.
ls_one_click_action-text = ''.
ls_one_click_action-tooltip = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BP/BP_DELETE' )."#EC NOTEXT
check lr_entity is bound.
CALL METHOD lr_entity->get_property_as_value
EXPORTING
iv_attr_name = 'ADDRESSTYPE'
IMPORTING
ev_result = lv_addr.
if lv_addr = 'BILL_TO'.
ls_one_click_action-active = abap_false.
else.
ls_one_click_action-active = abap_true.
endif.
APPEND ls_one_click_action TO rt_actions.
endmethod.
Regards
Geeth