SAP HR_DISPLAY_BASIC_LIST Function Module for









HR_DISPLAY_BASIC_LIST is a standard hr display basic list SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 hr display basic list FM, simply by entering the name HR_DISPLAY_BASIC_LIST into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_DISPLAY_BASIC_LIST 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 'HR_DISPLAY_BASIC_LIST'"
EXPORTING
* BASIC_LIST_TITLE = "Dynpro title
* DYN_PUSHBUTTON_TEXT2 = "Text for an additional button
* DYN_PUSHBUTTON_TEXT3 = "Text for an additional button
* DYN_PUSHBUTTON_TEXT4 = "Text for an additional button
* DYN_PUSHBUTTON_TEXT5 = "Text for an additional button
* DYN_PUSHBUTTON_TEXT6 = "Text for an additional button
* DATA_STRUCTURE = ' ' "DDIC table name
* HEAD_LINE3 = ' ' "3rd page header
* HEAD_LINE4 = ' ' "4th page header
* CURRENT_REPORT = "Name of current report
* LIST_LEVEL = ' ' "List level
FILE_NAME = "File name
* ADDITIONAL_OPTIONS = ' ' "Other options
* WORD_DOCUMENT = "Name of the Word document to be opened
* NO_ALV_GRID = ' ' "
* ALV_MARKER = "
* HEAD_LINE1 = ' ' "Page header
* HEAD_LINE2 = ' ' "2nd page header
* FOOT_NOTE1 = ' ' "1st footer
* FOOT_NOTE2 = ' ' "2nd footer
* FOOT_NOTE3 = ' ' "3rd footer
* LAY_OUT = 0 "Layout
* DYN_PUSHBUTTON_TEXT1 = "Text for an additional button

IMPORTING
RETURN_CODE = "Return value for DYN_PUSHBUTTONS

TABLES
DATA_TAB = "Data table
* FIELDNAME_TAB = "Title + DDIC + layout information
* SELECT_TAB = "Selected records
* ERROR_TAB = "

EXCEPTIONS
DOWNLOAD_PROBLEM = 1 NO_DATA_TAB_ENTRIES = 2 TABLE_MISMATCH = 3 PRINT_PROBLEMS = 4
.



IMPORTING Parameters details for HR_DISPLAY_BASIC_LIST

BASIC_LIST_TITLE - Dynpro title

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

DYN_PUSHBUTTON_TEXT2 - Text for an additional button

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

DYN_PUSHBUTTON_TEXT3 - Text for an additional button

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

DYN_PUSHBUTTON_TEXT4 - Text for an additional button

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

DYN_PUSHBUTTON_TEXT5 - Text for an additional button

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

DYN_PUSHBUTTON_TEXT6 - Text for an additional button

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

DATA_STRUCTURE - DDIC table name

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

HEAD_LINE3 - 3rd page header

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

HEAD_LINE4 - 4th page header

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

CURRENT_REPORT - Name of current report

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

LIST_LEVEL - List level

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

FILE_NAME - File name

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

ADDITIONAL_OPTIONS - Other options

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

WORD_DOCUMENT - Name of the Word document to be opened

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

NO_ALV_GRID -

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

ALV_MARKER -

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

HEAD_LINE1 - Page header

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

HEAD_LINE2 - 2nd page header

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

FOOT_NOTE1 - 1st footer

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

FOOT_NOTE2 - 2nd footer

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

FOOT_NOTE3 - 3rd footer

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

LAY_OUT - Layout

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

DYN_PUSHBUTTON_TEXT1 - Text for an additional button

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

EXPORTING Parameters details for HR_DISPLAY_BASIC_LIST

RETURN_CODE - Return value for DYN_PUSHBUTTONS

Data type: SY-SUBRC
Optional: No
Call by Reference: Yes

TABLES Parameters details for HR_DISPLAY_BASIC_LIST

DATA_TAB - Data table

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

FIELDNAME_TAB - Title + DDIC + layout information

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

SELECT_TAB - Selected records

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

ERROR_TAB -

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

EXCEPTIONS details

DOWNLOAD_PROBLEM - Problems during data transfer to PC

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

NO_DATA_TAB_ENTRIES - No table entries available

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

TABLE_MISMATCH - Data inconsist. between DATA_TAB and FIELDNAME_TAB

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

PRINT_PROBLEMS - Print problems

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

