SAP J_3G_ALV_HIERSEQ_LIST_DISPLAY Function Module for Output Hierarchical/Sequential List with Standard Variant Check









J_3G_ALV_HIERSEQ_LIST_DISPLAY is a standard j 3g alv hierseq list display SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Output Hierarchical/Sequential List with Standard Variant Check processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for j 3g alv hierseq list display FM, simply by entering the name J_3G_ALV_HIERSEQ_LIST_DISPLAY into the relevant SAP transaction such as SE37 or SE38.

Function Group: J3GL
Program Name: SAPLJ3GL
Main Program: SAPLJ3GL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function J_3G_ALV_HIERSEQ_LIST_DISPLAY pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'J_3G_ALV_HIERSEQ_LIST_DISPLAY'"Output Hierarchical/Sequential List with Standard Variant Check
EXPORTING
* I_INTERFACE_CHECK = ' ' "Interface Consistency Check Log Output
* IT_FILTER = "Filter Criteria for First List Output
* IS_SEL_HIDE = "Selection Information Modification
* I_SCREEN_START_COLUMN = 0 "Coordinates for List in Dialog Box
* I_SCREEN_START_LINE = 0 "Coordinates for List in Dialog Box
* I_SCREEN_END_COLUMN = 0 "Coordinates for List in Dialog Box
* I_SCREEN_END_LINE = 0 "Coordinates for List in Dialog Box
* I_DEFAULT = 'X' "Initial Variant Active/Inactive Logic
* I_SAVE = ' ' "Variants Can be Saved
* IS_VARIANT = ' ' "Variant Information
* IT_EVENTS = "Table of Events to Perform
I_CALLBACK_PROGRAM = "Name of the Calling Program
* IT_EVENT_EXIT = "Standard FCode Exit Requests Table
I_TABNAME_HEADER = "Header Table Name
I_TABNAME_ITEM = "Item Table Name
* I_STRUCTURE_NAME_HEADER = "Internal Output Table (Header) Structure Name
* I_STRUCTURE_NAME_ITEM = "Internal Output Table (Item) Structure Name
IS_KEYINFO = "Header/Item Table Field Links
* IS_PRINT = "Print Information
* I_CALLBACK_PF_STATUS_SET = ' ' "Set EXIT Rountine to Status
* I_CALLBACK_USER_COMMAND = ' ' "EXIT Routine for Command Handling
* IS_LAYOUT = "List Layout Specifications
IT_FIELDCAT = "Field Catalog with Field Descriptions
* IT_EXCLUDING = "Table of Inactive Function Codes
* IT_SPECIAL_GROUPS = "Grouping Fields for Column Selection
* IT_SORT = "Sort Criteria for First List Display

IMPORTING
E_EXIT_CAUSED_BY_CALLER = "Delete List in CALLBACK_USER_COMMAND
ES_EXIT_CAUSED_BY_USER = "

TABLES
T_OUTTAB_HEADER = "Header Table with Data to be Output
T_OUTTAB_ITEM = "Item Table with Data to be Output

EXCEPTIONS
PROGRAM_ERROR = 1
.



IMPORTING Parameters details for J_3G_ALV_HIERSEQ_LIST_DISPLAY

I_INTERFACE_CHECK - Interface Consistency Check Log Output

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_FILTER - Filter Criteria for First List Output

Data type: SLIS_T_FILTER_ALV
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_SEL_HIDE - Selection Information Modification

Data type: SLIS_SEL_HIDE_ALV
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SCREEN_START_COLUMN - Coordinates for List in Dialog Box

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SCREEN_START_LINE - Coordinates for List in Dialog Box

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SCREEN_END_COLUMN - Coordinates for List in Dialog Box

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SCREEN_END_LINE - Coordinates for List in Dialog Box

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DEFAULT - Initial Variant Active/Inactive Logic

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SAVE - Variants Can be Saved

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_VARIANT - Variant Information

Data type: DISVARIANT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_EVENTS - Table of Events to Perform

Data type: SLIS_T_EVENT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CALLBACK_PROGRAM - Name of the Calling Program

