The ALV object Grid methods allow the same functionality as ALV grid report function modules but are displayed within a screen (dialog program). SAP has provided a suit of programs which demonstrate how to For examples see standard SAP programs as detailed below:Refresh data displayed within ALV object report
This program illustrates how the events for print processing PRINT_TOP_OF_PAGE, PRINT_END_OF_PAGE, PRINT_TOP_OF_LIST,PRINT_END_OF_LIST are handled. The corresponding handler methods control the appearance of the list printed.
Show a detail list in a modal window. There is no second dynro needed in contrast to BCALV_GRID_03.
This program implements a function on event DOUBLE_CLICK. According to the selected line data from table SBOOK is selected and displayed by a second ALV Control in a dialog dynpro.
Illustrates the use of exceptions (lights or leds). According to the values of SFLIGHT-SEATSOCC, the lights are set to 1 (red), 2 (yellow) or 3 (green).
Demonstrate the creation of an own toolbar button.
Demonstrate the creation of an own context menu.
Append a menu button to the standard toolbar.
Append a menu with default button to the standard toolbar. It is exactly the same as BCALVC_TB_WITH_MENU except for methods HANDLE_MENU_BUTTON and HANDLE_TOOLBAR.
Editable ALV grids
This report illustrates the simplest case of using an editable/noneditable ALV Grid Control.
This report illustrates how to set chosen cells of an ALV Grid Control editable.
In this example the user may change values of fields SEATSOCC (occupied seats) and/or PLANETYPE. The report checks the input value(s) semantically and provides protocol messages in case of error
This report illustrates how to add and remove lines to a table using the ALV Grid Control and how to implement the saving of the new data.
This example shows how to use checkboxes within an ALV Grid Control. You learn:
(1) how to define a column for editable checkboxes for an attribute of your list
(2) how to evaluate the checked checkboxes
(3) how to switch between editable and non-editable checkboxes
This example shows how to define a dropdown listbox for all cells of one column in an editable ALV Grid Control.
This example shows how to define dropdown listboxes for particular cells of your output table.
This report implements an ALV Grid Control with an application specific F4 help. The following aspects are dealt with:
(1) how to replace the standard f4 help
(2) how to pass the selected value to the ALV Grid Control
(3) how to build an f4 help, whose value range depend on a value of another cell.