Please go through the following document.
All About Transaction Launcher
All About Transaction Launcher
Call Transaction Launcher from Button or Link:
- Define the URL in SPRO-> Customer Relationship Management-> UI Framework-> Technical Role Definition-> Transaction Launcher-> Define URLs and Parameters
- 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.
- 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.
- Create Transaction Launcher with this URL ID as per process and assign it to a Logical Link.
- 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_instance( lo_window ).
lr_navigation->navigate( iv_link_id = <Logical_Link_ID> ). "Logical Link ID
lr_navigation = cl_crm_ui_navigation_service=>get_instance( lo_window ).
lr_navigation->navigate( iv_link_id = <Logical_Link_ID> ). "Logical Link ID
No comments:
Post a Comment