Entering content frame

Procedure documentation Defining Event Handlers for the List of Authors Locate the document in its SAP Library structure

Use

The content of OnInitialization is set when the authors.htm page is called, so no user action is required. Therefore you only need the OnInitialization event handler for the author list.

In the initialization the first and last name entries are to be exported from the author table into the internal authors table.

Procedure

  1. Choose the tab page Event Handler for the list of authors.
  2. Choose OnInitialization from the pull-down menu.
  3. This graphic is explained in the accompanying text

  4. Specify the processing procedure.

select distinct authlnam authfnam from bsauthors into corresponding fields of table authors.

The ABAP statement select processes all first and last name entries in the bsauthors database table and inserts them into the internal table authors. When this happens, the entries are sorted alphabetically by surname.

The table authors therefore contains all the entries that must be displayed. They can be displayed in the layout with a simple loop. (see also Defining Layout for the Author List).

 

Now you have to declare the authors table as the page attribute.

This graphic is explained in the accompanying text Page Attributes for the List of Authors

 

 

Leaving content frame