SAP READ_NOTIFICATION Function Module for Lesen einer Meldung mit allen Positionen/Ursachen/Aktionen/Massnahme









READ_NOTIFICATION is a standard read notification SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Lesen einer Meldung mit allen Positionen/Ursachen/Aktionen/Massnahme 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 read notification FM, simply by entering the name READ_NOTIFICATION into the relevant SAP transaction such as SE37 or SE38.

Function Group: IWO0
Program Name: SAPLIWO0
Main Program: SAPLIWO0
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function READ_NOTIFICATION 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 'READ_NOTIFICATION'"Lesen einer Meldung mit allen Positionen/Ursachen/Aktionen/Massnahme
EXPORTING
* FEKNZ = 'X' "(=X) With Items
* MAKNZ = 'X' "(=X) With Tasks
* MSGTY = 'E' "Message Category
QMNUM = "Number of Maintenance Notification
* I_DELETE = "(=X) Including All Deleted
* I_NOBUFFER = "(=X) By Passing Buffer
* I_VIQMEL = "
* IV_AKTYP = "Aktivitätstyp in Transaktion (H/V/A)
* IV_ARCHIVE = "Archive checken

IMPORTING
IBAUTX = "Text Part
INDMARC = "
FLGSER = "
EV_XINDARCH_FILE = "Archivierte Meldung mit Archivefile
IEQKT = "Equipment Text
INDABSCHL = "Indicator Message Finished
IPLTXT = "Functional Location Text
IVIQMEL = "Header Record
IRIWO02 = "Catalog Profile Bar
ERIWO03 = "
E_QMTYP = "
INDLOEVM = "

TABLES
* IVIQMFE = "Items
* IVIQMMA = "Activities
* IVIQMSM = "Tasks
* IVIQMUR = "Causes
* TRIWO020TAB = "

EXCEPTIONS
INVALID_NUMBER = 1 ARCHIVED_NOTI_ONLY_DISPLAY = 2
.



IMPORTING Parameters details for READ_NOTIFICATION

FEKNZ - (=X) With Items

Data type: VIQMEL-FEKNZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAKNZ - (=X) With Tasks

Data type: VIQMEL-MAKNZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MSGTY - Message Category

Data type: SY-MSGTY
Default: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)

QMNUM - Number of Maintenance Notification

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

I_DELETE - (=X) Including All Deleted

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

I_NOBUFFER - (=X) By Passing Buffer

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

I_VIQMEL -

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

IV_AKTYP - Aktivitätstyp in Transaktion (H/V/A)

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

IV_ARCHIVE - Archive checken

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

EXPORTING Parameters details for READ_NOTIFICATION

IBAUTX - Text Part

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

INDMARC -

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

FLGSER -

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

EV_XINDARCH_FILE - Archivierte Meldung mit Archivefile

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

IEQKT - Equipment Text

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

INDABSCHL - Indicator Message Finished

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

IPLTXT - Functional Location Text

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

IVIQMEL - Header Record

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

IRIWO02 - Catalog Profile Bar

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

ERIWO03 -

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

E_QMTYP -

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

INDLOEVM -

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

TABLES Parameters details for READ_NOTIFICATION

IVIQMFE - Items

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

IVIQMMA - Activities

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

IVIQMSM - Tasks

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

IVIQMUR - Causes

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

TRIWO020TAB -

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

EXCEPTIONS details

INVALID_NUMBER - Maintenance Notification Does Not Exist

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

