SAP CRM — Web-IC Component — Navigation between views

Now we have the event handler and the plugs we need to add some code. These plugs are like skeletons. So we need to put some code. Before adding that we will create the second view. We need the navigation link name to add in the code. So let us go heand and create the second view like how we created the first view.

Create second view with view name as otherview.

Make the view configurable.

Add the Button HTML code. Here we need to add button as back. The code is as follows.

  <thtmlb:button id      = “BackBtn”
               design  = “EMPHASIZED”
               onClick = “BACK”
               text    = “Back”
               tooltip = “To First View” />

Now create a event and the inbound and outbound plug for this otherview as you did for the first view.Make sure that you create a event for back not for next. In this veiw we are calling this as Back button. See the following screen shot.


I created event BACK and inbound plug as fromfirstview and outbound plug as tofirstview. Add these two view to the window. See the following screen shot.


Now let us create a navigation link for this two screen. This is in the Runtime Repository Editor.See the following screen shot for the navigation links.



I named the ID as fvTOov firstview to other view and declared all the source view and the target view. We need to do the same to navigate from other view to first view when user click on the back button.  See the following screen shot for the other Navigation link.



OK now the two navigation links are created.  The important thing is the above links that we created are only the skeleton meaning it created only the class moduels and the methods that the Component can unserstand. Now you need to add the code inside these plugs so that when every you click on the event that fires the plug which then executes our code.

18 thoughts on “SAP CRM — Web-IC Component — Navigation between views

  1. Realy all the posts are very helpful. Keep adding some more tutorials for CRM 2007 as they are realy beneficals to newbees.


  2. First, thank you for your wonderful articles.
    In this post, you described the navigation between views.
    In addition, i want to know how to transfer data between views.
    Hope for your excellent articles.
    Yours sincerely.

  3. Thank you, that’s very helpful.
    Now, we have a new question.
    Can we use the component controller to pass data between components?
    Otherwise we also found ‘InterfaceController’ in the RunTime Repository Editor.
    Is that used for passing data between components?
    And how to do that?

  4. if you want to use a component in another component then you need to have a interface that is created with context nodes. These nodes are available in the calling component. for example

    let us assume that we have two component Comp1 and comp2, if you want to use comp2 in comp1 then comp2 needs to have interface(you can expose all the information from comp2 to comp1 thru interface controller) if you are doing other way around then you need to have comp1 interface defined. Hope this helps.


  5. Thank you for your help, kumar.
    As a beginner, although i understand what you said, i still don’t know how to do that step by step.
    Besides, in china(i’m from china ~O(∩_∩)O~), most people working in this field are beginners. So i can’t find enough helpful information.
    May you provide some detailed information?

    Thanks again for your help.

  6. Hi,

    I wanted to know how can we navigate from one view to another which is in different views. We want to navigate from iccmp_emp_detl view to iccmp_bt_inr view. Please help.


  7. Hi,

    Thanks for great explanation of creating new views in components. However, I have a similar task;
    How can I change a an existing start view to another existing view in the same component? I.e in the web ui (CRM2007) I choose Create new Sales order button, then it takes me to view “ERPCartItemListView”. How can I change this so it takes me to view “ERPHDetailsView”?


  8. I figured out how to chenge the view in a component..

    1. Create an outbound plug and inbound plug
    2. In the event handler, call that method
    3. Create a new Navigation link, and assign outbound-/inbound plug to it
    4. Add the target in the window


  9. Hi,

    I am looking for help in CRM 7.0 step by step configuration for the sales order scenario (eCommerce).
    I have worked with CRM 4.0/CRM 5.0 etc. I need to review my past knowledge in configuring Master data, business process , sales order related process, like Sales org setup, partner determination, business activities,pricing, etc.

    I would greatly appreciate if you could either send me the documents or point me in the right direction.

    Many Thanks in advance


  10. Hello,
    How can I know in my component the logical link?
    I want to produce some links that will navigate same Z-component that will be reports with
    other variants. We r working on interaction center. you can save variants of report but you can’t see them as “my saved reports”. Our solution is to prepare some variants and make a link for each one. The problem is we can’t get the name of the link in our component. It is in

  11. Dear Kumar, thank you very much for the sharing. I got error message after I hit NEXT button in view1. I have spent a lot time check code and debug but couldn’t figure out, could you please help?

    BSP exception: Access to URL /sap(bD1lbiZjPTMxMCZkPW1pbg==)/bc/bsp/sap/bspwd_cmp_test/ is forbidden


  12. Dear Kumar,
    I have added a new component to bp_head.
    This component has two windows and i want to navigate from one to the other when i select one field.
    I have followed all the steps of the wiki but i when i try to navigate this exception is throwed.
    An exception has occurred Exception Class CX_BSP_WD_INV_VA_ASSIGNMENT – Assigned view ZBP_PEDMM/ERPMMDetail in view area Root could not be loaded.
    Source Text Row: 118
    An exception occurred during the activation of target view ZBP_PEDMM/ERPMMDetail for the navigation
    An exception has occurred Exception Class CX_BSP_WD_RUNTIME_ERROR –
    Source Text Row: 165

    Any idea?

  13. Hi,

    Thanks for your blog,

    I have followed the same procedure as you have mentione here, but I got the following error in outbound plug method.

    “Field ovTOfv is unknown. It is not contained in one of the tables nor it is defined by a DATA statemnt.”

    Could you please help me on this.

    Jenibalet S

Leave a Reply to oliver.yang Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s