Copy and paste ABAP code example for HR_DISPLAY_BASIC_LIST 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:
lt_data_tab  TYPE STANDARD TABLE OF STRING, "   
lv_return_code  TYPE SY-SUBRC, "   
lv_basic_list_title  TYPE SY-TITLE, "   
lv_download_problem  TYPE SY, "   
lv_dyn_pushbutton_text2  TYPE SY, "   
lv_dyn_pushbutton_text3  TYPE SY, "   
lv_dyn_pushbutton_text4  TYPE SY, "   
lv_dyn_pushbutton_text5  TYPE SY, "   
lv_dyn_pushbutton_text6  TYPE SY, "   
lv_data_structure  TYPE DD03L-TABNAME, "   SPACE
lv_head_line3  TYPE DD03L, "   SPACE
lv_head_line4  TYPE DD03L, "   SPACE
lv_current_report  TYPE SY-REPID, "   
lv_list_level  TYPE SY, "   SPACE
lv_file_name  TYPE SY, "   
lt_fieldname_tab  TYPE STANDARD TABLE OF SY, "   
lv_no_data_tab_entries  TYPE SY, "   
lv_additional_options  TYPE SY, "   SPACE
lv_word_document  TYPE RLGRAP-FILENAME, "   
lv_no_alv_grid  TYPE CHAR1, "   SPACE
lv_alv_marker  TYPE CHAR1, "   
lv_head_line1  TYPE CHAR1, "   SPACE
lt_select_tab  TYPE STANDARD TABLE OF CHAR1, "   
lv_table_mismatch  TYPE CHAR1, "   
lt_error_tab  TYPE STANDARD TABLE OF HRERROR, "   
lv_head_line2  TYPE HRERROR, "   SPACE
lv_print_problems  TYPE HRERROR, "   
lv_foot_note1  TYPE HRERROR, "   SPACE
lv_foot_note2  TYPE HRERROR, "   SPACE
lv_foot_note3  TYPE HRERROR, "   SPACE
lv_lay_out  TYPE I, "   0
lv_dyn_pushbutton_text1  TYPE I. "   

  CALL FUNCTION 'HR_DISPLAY_BASIC_LIST'  "
    EXPORTING
         BASIC_LIST_TITLE = lv_basic_list_title
         DYN_PUSHBUTTON_TEXT2 = lv_dyn_pushbutton_text2
         DYN_PUSHBUTTON_TEXT3 = lv_dyn_pushbutton_text3
         DYN_PUSHBUTTON_TEXT4 = lv_dyn_pushbutton_text4
         DYN_PUSHBUTTON_TEXT5 = lv_dyn_pushbutton_text5
         DYN_PUSHBUTTON_TEXT6 = lv_dyn_pushbutton_text6
         DATA_STRUCTURE = lv_data_structure
         HEAD_LINE3 = lv_head_line3
         HEAD_LINE4 = lv_head_line4
         CURRENT_REPORT = lv_current_report
         LIST_LEVEL = lv_list_level
         FILE_NAME = lv_file_name
         ADDITIONAL_OPTIONS = lv_additional_options
         WORD_DOCUMENT = lv_word_document
         NO_ALV_GRID = lv_no_alv_grid
         ALV_MARKER = lv_alv_marker
         HEAD_LINE1 = lv_head_line1
         HEAD_LINE2 = lv_head_line2
         FOOT_NOTE1 = lv_foot_note1
         FOOT_NOTE2 = lv_foot_note2
         FOOT_NOTE3 = lv_foot_note3
         LAY_OUT = lv_lay_out
         DYN_PUSHBUTTON_TEXT1 = lv_dyn_pushbutton_text1
    IMPORTING
         RETURN_CODE = lv_return_code
    TABLES
         DATA_TAB = lt_data_tab
         FIELDNAME_TAB = lt_fieldname_tab
         SELECT_TAB = lt_select_tab
         ERROR_TAB = lt_error_tab
    EXCEPTIONS
        DOWNLOAD_PROBLEM = 1
        NO_DATA_TAB_ENTRIES = 2
        TABLE_MISMATCH = 3
        PRINT_PROBLEMS = 4
. " HR_DISPLAY_BASIC_LIST




ABAP code using 7.40 inline data declarations to call FM HR_DISPLAY_BASIC_LIST

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.

 
"SELECT single SUBRC FROM SY INTO @DATA(ld_return_code).
 
"SELECT single TITLE FROM SY INTO @DATA(ld_basic_list_title).
 
 
 
 
 
 
 
"SELECT single TABNAME FROM DD03L INTO @DATA(ld_data_structure).
DATA(ld_data_structure) = ' '.
 
DATA(ld_head_line3) = ' '.
 
DATA(ld_head_line4) = ' '.
 
"SELECT single REPID FROM SY INTO @DATA(ld_current_report).
 
DATA(ld_list_level) = ' '.
 
 
 
 
DATA(ld_additional_options) = ' '.
 
"SELECT single FILENAME FROM RLGRAP INTO @DATA(ld_word_document).
 
DATA(ld_no_alv_grid) = ' '.
 
 
DATA(ld_head_line1) = ' '.
 
 
 
 
DATA(ld_head_line2) = ' '.
 
 
DATA(ld_foot_note1) = ' '.
 
DATA(ld_foot_note2) = ' '.
 
DATA(ld_foot_note3) = ' '.
 
 
 


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!