cancel
Showing results for 
Search instead for 
Did you mean: 

Transaction launcher ; we are try to call z and standard transaction in UI

Former Member
0 Kudos
62

As per the requirement, we are trying to call CRM Z transaction through web UI. We have used the Object TSTC and created a replica of the object ZTSTC and used the method execute. Made the necessary config for navigation bar and Business role. We could see the link in the Navigation bar but the link could not call the transaction. Pls suggest.Do we need to take the object of the Transaction or copy TSTC and proceed. Thanks in advance.Points will be awarded

Accepted Solutions (0)

Answers (1)

Answers (1)

ratna_rajeshp
Active Participant
0 Kudos

Hi,

Please follow the steps for calling you logical link.

When you create a Logical Link, you also should give the Target ID.

Now In the Naivigation Bar Profile you will have some thing called as Define Geniric OP Mapping

Here add a entrty with any Name , and give your target ID here.

For eg : ZCall_ZREPORT :Target Id ; Given in the step 1.

And in you even handler of the button write the followng code.

DATA: lr_nav_descr TYPE REF TO if_bol_bo_property_access.

DATA: lr_navigation TYPE REF TO if_crm_ui_navigation_service.

DATA: lr_col TYPE REF TO cl_crm_bol_bo_col.

cl_crm_ui_descriptor_obj_srv=>create_ui_object_based(

EXPORTING iv_ui_object_type = ZCall_ZREPORT

iv_ui_object_action = 'B'

RECEIVING rr_result = lr_nav_descr ).

CHECK lr_nav_descr IS BOUND.

lr_navigation = cl_crm_ui_navigation_service=>get_instance( ).

CHECK lr_navigation IS BOUND.

  • Check whether navigation is supported

IF lr_navigation->is_dynamic_nav_supported( lr_nav_descr ) NE abap_true.

RETURN.

ELSE.

CREATE OBJECT lr_col.

lr_col->if_bol_bo_col~add( iv_entity = lr_nav_descr ).

lr_navigation->navigate_dynamically( lr_col ).

Regards,

Ratna Rajesh