How to get the URL of CRM web UI
- Determine UI ObjectType for URL
READ TABLE lt_orderadm_h_ref INDEX 1 INTO ls_orderadm_h_ref.
lv_bor_object_key = ls_orderadm_h_ref-guid.
CALL METHOD cl_crm_ui_object_mapping_srv=>get_instance
RECEIVING
rv_result = lr_mapping_srv.
lr_bol_core = cl_crm_bol_core=>get_instance( ).
lr_bol_core->start_up( iv_appl_name = 'BT' iv_display_mode_support = abap_true ).
CALL METHOD lr_mapping_srv->determine_ui_object_of_bor
EXPORTING
iv_bor_object_key = lv_bor_object_key
iv_bor_object_type = ls_orderadm_h_ref-object_type
iv_logical_system = ls_orderadm_h_ref-logical_system
RECEIVING
rv_result = lv_ui_object_type.
If you already know for which object you will need the url, then you can just add guid to the url structure.
The structure of url is:
VARIABLE1/sap/bc/bsp/sap/crm_ui_start/default.htm? VARIABLE2& VARIABLE3& VARIABLE4
VARIABLE2 = UI Componentu2019s Design layer Object Type (crm-object-type=BT126_APPT - for activities)
VARIABLE3 = UI Action to to give edit or display authorization (crm-object-action=B)
VARIABLE4 = Request GUID (crm-object-value=GUID)
Post a Comment