* event handler for checking and processing user input and
* for defining navigation
CASE event_id.
  WHEN 'Zurueck'.
    navigation->set_parameter( 'wa1' ).
    navigation->goto_page( 'start.htm' ) .
  WHEN 'exit'.
    navigation->exit( 'http://www.fh-augsburg.de' ) .
ENDCASE.
*
if event_id(4) = 'BOOK'.
  username = sy-uname.
  CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
    EXPORTING
      name                  = 'HALLO'
      application_name      = runtime->application_name
      application_namespace = runtime->application_namespace
      username              = username
      session_id            = runtime->session_id
      data_name             = 'itab'
    CHANGING
      data_value            = itab.

  read table itab into wa2 index event_id+4.
  ind = event_id+4.

  username = sy-uname.
        CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
          EXPORTING
            name                  = 'HALLO2'
            application_name      = runtime->application_name
            application_namespace = runtime->application_namespace
            username              = username
            session_id            = runtime->session_id
            data_value            = ind
            data_name             = 'ind'
            expiry_time_rel       = 3600.

  navigation->set_parameter( 'wa2' ).
  navigation->set_parameter( 'ind' ).
  navigation->goto_page( 'fill_booking.htm' ).
endif.