Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8411

Re: Copy "Followup" functionality on new button click

$
0
0

Hi Sal ,

 

This could be achieved. You need to define

a) Button

b) Event Handler for the button

c) Calling the method for followup

Follow_Up.png

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.


Viewing all articles
Browse latest Browse all 8411

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>