Entering content frame

Procedure documentation Event Handlers for the Book Page Locate the document in its SAP Library structure

Two event handlers are required for the processing procedure for the page showbook.htm, OnInitialization and OnInputProcessing.

OnInitialization

DATA cata_id TYPE bsindex.

cata_id = s_cata_id.

CALL METHOD cl_book_shop=>get_item
    EXPORTING cat_id = cata_id
    IMPORTING bookdata = s_bookdata
    EXCEPTIONS empty_input = 2.

The method get_item of the class cl_book_shop is called to get detailed information on the selected book. This transfers the catalog ID to the method, and the method returns the book data, unless none of the input fields contain any user input.

OnInputProcessing

case event_id.

  when 'order'.

    navigation->next_page( 'TOORDER' ).

  when others.

endcase.

When the user clicks the order button, the navigation request TOORDER triggers the navigation procedure to another page. This navigation request is specified later in the context of the navigation structure.

This graphic is explained in the accompanying text Layout for the Error Page

 

 

Leaving content frame