Introduction to sap ALV standard sample program

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.