Professional Documents
Culture Documents
with
REUSE_ALV_HIERSEQ_LIST_DISPLAY
in ABAP
REUSE_ALV_HIERSEQ_LIST_DISPLAY :-
is a function module in ABAP used to display hierarchical
REUSE_ALV_HIERSEQ_LIST_DISPLAY
sequential lists in ALV (ABAP List Viewer). Here are some key points about it:
1. Hierarchical Sequential List: This function module is particularly useful when you need
to display data that has a hierarchical structure, such as organizational charts, bill of
materials, or product categories.
2. ALV Integration: ALV provides a powerful tool for displaying data in tabular format with
various functionalities like sorting, filtering, and subtotaling. REUSE_ALV_HIERSEQ_LIST_DISPLAY
extends this capability to hierarchical data structures.
3. Parameters: The function module takes various parameters to define the structure of the
ALV output. Parameters include field catalog, layout structure, and hierarchical
sequential table.
4. Field Catalog: The field catalog defines the structure of the ALV output, including the
columns to be displayed and their properties such as headers, widths, and visibility.
5. Layout Structure: The layout structure specifies additional settings for the ALV display,
such as default sorting, subtotaling, and grouping options.
6. Hierarchical Sequential Table: This is the main input parameter containing the
hierarchical data to be displayed. It typically consists of parent-child relationships, with
each record representing a node in the hierarchy.
7. Event Handling: The function module provides event handling mechanisms to customize
the behavior of the ALV display. Events include node expand/collapse, double-click, and
context menu actions.
Requirement :-
We have 5 fields from VBAK table and 5 fields from VBAP table
Solution :-
Step 1 :- Create a executable program in ABAP Editor.
Step 2 :- Declare type structure for both the header and item tables.
Step 5 :- Write select queries to fetch data from both the tables.
START-OF-SELECTION.
SELECT vbeln erdat erzet ernam vbtyp
FROM vbak
INTO TABLE lt_vbak
WHERE vbeln IN s_vbeln.
*&----------------------------------------------------------------------
*&End of Program
*&----------------------------------------------------------------------
ENDIF.