SAP EH_SHOW_ERROR_ITAB_NEW Function Module for Ausgabe der globalen Fehlertabelle
EH_SHOW_ERROR_ITAB_NEW is a standard eh show error itab new SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Ausgabe der globalen Fehlertabelle 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 eh show error itab new FM, simply by entering the name EH_SHOW_ERROR_ITAB_NEW into the relevant SAP transaction such as SE37 or SE38.
Function Group: RMEH
Program Name: SAPLRMEH
Main Program: SAPLRMEH
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function EH_SHOW_ERROR_ITAB_NEW 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 'EH_SHOW_ERROR_ITAB_NEW'"Ausgabe der globalen Fehlertabelle.
EXPORTING
* TITLEBAR = "Titelleiste
* HEADING = "Überschrift des Protokolls
* I_LOGNAME = "Name eines Fehlerprotokolls auf DB
I_AUSWTYP = "Auswertungstyp
* I_OBJECT = "Anwendungs-Log: Objektname (Applikationskürzel)
* I_SUBOBJECT = "Anwendungs-Log: Unterobjekt
* I_ONLY_DB = '' "Flag: nicht anzeigen
* I_EXTNUMBER = "extern-Ident.
* IO_CONTAINER = "Abstract Container for GUI Controls
IMPORTING
E_LOGNAME = "Name des Protokolls auf der Datenbank
TABLES
* I_IT_LOGNAME = "Tabelle von Protokollen auf der DB
IMPORTING Parameters details for EH_SHOW_ERROR_ITAB_NEW
TITLEBAR - Titelleiste
Data type: SY-TITLEOptional: Yes
Call by Reference: No ( called with pass by value option)
HEADING - Überschrift des Protokolls
Data type: TRLOG-LINEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LOGNAME - Name eines Fehlerprotokolls auf DB
Data type: DDPRH-PROTNAMEOptional: Yes
Call by Reference: Yes
I_AUSWTYP - Auswertungstyp
Data type: JBALMDLLOC-AUSWTYPOptional: No
Call by Reference: Yes
I_OBJECT - Anwendungs-Log: Objektname (Applikationskürzel)
Data type: BAL_S_LOG-OBJECTOptional: Yes
Call by Reference: Yes
I_SUBOBJECT - Anwendungs-Log: Unterobjekt
Data type: BAL_S_LOG-SUBOBJECTOptional: Yes
Call by Reference: Yes
I_ONLY_DB - Flag: nicht anzeigen
Data type: CDefault: ''
Optional: Yes
Call by Reference: Yes
I_EXTNUMBER - extern-Ident.
Data type: BALNREXTOptional: Yes
Call by Reference: Yes
IO_CONTAINER - Abstract Container for GUI Controls
Data type: CL_GUI_CONTAINEROptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for EH_SHOW_ERROR_ITAB_NEW
E_LOGNAME - Name des Protokolls auf der Datenbank
Data type: DDPRH-PROTNAMEOptional: No
Call by Reference: Yes
TABLES Parameters details for EH_SHOW_ERROR_ITAB_NEW
I_IT_LOGNAME - Tabelle von Protokollen auf der DB
Data type: DDPRHOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for EH_SHOW_ERROR_ITAB_NEW 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_titlebar | TYPE SY-TITLE, " | |||
lv_e_logname | TYPE DDPRH-PROTNAME, " | |||
lt_i_it_logname | TYPE STANDARD TABLE OF DDPRH, " | |||
lv_heading | TYPE TRLOG-LINE, " | |||
lv_i_logname | TYPE DDPRH-PROTNAME, " | |||
lv_i_auswtyp | TYPE JBALMDLLOC-AUSWTYP, " | |||
lv_i_object | TYPE BAL_S_LOG-OBJECT, " | |||
lv_i_subobject | TYPE BAL_S_LOG-SUBOBJECT, " | |||
lv_i_only_db | TYPE C, " '' | |||
lv_i_extnumber | TYPE BALNREXT, " | |||
lv_io_container | TYPE CL_GUI_CONTAINER. " |
  CALL FUNCTION 'EH_SHOW_ERROR_ITAB_NEW' "Ausgabe der globalen Fehlertabelle |
EXPORTING | ||
TITLEBAR | = lv_titlebar | |
HEADING | = lv_heading | |
I_LOGNAME | = lv_i_logname | |
I_AUSWTYP | = lv_i_auswtyp | |
I_OBJECT | = lv_i_object | |
I_SUBOBJECT | = lv_i_subobject | |
I_ONLY_DB | = lv_i_only_db | |
I_EXTNUMBER | = lv_i_extnumber | |
IO_CONTAINER | = lv_io_container | |
IMPORTING | ||
E_LOGNAME | = lv_e_logname | |
TABLES | ||
I_IT_LOGNAME | = lt_i_it_logname | |
. " EH_SHOW_ERROR_ITAB_NEW |
ABAP code using 7.40 inline data declarations to call FM EH_SHOW_ERROR_ITAB_NEW
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 TITLE FROM SY INTO @DATA(ld_titlebar). | ||||
"SELECT single PROTNAME FROM DDPRH INTO @DATA(ld_e_logname). | ||||
"SELECT single LINE FROM TRLOG INTO @DATA(ld_heading). | ||||
"SELECT single PROTNAME FROM DDPRH INTO @DATA(ld_i_logname). | ||||
"SELECT single AUSWTYP FROM JBALMDLLOC INTO @DATA(ld_i_auswtyp). | ||||
"SELECT single OBJECT FROM BAL_S_LOG INTO @DATA(ld_i_object). | ||||
"SELECT single SUBOBJECT FROM BAL_S_LOG INTO @DATA(ld_i_subobject). | ||||
DATA(ld_i_only_db) | = ''. | |||
Search for further information about these or an SAP related objects