on 08-04-2010 6:14 AM
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
ok
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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] .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.