SAP HR_DISPLAY_ERROR_LIST Function Module for Display Error Messages
HR_DISPLAY_ERROR_LIST is a standard hr display error 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 Display Error Messages 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 error list FM, simply by entering the name HR_DISPLAY_ERROR_LIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: RPBS
Program Name: SAPLRPBS
Main Program: SAPLRPBS
Appliation area: P
Release date: 22-Jul-2004
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_DISPLAY_ERROR_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_ERROR_LIST'"Display Error Messages.
EXPORTING
* NO_POPUP = ' ' "'X' - do not display dialog box with error messages
* NO_PRINT = 'X' "'X' - No Output As List
* NO_IMG = ' ' "'X' - do not branch to customizing
* NO_MSGNO = 'X' "'X' - do not output the message number
* LINESIZE = SY-LINSZ "Page width for list output
* LISTHEADER = ' ' "List heading
* COLHEADER = ' ' "Heading of column with message text
* HIDEMSG = ' ' "
TABLES
* ERROR = "Error Message Table
EXCEPTIONS
INVALID_LINESIZE = 1
IMPORTING Parameters details for HR_DISPLAY_ERROR_LIST
NO_POPUP - 'X' - do not display dialog box with error messages
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_PRINT - 'X' - No Output As List
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_IMG - 'X' - do not branch to customizing
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_MSGNO - 'X' - do not output the message number
Data type:Default: 'X'
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 - Heading of column with message text
Data type: DLINEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
HIDEMSG -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_DISPLAY_ERROR_LIST
ERROR - Error Message Table
Data type: HRERROROptional: 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_ERROR_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_error | TYPE STANDARD TABLE OF HRERROR, " | |||
lv_no_popup | TYPE HRERROR, " SPACE | |||
lv_invalid_linesize | TYPE HRERROR, " | |||
lv_no_print | TYPE HRERROR, " 'X' | |||
lv_no_img | TYPE HRERROR, " SPACE | |||
lv_no_msgno | TYPE HRERROR, " 'X' | |||
lv_linesize | TYPE SY-LINSZ, " SY-LINSZ | |||
lv_listheader | TYPE DLINE, " SPACE | |||
lv_colheader | TYPE DLINE, " SPACE | |||
lv_hidemsg | TYPE DLINE. " SPACE |
  CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' "Display Error Messages |
EXPORTING | ||
NO_POPUP | = lv_no_popup | |
NO_PRINT | = lv_no_print | |
NO_IMG | = lv_no_img | |
NO_MSGNO | = lv_no_msgno | |
LINESIZE | = lv_linesize | |
LISTHEADER | = lv_listheader | |
COLHEADER | = lv_colheader | |
HIDEMSG | = lv_hidemsg | |
TABLES | ||
ERROR | = lt_error | |
EXCEPTIONS | ||
INVALID_LINESIZE = 1 | ||
. " HR_DISPLAY_ERROR_LIST |
ABAP code using 7.40 inline data declarations to call FM HR_DISPLAY_ERROR_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) | = ' '. | |||
DATA(ld_no_print) | = 'X'. | |||
DATA(ld_no_img) | = ' '. | |||
DATA(ld_no_msgno) | = 'X'. | |||
"SELECT single LINSZ FROM SY INTO @DATA(ld_linesize). | ||||
DATA(ld_linesize) | = SY-LINSZ. | |||
DATA(ld_listheader) | = ' '. | |||
DATA(ld_colheader) | = ' '. | |||
DATA(ld_hidemsg) | = ' '. | |||
Search for further information about these or an SAP related objects