Data type: SY-REPID
Optional: No
Call by Reference: No ( called with pass by value option)

IT_EVENT_EXIT - Standard FCode Exit Requests Table

Data type: SLIS_T_EVENT_EXIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TABNAME_HEADER - Header Table Name

Data type: SLIS_TABNAME
Optional: No
Call by Reference: No ( called with pass by value option)

I_TABNAME_ITEM - Item Table Name

Data type: SLIS_TABNAME
Optional: No
Call by Reference: No ( called with pass by value option)

I_STRUCTURE_NAME_HEADER - Internal Output Table (Header) Structure Name

Data type: DD02L-TABNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STRUCTURE_NAME_ITEM - Internal Output Table (Item) Structure Name

Data type: DD02L-TABNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_KEYINFO - Header/Item Table Field Links

Data type: SLIS_KEYINFO_ALV
Optional: No
Call by Reference: No ( called with pass by value option)

IS_PRINT - Print Information

Data type: SLIS_PRINT_ALV
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CALLBACK_PF_STATUS_SET - Set EXIT Rountine to Status

Data type: SLIS_FORMNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CALLBACK_USER_COMMAND - EXIT Routine for Command Handling

Data type: SLIS_FORMNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_LAYOUT - List Layout Specifications

Data type: SLIS_LAYOUT_ALV
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_FIELDCAT - Field Catalog with Field Descriptions

Data type: SLIS_T_FIELDCAT_ALV
Optional: No
Call by Reference: No ( called with pass by value option)

IT_EXCLUDING - Table of Inactive Function Codes

Data type: SLIS_T_EXTAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_SPECIAL_GROUPS - Grouping Fields for Column Selection

Data type: SLIS_T_SP_GROUP_ALV
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_SORT - Sort Criteria for First List Display

Data type: SLIS_T_SORTINFO_ALV
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for J_3G_ALV_HIERSEQ_LIST_DISPLAY

E_EXIT_CAUSED_BY_CALLER - Delete List in CALLBACK_USER_COMMAND

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ES_EXIT_CAUSED_BY_USER -

Data type: SLIS_EXIT_BY_USER
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for J_3G_ALV_HIERSEQ_LIST_DISPLAY

T_OUTTAB_HEADER - Header Table with Data to be Output

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

T_OUTTAB_ITEM - Item Table with Data to be Output

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

