The following describes some sap standards for learning Alv. Program Instance
1. balvsd06: Output flights (simple version + save)
This is the simplest example of this series. We recommend that you use this to get started.
Function modules used:
Reuse_alv_list_display: This FM is very important for displaying simple interactive list. You must be familiar with the input parameter names and functions of the FM, which is very helpful for ALV programming.
Input parameters:
I _callback_program: name of the callback program after the FM is executed
I _structure_name: the structure of the internal table. Field cattionary (including the name of the output column) refer to the structure from Data Dictionary (Note: if not all columns need to be output and displayed, or you need to customize the field format without the structure in data dictionary, please refer to other input parameter settings)
I _save: whether to store variants, "A": Standard and user-specific saving
Tables:
T_outtab: the internal table of the data to be output.
2. balvsd01: simple list flight model
Function modules used:
Reuse_alv_variant_default_get
Reuse_alv_events_get
Reuse_alv_commentary_write
Reuse_alv_variant_f4
Reuse_alv_variant_existence
Reuse_alv_list_display
3. balvsd11: simple list with interactions and layouts
Function modules used:
Reuse_alv_fieldcatalog_merge
Reuse_alv_list_display
4. balvhd01: hierarchical-sequential list flight model
Display hierarchical interactive list, that is, list of two levels of header-item
Function modules used:
Reuse_alv_variant_default_get
Reuse_alv_fieldcatalog_merge
Reuse_alv_events_get
Reuse_alv_commentary_write
Reuse_alv_variant_f4
Reuse_alv_variant_existence
Reuse_alv_hierseq_list_display: This FM is used to display hierarchical-sequential interactive list, which is very important.
5. balvhd01_group: hierarchical-sequential list flight model
Function modules used:
Reuse_alv_events_get
Reuse_alv_hierseq_list_display
Enter 'demo * 'in the input column of the program name in the se38 environment and press F4. you can find all the demo sample programs in SAP and learn many implementation methods of the ABAP function, enter 'bcalv * 'and press F4. you can find many ALV sample programs.