cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic navigation to Campaign page from BP_HEAD

Former Member
0 Kudos

hi experts,

I have created a new z component and displaying it as assignment block in the BP_HEAD view there is column called Campaign ID, when ever the user click on the ID then it should navigate to Campaign page CPG_MAIN.

I have found some threads on this.and I have been able to make the id as hyperlink and call the event, but I need to pass the name of the object type for campaign,which I am unable to find out.

I need to call this method in event handler,

CALL METHOD cl_crm_ui_descriptor_obj_srv=>create_ui_object_based

EXPORTING

iv_ui_object_type = lv_object_type

iv_ui_object_action = 'B'

iv_component = 'CPTMAIN-OV'

RECEIVING

rr_result = lv_descriptor_object.

In parameters iv_ui_object_type and iv_component I am not sure what values I need to pass,earlier I have passed "campaign" and "cpg_main" respectively but that did not help.

Also I tried to get the object type name by writing this code,but neither did this help

*Step 2 Get instance of the core and the root object. For dynamic navigation,

lr_core = cl_crm_bol_core=>get_instance( ).

lr_entity_bt = lr_core->get_root_entity(

iv_object_name = 'Campaign'

iv_object_guid = lv_object_guid ).

CHECK lr_entity_bt IS BOUND.

*Step 3 Create an collection object for navigation

CREATE OBJECT lr_col.

*Step 4 Add the entity to the navigation collection

lr_col->if_bol_bo_col~add(

iv_entity = lr_entity_bt

iv_set_focus = abap_true ).

*Step 5 Get object type

lv_object_type = cl_crm_uiu_ibase_tool=>get_bt_ui_object_type( lr_entity_bt ).

This code gives an exception

CX_CRM_UNSUPPORTED_OBJECT - Object Campaign is not (yet) supported

Method: CL_CRM_GENIL_OBJ_MODEL=>IF_GENIL_OBJ_MODEL~IS_ACCESS_OBJECT

please help

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

ok

amarnath_kathi
Active Contributor
0 Kudos

You can handle this requirement mostly with configuration in 'Define Workarea componnet repository' and 'Define UI object types' in 'Technical Role definition' and 'UI Framework Definition' respectively. Refer these wikis - [1|http://wiki.sdn.sap.com/wiki/display/CRM/AddyourcustomBSPcomponentasalinkinaWorkCenter] & [2|http://wiki.sdn.sap.com/wiki/display/CRM/CRM-NavigatingtoyourcustomBSPcomponent] .

Former Member
0 Kudos

hi amar,

thanks for the response,but I need to navigate from z bsp component to standard compoenent (campaing),how am I to find out the object types in that case.

amarnath_kathi
Active Contributor
0 Kudos

If you do an F2 on the campaign screen you would get the 'Object type' in configuration details. Also, you will get more details about Object types related to campaign if you serach with MKTP* in Transaction AXTREG. In SPRO's 'Define Workarea Component Repository' you can see object type, object action etc..

Try giving the std component as targetid, configure that way and you can trigger to the target through the outbound and inbound plugs.