SAP QIER_LOG_MESSAGE Function Module for NOTRANSL: Nachricht in Fehlerprotokoll und Application Log schreiben









QIER_LOG_MESSAGE is a standard qier log message SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Nachricht in Fehlerprotokoll und Application Log schreiben 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 qier log message FM, simply by entering the name QIER_LOG_MESSAGE into the relevant SAP transaction such as SE37 or SE38.

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



Function QIER_LOG_MESSAGE 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 'QIER_LOG_MESSAGE'"NOTRANSL: Nachricht in Fehlerprotokoll und Application Log schreiben
EXPORTING
* IM_MSGTY = 'E' "Message Type
* IM_MSGID = 'QI' "Message Class
IM_MSGNO = "Message Number
* IM_MSGV1 = "
* IM_MSGV2 = "
* IM_MSGV3 = "
* IM_MSGV4 = "
* IM_FIELD_NAME = "Field in parameter
.



IMPORTING Parameters details for QIER_LOG_MESSAGE

IM_MSGTY - Message Type

Data type: BALMI-MSGTY
Default: 'E'
Optional: Yes
Call by Reference: Yes

IM_MSGID - Message Class

Data type: BALMI-MSGID
Default: 'QI'
Optional: Yes
Call by Reference: Yes

IM_MSGNO - Message Number

Data type: BALMI-MSGNO
Optional: No
Call by Reference: Yes

IM_MSGV1 -

Data type:
Optional: Yes
Call by Reference: Yes

IM_MSGV2 -

Data type:
Optional: Yes
Call by Reference: Yes

IM_MSGV3 -

Data type:
Optional: Yes
Call by Reference: Yes

IM_MSGV4 -

Data type:
Optional: Yes
Call by Reference: Yes

IM_FIELD_NAME - Field in parameter

Data type: BAPI_FLD
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for QIER_LOG_MESSAGE 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_im_msgty  TYPE BALMI-MSGTY, "   'E'
lv_im_msgid  TYPE BALMI-MSGID, "   'QI'
lv_im_msgno  TYPE BALMI-MSGNO, "   
lv_im_msgv1  TYPE BALMI, "   
lv_im_msgv2  TYPE BALMI, "   
lv_im_msgv3  TYPE BALMI, "   
lv_im_msgv4  TYPE BALMI, "   
lv_im_field_name  TYPE BAPI_FLD. "   

  CALL FUNCTION 'QIER_LOG_MESSAGE'  "NOTRANSL: Nachricht in Fehlerprotokoll und Application Log schreiben
    EXPORTING
         IM_MSGTY = lv_im_msgty
         IM_MSGID = lv_im_msgid
         IM_MSGNO = lv_im_msgno
         IM_MSGV1 = lv_im_msgv1
         IM_MSGV2 = lv_im_msgv2
         IM_MSGV3 = lv_im_msgv3
         IM_MSGV4 = lv_im_msgv4
         IM_FIELD_NAME = lv_im_field_name
. " QIER_LOG_MESSAGE




ABAP code using 7.40 inline data declarations to call FM QIER_LOG_MESSAGE

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 MSGTY FROM BALMI INTO @DATA(ld_im_msgty).
DATA(ld_im_msgty) = 'E'.
 
"SELECT single MSGID FROM BALMI INTO @DATA(ld_im_msgid).
DATA(ld_im_msgid) = 'QI'.
 
"SELECT single MSGNO FROM BALMI INTO @DATA(ld_im_msgno).
 
 
 
 
 
 


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!