cancel
Showing results for 
Search instead for 
Did you mean: 

Exception while navigating between components

Former Member
0 Kudos

Hi Experts,

we have created a Z-component where we can retrieve and display opportunities related to the login user with some relationship. We can navigate from this component to the oppportunity by clicking on the opportunity name, as a navigational link is defined from the Z component to 'Target CUBT111M_OPPT.MainWindow Inbound Plug OVERVIEW ' . the navigation to opportunity screen is working fine from the result list of the search screen we had provided.

Now when we try to navigate from this opportunity overview screen through any of the hyper links(account name,employee responsible etc) we get an exception.For eg:- In case of navigation to the prospect of the oppty we get :

An exception has occurred

Exception Class CX_BSP_WD_INCORRECT_IMPLEMENT - Define NavigationalLink NAVIGATE_DISPLAY for source view CUBT111M_OPPT.MainWindow.

Program: SAPMHTTP

Include:

Source Text Row: 0

We have not defined any navigation link with name NAVIGATE_DISPLAY in runtime repository for our Z component .

There are navigation links defined with CUBT111M_OPPT as the target.

Are we missing any step here? Should the links be working as desired once navigation has happened to the standard component view?

What should be done in this case.

Any pointers in this regard would be highly appreciated.

Thanks in advance.

Regards

Vidushi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks for the replies.

@Arun

The Z component window already has an OP with the same name and the code.

arunprakash_karuppanan
Active Contributor
0 Kudos

Hi,

In your z-component, I', sure that you will have BT111M_OPPT under component usages. Expand it, add the "NAVIGATE_DISPLAY" to outbound plugs if not already there, then right click on it, choose "Map to window outbound plug" and choose the outbound plug of your z-window.

Regards,

Arun Prakash

Answers (3)

Answers (3)

Former Member
0 Kudos

The problem is solved by delegation as suggested. Thanks Arun

how can I get a clear idea about the concept of delegation, it would be helpful if you provide any input on this.

arunprakash_karuppanan
Active Contributor
0 Kudos

Hi,

The problem is, when you click on a link from the header, the navigation may happen via navigation links or via navigation descriptors(outbound plugs). In your case, the component BT111M_OPPT is displayed within your Z-window. So, when the navigation is triggered, the outbound plug "OP_NAVIGATE_DISPLAY" of BT111M_OPPT/MainWindow is called. Since this is not the top window, it will come to your Z-Window looking for a "delegated" plug or a plug with the same name.

The solution is, create an outbound plug in your Z-window of the same name and put in the following code.


  me->fire_outbound_plug( iv_outbound_plug   = 'NAVIGATE_DISPLAY'
                          iv_data_collection = iv_data_collection ).

Please remember that this is the case with all the outbound plugs of your embedded component. You may also play with the delegation concept(in the RR, you can delegate an outbound plug to another plug in the top level window) by creating a common plug which will "fire" the navigation.

Regards,

Arun Prakash

amarnath_kathi
Active Contributor
0 Kudos

Hi Vidushi,

Do check if SAP Note 1031517 - Exception in Parties Involved Hyperlink in Oppt Product OV is relevant to you.

Regards,

Amar.