ARCHIVED_NOTI_ONLY_DISPLAY - Meldung archiviert, nur Anzeige erlaubt

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for READ_NOTIFICATION 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_feknz  TYPE VIQMEL-FEKNZ, "   'X'
lv_ibautx  TYPE MAKT-MAKTX, "   
lt_iviqmfe  TYPE STANDARD TABLE OF WQMFE, "   
lv_invalid_number  TYPE WQMFE, "   
lv_indmarc  TYPE RIWO00-SELKT, "   
lv_flgser  TYPE RIWO1-FLGSER, "   
lv_ev_xindarch_file  TYPE IIND, "   
lv_ieqkt  TYPE EQKT-EQKTX, "   
lv_maknz  TYPE VIQMEL-MAKNZ, "   'X'
lt_iviqmma  TYPE STANDARD TABLE OF WQMMA, "   
lv_archived_noti_only_display  TYPE WQMMA, "   
lv_msgty  TYPE SY-MSGTY, "   'E'
lt_iviqmsm  TYPE STANDARD TABLE OF WQMSM, "   
lv_indabschl  TYPE RIWO00-SELKT, "   
lv_qmnum  TYPE VIQMEL-QMNUM, "   
lv_ipltxt  TYPE IFLO-PLTXT, "   
lt_iviqmur  TYPE STANDARD TABLE OF WQMUR, "   
lv_iviqmel  TYPE VIQMEL, "   
lv_i_delete  TYPE VIQMEL, "   
lt_triwo020tab  TYPE STANDARD TABLE OF RIWO020, "   
lv_iriwo02  TYPE RIWO02, "   
lv_i_nobuffer  TYPE RIWO02, "   
lv_eriwo03  TYPE RIWO03, "   
lv_i_viqmel  TYPE VIQMEL, "   
lv_e_qmtyp  TYPE TQ80-QMTYP, "   
lv_iv_aktyp  TYPE T365-AKTYP, "   
lv_indloevm  TYPE RIWO00-SELKT, "   
lv_iv_archive  TYPE IIND. "   

  CALL FUNCTION 'READ_NOTIFICATION'  "Lesen einer Meldung mit allen Positionen/Ursachen/Aktionen/Massnahme
    EXPORTING
         FEKNZ = lv_feknz
         MAKNZ = lv_maknz
         MSGTY = lv_msgty
         QMNUM = lv_qmnum
         I_DELETE = lv_i_delete
         I_NOBUFFER = lv_i_nobuffer
         I_VIQMEL = lv_i_viqmel
         IV_AKTYP = lv_iv_aktyp
         IV_ARCHIVE = lv_iv_archive
    IMPORTING
         IBAUTX = lv_ibautx
         INDMARC = lv_indmarc
         FLGSER = lv_flgser
         EV_XINDARCH_FILE = lv_ev_xindarch_file
         IEQKT = lv_ieqkt
         INDABSCHL = lv_indabschl
         IPLTXT = lv_ipltxt
         IVIQMEL = lv_iviqmel
         IRIWO02 = lv_iriwo02
         ERIWO03 = lv_eriwo03
         E_QMTYP = lv_e_qmtyp
         INDLOEVM = lv_indloevm
    TABLES
         IVIQMFE = lt_iviqmfe
         IVIQMMA = lt_iviqmma
         IVIQMSM = lt_iviqmsm
         IVIQMUR = lt_iviqmur
         TRIWO020TAB = lt_triwo020tab
    EXCEPTIONS
        INVALID_NUMBER = 1
        ARCHIVED_NOTI_ONLY_DISPLAY = 2
. " READ_NOTIFICATION




ABAP code using 7.40 inline data declarations to call FM READ_NOTIFICATION

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 FEKNZ FROM VIQMEL INTO @DATA(ld_feknz).
DATA(ld_feknz) = 'X'.
 
"SELECT single MAKTX FROM MAKT INTO @DATA(ld_ibautx).
 
 
 
"SELECT single SELKT FROM RIWO00 INTO @DATA(ld_indmarc).
 
"SELECT single FLGSER FROM RIWO1 INTO @DATA(ld_flgser).
 
 
"SELECT single EQKTX FROM EQKT INTO @DATA(ld_ieqkt).
 
"SELECT single MAKNZ FROM VIQMEL INTO @DATA(ld_maknz).
DATA(ld_maknz) = 'X'.
 
 
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_msgty).
DATA(ld_msgty) = 'E'.
 
 
"SELECT single SELKT FROM RIWO00 INTO @DATA(ld_indabschl).
 
"SELECT single QMNUM FROM VIQMEL INTO @DATA(ld_qmnum).
 
"SELECT single PLTXT FROM IFLO INTO @DATA(ld_ipltxt).
 
 
 
 
 
 
 
 
 
"SELECT single QMTYP FROM TQ80 INTO @DATA(ld_e_qmtyp).
 
"SELECT single AKTYP FROM T365 INTO @DATA(ld_iv_aktyp).
 
"SELECT single SELKT FROM RIWO00 INTO @DATA(ld_indloevm).
 
 


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!