SAP HR_DISPLAY_STAT_LIST Function Module for Output Report Statistics
HR_DISPLAY_STAT_LIST is a standard hr display stat list 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 Report Statistics 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 hr display stat list FM, simply by entering the name HR_DISPLAY_STAT_LIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPAY01_STAT
Program Name: SAPLHRPAY01_STAT
Main Program:
Appliation area: P
Release date: 22-Jul-2004
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_DISPLAY_STAT_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_STAT_LIST'"Output Report Statistics.
EXPORTING
* NO_POPUP = 'X' "'X' - No Dialog Box with Statistics
* HIDEMSG = 'X' "'X' - Place Data in Hide Area
* NO_PRINT = ' ' "'X' - No Output As List
* NO_IMG = ' ' "'X' - does not branch to Customizing
* NO_EMPTY_LINES = ' ' "'X' - Lines with Figure 0 not Printed
* NO_STD_ENTRIES = ' ' "'X' - Do not Display Standard Entries
* DATE = '1.1.1900' "Date - Not Displayed with Default Value
* LINESIZE = SY-LINSZ "Page Width for List Output
* LISTHEADER = ' ' "List Heading
* COLHEADER = ' ' "Column Heading in Dialog Box
EXCEPTIONS
INVALID_LINESIZE = 1
IMPORTING Parameters details for HR_DISPLAY_STAT_LIST
NO_POPUP - 'X' - No Dialog Box with Statistics
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
HIDEMSG - 'X' - Place Data in Hide Area
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_PRINT - 'X' - No Output As List
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_IMG - 'X' - does not branch to Customizing
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_EMPTY_LINES - 'X' - Lines with Figure 0 not Printed
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_STD_ENTRIES - 'X' - Do not Display Standard Entries
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATE - Date - Not Displayed with Default Value
Data type: SY-DATUMDefault: '1.1.1900'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LINESIZE - Page Width for List Output
Data type: SY-LINSZDefault: SY-LINSZ
Optional: Yes
Call by Reference: No ( called with pass by value option)
LISTHEADER - List Heading
Data type: DLINEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COLHEADER - Column Heading in Dialog Box
Data type: DLINEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_LINESIZE - Incorrect Page Width
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_DISPLAY_STAT_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: | ||||
lv_no_popup | TYPE STRING, " 'X' | |||
lv_invalid_linesize | TYPE STRING, " | |||
lv_hidemsg | TYPE STRING, " 'X' | |||
lv_no_print | TYPE STRING, " SPACE | |||
lv_no_img | TYPE STRING, " SPACE | |||
lv_no_empty_lines | TYPE STRING, " SPACE | |||
lv_no_std_entries | TYPE STRING, " SPACE | |||
lv_date | TYPE SY-DATUM, " '1,1,1900' | |||
lv_linesize | TYPE SY-LINSZ, " SY-LINSZ | |||
lv_listheader | TYPE DLINE, " SPACE | |||
lv_colheader | TYPE DLINE. " SPACE |
  CALL FUNCTION 'HR_DISPLAY_STAT_LIST' "Output Report Statistics |
EXPORTING | ||
NO_POPUP | = lv_no_popup | |
HIDEMSG | = lv_hidemsg | |
NO_PRINT | = lv_no_print | |
NO_IMG | = lv_no_img | |
NO_EMPTY_LINES | = lv_no_empty_lines | |
NO_STD_ENTRIES | = lv_no_std_entries | |
DATE | = lv_date | |
LINESIZE | = lv_linesize | |
LISTHEADER | = lv_listheader | |
COLHEADER | = lv_colheader | |
EXCEPTIONS | ||
INVALID_LINESIZE = 1 | ||
. " HR_DISPLAY_STAT_LIST |
ABAP code using 7.40 inline data declarations to call FM HR_DISPLAY_STAT_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.DATA(ld_no_popup) | = 'X'. | |||
DATA(ld_hidemsg) | = 'X'. | |||
DATA(ld_no_print) | = ' '. | |||
DATA(ld_no_img) | = ' '. | |||
DATA(ld_no_empty_lines) | = ' '. | |||
DATA(ld_no_std_entries) | = ' '. | |||
"SELECT single DATUM FROM SY INTO @DATA(ld_date). | ||||
DATA(ld_date) | = '1.1.1900'. | |||
"SELECT single LINSZ FROM SY INTO @DATA(ld_linesize). | ||||
DATA(ld_linesize) | = SY-LINSZ. | |||
DATA(ld_listheader) | = ' '. | |||
DATA(ld_colheader) | = ' '. | |||
Search for further information about these or an SAP related objects