Hi Sal ,
This could be achieved. You need to define
a) Button
b) Event Handler for the button
c) Calling the method for followup
d) The following code needs to be invoked from Event Handler to ensure copy functionality
* Execute entity method
DATA: lv_items TYPE REF TO cl_crm_bol_entity.
lv_items->execute( iv_method_name = ‘RenumberItems’ ).
* ... with input parameters and a list of BOL entities
returned
DATA: ls_param TYPE crmt_name_value_pair,
lt_param TYPE crmt_name_value_pair_tab,
lv_result TYPE REF TO if_bol_entity_col.
ls_param-name = ‘PROCESS_TYPE’.
ls_param-value = ‘TSRV’.2 Basic Features of the BOL Application Programming Interface
append ls_param to lt_param.
TRY.
lv_result = lv_order_header->execute( iv_method_name =
‘createFollowUp’
it_param = lt_param ).
* Error handling
CATCH CX_CRM_BOL_METH_EXEC_FAILED.