Object Oriented ABAP - Demos.

April 2001 - ...

SAP Tree etc.

  1. List of Programs.
    This program displays the list of programs created by the user in a simple tree. After double click on a program name the source code is displayed in other part of screen. GUI Status 'SCREEN_100' has 3 functions: BACK, EXIT and CANCEL of Type 'E' (Exit command), assigned to standard buttons: F3 ShF3 F12.
    Screen 100 is empty:
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
    PROCESS AFTER INPUT.
      MODULE cancel AT EXIT-COMMAND.
    
  2. Company/Plant/Storage Location Hierarchy.
    This program displays the hierarchy in a list tree. Additional custom toolbar allow expand / collapse the tree.
    Note. SAP Toolbar requires the Microsoft Common Control. You therefore need to install Microsoft Internet Explorer Version 4.0.
    GUI Status 'MAIN' has one function: BACK of Type ' ' (Normal application function), assigned to standard button: F3.
    Screen 100 has only field g_ok_code for handling user command:
    PROCESS BEFORE OUTPUT.
      MODULE PBO_100.
    PROCESS AFTER INPUT.
      MODULE PAI_100.
    
  3. Company/Plant/Storage Location Hierarchy.
    Like the previous demo but uses cl_gui_column_tree instead of cl_gui_list_tree.

SAP Grid (ALV List Viewer)

  1. Display table.
    This tiny program just displays the T001 table using grid control and all its default features. Screen 100 is the same as in List of Programs.

  2. Display table.
    Like previous but added print events handling for printing the table contents using grid "Print" button.
  3. Display table and show details.
    Like previous but added double click event handling. After double clicking on a table line detailed information for the line is displayed in another grid.
  4. Display table and show details.
    Like previous but added my own button to the grid toolbar. The function is the same as for double click.
  5. Display table and show details.
    Like previous but changed context menu for the column #2 - added my own function code and disabled all standard functional codes. Context menus for other columns remain unchanged. The function is the same as for double click or additional button.

See also:


TopList
Hosted by www.Geocities.ws

1