Friday, January 22, 2016

Transaction Launcher

Please go through the following document.


All About Transaction Launcher




Call Transaction Launcher from Button or Link:

  1. Define the URL in SPRO-> Customer Relationship Management-> UI Framework-> Technical Role Definition-> Transaction Launcher-> Define URLs and Parameters
  2. Create a new URL ID
    • Class ZCL_TEST_CLASS will be created inheriting the interface: IF_CRM_IC_LTX_URL_ADMIN.
    • Method GET is defined to pick the URL.
  1. Write code in method IF_CRM_IC_LTX_URL_ADMIN~GET_URL_DATA and pass the complete URL in parameter CV_URL. Use this method to pass dynamic URL with different IDs if required.
  2. Create Transaction Launcher with this URL ID as per process and assign it to a Logical Link.
  3. Now the TL can be called from any button of hyperlink by code.


Sample code:


Data: lo_window TYPE REF TO cl_bsp_wd_window.


lo_window me->view_manager->get_window_controller( ).
lr_navigation 
cl_crm_ui_navigation_service=>get_instancelo_window ).
lr_navigation
->navigateiv_link_id = <Logical_Link_ID> ). "Logical Link ID