Show TOC

Part 5: Setting Up NavigationLocate this document in the navigation structure

Procedure

Up to now, you have designed the two views and have set up transporting the value of attribute CARRID using the three relevant contexts.

In the last step, you need to create the Navigation between the two views. Navigation is part of the Windows and is therefore defined there. First of all, you have to create the plugs that are required for navigation for the two views.

Searching Outbound Plug of View

  1. Switch to the view of the Search view and create an outbound plug for the view on the corresponding tab page. Call this plug suchen_out .

  2. Return to the Layout tab page and select the Button layout element type.

  3. In the corresponding properties table, create an Action for the OnAction Event .

    To do this, click on the Create button on the right, enter a name for the action ( Go_to_suchen_out ) and then select the SEARCH_OUT outbound plug you just created. Confirm the dialog box.

    The method ONACTIONGO_TO_SUCHEN_OUT was created and automatically implemented with the call of the outbound plug you selected.

The Inbound Plug of the display view

  1. Switch to the view of the DISPLAY view.

  2. Create an inbound plug called display_in and save the view.

Connecting the Two Plugs

  1. Switch back to the view of the window of the component.

  2. Now embed the Display view in the window structure (see Part 2 ).

  3. Expand the hierarchy of all window elements and use the context menu of the outbound plug element of the SEARCH view to create a navigation link to the inbound plug of the DISPLAY view.

  4. Save and activate all inactive parts of the component.

  5. Test your application again.

This completes the simple Flight Info application. Entering an airline ID displays in a table all flights that were entered for this row in the ABAP Dictionary table SFLIGHT.

Note

Of course, the sequence of the steps for creating this example application is not binding. You can vary the sequence in many places when you create your next application.