cancel
Showing results for 
Search instead for 
Did you mean: 

No navigation but to the first called target

Former Member
0 Kudos

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?

Kind regards

Roman

Edited by: romanglass on Oct 28, 2010 11:20 AM Clarification

Accepted Solutions (0)

Answers (2)

Answers (2)

arunprakash_karuppanan
Active Contributor
0 Kudos

Hi Roman,

Check if note 1382457 helps you.

Regards,

Arun Prakash

Former Member
0 Kudos

Hi Arun,

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!

Kind regards

Roman

@sumit This is not the solution, I have already tried. But this was my first guess, too.

sumit_mittal2
Active Contributor
0 Kudos

Hi Roman,

Just a guess, try after removing "raise event history_trigger"..

Cheers,

Sumit Mittal