Sunday, December 19, 2010
Definition of ALV.
ALV(ABAP List Viewer) is a flexible tool for displaying lists. The tool provides common list operations as generic functions and can be enhanced by self-defined options.
ALV types and Corresponding Function modules.
Function modules used for different kind of ALVs.
TYPE-POOLS:SLIS.
We define global internal tables, structures and Variables in the dictionary using TYPE GROUPS. To use those in the program we use TYPE-POOLS statement. All parameters which pass through Function module should refer SLIS variables, Structures, Internal tables.
Fieldcatalog.
It contains field descriptions which are displayed on output using ALV. We build fieldcatalog internal table.
Events in ALV
If we use ALV function modules to produce Output, Classical events are not triggered.For example TOP-OF-PAGE , END-OF-PAGE and secondary list events AT LINE-SELECTION, AT USER-COMMANDs.
If you want to know what are the events available for different kind of ALV specified above, Execute REUSE_ALV_EVENTS_GET function module and list type.Possible list types:0,1,2,3,4.
ALV(ABAP List Viewer) is a flexible tool for displaying lists. The tool provides common list operations as generic functions and can be enhanced by self-defined options.
ALV types and Corresponding Function modules.
- ALV List or ALV Grid Display.
- Hierarchical Sequential ALV Display.
- Blocked ALV.
- Blocked Hierarchical Sequential ALV Display.
Function modules used for different kind of ALVs.
Normal & Grid ALV | |||
REUSE_ALV_LIST_DISPLAY | Output a simple list (single line or several lines) | ||
REUSE_ALV_GRID_DISPLAY | Output of a simple list (single-line) | ||
Blocked ALV | |||
REUSE_ALV_BLOCK_LIST_INIT | Initialization of Block List Output | ||
REUSE_ALV_BLOCK_LIST_APPEND | Append Simple List in Block Mode | ||
REUSE_ALV_BLOCK_LIST_DISPLAY | Display a block table | ||
Hierarchical Sequential ALV | |||
|
| ||
Blocked Hierarchical ALV | |||
REUSE_ALV_BLOCK_LIST_INIT | Initialization of Block List Output | ||
REUSE_ALV_BLOCK_LIST_HS_APPEND | Append Hierarchical List in Block Mode | ||
REUSE_ALV_BLOCK_LIST_APPEND | Append Simple List in Block Mode | ||
REUSE_ALV_BLOCK_LIST_DISPLAY | Display a block table | ||
Useful ALV related Function modules | |||
REUSE_ALV_EVENTS_GET | Returns table of possible events for a list type | ||
REUSE_ALV_COMMENTARY_WRITE | List body comment block output | ||
REUSE_ALV_VARIANT_F4 | Display variant selection dialog box | ||
REUSE_ALV_VARIANT_EXISTENCE | Checks whether a display variant exists | ||
REUSE_ALV_POPUP_TO_SELECT | List in dialog box to choose one or more entries |
TYPE-POOLS:SLIS.
We define global internal tables, structures and Variables in the dictionary using TYPE GROUPS. To use those in the program we use TYPE-POOLS statement. All parameters which pass through Function module should refer SLIS variables, Structures, Internal tables.
Fieldcatalog.
It contains field descriptions which are displayed on output using ALV. We build fieldcatalog internal table.
Events in ALV
If we use ALV function modules to produce Output, Classical events are not triggered.For example TOP-OF-PAGE , END-OF-PAGE and secondary list events AT LINE-SELECTION, AT USER-COMMANDs.
If you want to know what are the events available for different kind of ALV specified above, Execute REUSE_ALV_EVENTS_GET function module and list type.Possible list types:0,1,2,3,4.
- 0 = simple list REUSE_ALV_LIST_DISPLAY
- 1 = hierarchcal-sequential list REUSE_ALV_HIERSEQ_LIST_DISPLAY
- 2 = simple block list REUSE_ALV_BLOCK_LIST_APPEND
- 3 = hierarchical-sequential block list REUSE_ALV_BLOCK_LIST_HS_APPEND
- 4 = Fullscreen REUSE_ALV_GRID_DISPLAY
- TOP_OF_PAGE.
- USER_COMMAND.
- PF_STATUS_SET.
- END_OF_LIST.
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Sending email with pdf attachment
- ABAP - Step by step tutorial on Smart Forms - Template Node
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
Excellent!!!
ReplyDelete