I have added links to the business partner factsheet with contact person as target. The first call runs smoothly but afterwards this contact partner will be the only one to be navigated to.
Here is the crucial part of the coding:
lr_nav_descr = cl_crm_ui_descriptor_obj_srv=>create_entity_based( ir_entity = lr_entity iv_ui_object_action = if_crm_ui_descriptor_object=>gc_action_display iv_component = 'BP_CONT_MAIN' ). lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ). if lr_navigation->is_dynamic_nav_supported( ir_descriptor_object = lr_nav_descr ) = abap_true. lr_col->insert( iv_bo = lr_nav_descr iv_index = 1 ). raise event history_trigger. lr_navigation->navigate_dynamically( lr_col ). endif.
Let me clarify the situation:
factsheet(Person A) -> Person A // Win!
factsheet(Person B) -> Person B // Fail!
lr_entity contains the correct data for navigation. I suppose that there is something like a navigational cache that has to be cleared. Anyone knows something about this?
Edited by: romanglass on Oct 28, 2010 11:20 AM Clarification
this seems to describe exactly my situation and while debugging it seems to attack the right problem. Only thing is that the correction is officially already applied. Coding tells me otherwise ...
Thank you for your help!
@sumit This is not the solution, I have already tried. But this was my first guess, too.