PROGRAM_ERROR - Program Error

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for J_3G_ALV_HIERSEQ_LIST_DISPLAY Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_program_error  TYPE STRING, "   
lt_t_outtab_header  TYPE STANDARD TABLE OF STRING, "   
lv_i_interface_check  TYPE STRING, "   SPACE
lv_e_exit_caused_by_caller  TYPE STRING, "   
lv_it_filter  TYPE SLIS_T_FILTER_ALV, "   
lv_is_sel_hide  TYPE SLIS_SEL_HIDE_ALV, "   
lv_i_screen_start_column  TYPE SLIS_SEL_HIDE_ALV, "   0
lv_i_screen_start_line  TYPE SLIS_SEL_HIDE_ALV, "   0
lv_i_screen_end_column  TYPE SLIS_SEL_HIDE_ALV, "   0
lv_i_screen_end_line  TYPE SLIS_SEL_HIDE_ALV, "   0
lv_i_default  TYPE SLIS_SEL_HIDE_ALV, "   'X'
lv_i_save  TYPE SLIS_SEL_HIDE_ALV, "   SPACE
lv_is_variant  TYPE DISVARIANT, "   SPACE
lv_it_events  TYPE SLIS_T_EVENT, "   
lt_t_outtab_item  TYPE STANDARD TABLE OF SLIS_T_EVENT, "   
lv_i_callback_program  TYPE SY-REPID, "   
lv_es_exit_caused_by_user  TYPE SLIS_EXIT_BY_USER, "   
lv_it_event_exit  TYPE SLIS_T_EVENT_EXIT, "   
lv_i_tabname_header  TYPE SLIS_TABNAME, "   
lv_i_tabname_item  TYPE SLIS_TABNAME, "   
lv_i_structure_name_header  TYPE DD02L-TABNAME, "   
lv_i_structure_name_item  TYPE DD02L-TABNAME, "   
lv_is_keyinfo  TYPE SLIS_KEYINFO_ALV, "   
lv_is_print  TYPE SLIS_PRINT_ALV, "   
lv_i_callback_pf_status_set  TYPE SLIS_FORMNAME, "   SPACE
lv_i_callback_user_command  TYPE SLIS_FORMNAME, "   SPACE
lv_is_layout  TYPE SLIS_LAYOUT_ALV, "   
lv_it_fieldcat  TYPE SLIS_T_FIELDCAT_ALV, "   
lv_it_excluding  TYPE SLIS_T_EXTAB, "   
lv_it_special_groups  TYPE SLIS_T_SP_GROUP_ALV, "   
lv_it_sort  TYPE SLIS_T_SORTINFO_ALV. "   

  CALL FUNCTION 'J_3G_ALV_HIERSEQ_LIST_DISPLAY'  "Output Hierarchical/Sequential List with Standard Variant Check
    EXPORTING
         I_INTERFACE_CHECK = lv_i_interface_check
         IT_FILTER = lv_it_filter
         IS_SEL_HIDE = lv_is_sel_hide
         I_SCREEN_START_COLUMN = lv_i_screen_start_column
         I_SCREEN_START_LINE = lv_i_screen_start_line
         I_SCREEN_END_COLUMN = lv_i_screen_end_column
         I_SCREEN_END_LINE = lv_i_screen_end_line
         I_DEFAULT = lv_i_default
         I_SAVE = lv_i_save
         IS_VARIANT = lv_is_variant
         IT_EVENTS = lv_it_events
         I_CALLBACK_PROGRAM = lv_i_callback_program
         IT_EVENT_EXIT = lv_it_event_exit
         I_TABNAME_HEADER = lv_i_tabname_header
         I_TABNAME_ITEM = lv_i_tabname_item
         I_STRUCTURE_NAME_HEADER = lv_i_structure_name_header
         I_STRUCTURE_NAME_ITEM = lv_i_structure_name_item
         IS_KEYINFO = lv_is_keyinfo
         IS_PRINT = lv_is_print
         I_CALLBACK_PF_STATUS_SET = lv_i_callback_pf_status_set
         I_CALLBACK_USER_COMMAND = lv_i_callback_user_command
         IS_LAYOUT = lv_is_layout
         IT_FIELDCAT = lv_it_fieldcat
         IT_EXCLUDING = lv_it_excluding
         IT_SPECIAL_GROUPS = lv_it_special_groups
         IT_SORT = lv_it_sort
    IMPORTING
         E_EXIT_CAUSED_BY_CALLER = lv_e_exit_caused_by_caller
         ES_EXIT_CAUSED_BY_USER = lv_es_exit_caused_by_user
    TABLES
         T_OUTTAB_HEADER = lt_t_outtab_header
         T_OUTTAB_ITEM = lt_t_outtab_item
    EXCEPTIONS
        PROGRAM_ERROR = 1
. " J_3G_ALV_HIERSEQ_LIST_DISPLAY




ABAP code using 7.40 inline data declarations to call FM J_3G_ALV_HIERSEQ_LIST_DISPLAY

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
DATA(ld_i_interface_check) = ' '.
 
 
 
 
 
 
 
 
DATA(ld_i_default) = 'X'.
 
DATA(ld_i_save) = ' '.
 
DATA(ld_is_variant) = ' '.
 
 
 
"SELECT single REPID FROM SY INTO @DATA(ld_i_callback_program).
 
 
 
 
 
"SELECT single TABNAME FROM DD02L INTO @DATA(ld_i_structure_name_header).
 
"SELECT single TABNAME FROM DD02L INTO @DATA(ld_i_structure_name_item).
 
 
 
DATA(ld_i_callback_pf_status_set) = ' '.
 
DATA(ld_i_callback_user_command) = ' '.
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!