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

Navigation using a descriptor object

$
0
0

Hi Experts,

 

Navigation of collection using a standard outbound plug(Navigate_display) at window level which will navigate from component(BT126H_APPT) to component (ICCMP_AUTO_VEHM) that i have done with passing lr_col in OP_navigate_display , its working fine.

 

This (ICCMP_AUTO_VEHM) component has a event button as more_options which again will move to other component(PRDIOOV).

 

Now My question, i want to Navigate from (BT126H_APPT) hyperlink  to (PRDIOOV) Overviewpage

 

I have use this code in EH_ONEVENT

 

CALL METHOD cl_crm_ui_descriptor_obj_srv=>create_entity_based

               EXPORTING

                 ir_entity           = lr_child_entity

                 iv_ui_object_type   = 'PRD_OBJ'

                 iv_component        = 'PRDIOOV'

                 iv_ui_object_action = 'B'            "display

               RECEIVING

                 rr_result           = lr_nav_descr.

 

             CREATE OBJECT lr_data_collection

               TYPE

               cl_crm_bol_bo_col.

 

             "  Add the UI Descriptor the BOL Collection

             lr_data_collection->add( lr_nav_descr ).

             lr_data_collection->insert( iv_bo = lr_iobject

                                     iv_index = 2 ).

             "  Get Instance of Navigation Service

             lr_nav = cl_crm_ui_navigation_service=>get_instance( ).

             "  Navigate to Target Component

             IF lr_nav->is_dynamic_nav_supported( lr_nav_descr ) = abap_true.

               lr_nav->navigate_dynamically( lr_data_collection ).

             ENDIF.

 

Now now the problem is in spro config -- define nav bar profile -- the Zbusiness_role  in which Generic outbound mapping of the standard UI object type of PRD_OBJ is mapped with

ICCMP_AUTO_VEHM component target_id  ,

 

So I want to know how to create a Z UI object type of PRD_OBJ and assign a target_id of PRD_OBJ(display).

 

Please guide me , or is there any other way to achieve this....

 

Regards,

Sumeet


Viewing all articles
Browse latest Browse all 9238

Trending Articles



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