SAP Function Modules

READ_NOTIFICATION_BUFFER SAP Function module - Notification Data Read from Notification Buffer







READ_NOTIFICATION_BUFFER is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name READ_NOTIFICATION_BUFFER into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: IWO9
Released Date: 31.01.1995
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM READ_NOTIFICATION_BUFFER - READ NOTIFICATION BUFFER





CALL FUNCTION 'READ_NOTIFICATION_BUFFER' "Notification Data Read from Notification Buffer
* EXPORTING
*   no_tables =                 " char1
  IMPORTING
    e_viqmel =                  " viqmel        Notification data
    e_tq80 =                    " tq80          Notification Type Table
    e_t365 =                    " t365          Transaction Start Table
    e_riwo02 =                  " riwo02        Catalog Profile
    e_okcode =                  " t185f-fcode   Current OK Code
* TABLES
*   iviqmfe =                   " wqmfe         Item Data
*   iviqmma =                   " wqmma         Activity Data
*   iviqmsm =                   " wqmsm         Task Data
*   iviqmur =                   " wqmur         Cause Data
*   ihpa_tab =                  " ihpavb
    .  "  READ_NOTIFICATION_BUFFER

ABAP code example for Function Module READ_NOTIFICATION_BUFFER





The ABAP code below is a full code listing to execute function module READ_NOTIFICATION_BUFFER including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_viqmel  TYPE VIQMEL ,
ld_e_tq80  TYPE TQ80 ,
ld_e_t365  TYPE T365 ,
ld_e_riwo02  TYPE RIWO02 ,
ld_e_okcode  TYPE T185F-FCODE ,
it_iviqmfe  TYPE STANDARD TABLE OF WQMFE,"TABLES PARAM
wa_iviqmfe  LIKE LINE OF it_iviqmfe ,
it_iviqmma  TYPE STANDARD TABLE OF WQMMA,"TABLES PARAM
wa_iviqmma  LIKE LINE OF it_iviqmma ,
it_iviqmsm  TYPE STANDARD TABLE OF WQMSM,"TABLES PARAM
wa_iviqmsm  LIKE LINE OF it_iviqmsm ,
it_iviqmur  TYPE STANDARD TABLE OF WQMUR,"TABLES PARAM
wa_iviqmur  LIKE LINE OF it_iviqmur ,
it_ihpa_tab  TYPE STANDARD TABLE OF IHPAVB,"TABLES PARAM
wa_ihpa_tab  LIKE LINE OF it_ihpa_tab .

DATA(ld_no_tables) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_iviqmfe to it_iviqmfe.

"populate fields of struture and append to itab
append wa_iviqmma to it_iviqmma.

"populate fields of struture and append to itab
append wa_iviqmsm to it_iviqmsm.

"populate fields of struture and append to itab
append wa_iviqmur to it_iviqmur.

"populate fields of struture and append to itab
append wa_ihpa_tab to it_ihpa_tab. . CALL FUNCTION 'READ_NOTIFICATION_BUFFER' * EXPORTING * no_tables = ld_no_tables IMPORTING e_viqmel = ld_e_viqmel e_tq80 = ld_e_tq80 e_t365 = ld_e_t365 e_riwo02 = ld_e_riwo02 e_okcode = ld_e_okcode * TABLES * iviqmfe = it_iviqmfe * iviqmma = it_iviqmma * iviqmsm = it_iviqmsm * iviqmur = it_iviqmur * ihpa_tab = it_ihpa_tab . " READ_NOTIFICATION_BUFFER
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_viqmel  TYPE VIQMEL ,
ld_no_tables  TYPE CHAR1 ,
it_iviqmfe  TYPE STANDARD TABLE OF WQMFE ,
wa_iviqmfe  LIKE LINE OF it_iviqmfe,
ld_e_tq80  TYPE TQ80 ,
it_iviqmma  TYPE STANDARD TABLE OF WQMMA ,
wa_iviqmma  LIKE LINE OF it_iviqmma,
ld_e_t365  TYPE T365 ,
it_iviqmsm  TYPE STANDARD TABLE OF WQMSM ,
wa_iviqmsm  LIKE LINE OF it_iviqmsm,
ld_e_riwo02  TYPE RIWO02 ,
it_iviqmur  TYPE STANDARD TABLE OF WQMUR ,
wa_iviqmur  LIKE LINE OF it_iviqmur,
ld_e_okcode  TYPE T185F-FCODE ,
it_ihpa_tab  TYPE STANDARD TABLE OF IHPAVB ,
wa_ihpa_tab  LIKE LINE OF it_ihpa_tab.

ld_no_tables = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_iviqmfe to it_iviqmfe.

"populate fields of struture and append to itab
append wa_iviqmma to it_iviqmma.

"populate fields of struture and append to itab
append wa_iviqmsm to it_iviqmsm.

"populate fields of struture and append to itab
append wa_iviqmur to it_iviqmur.

"populate fields of struture and append to itab
append wa_ihpa_tab to it_ihpa_tab.

SAP Documentation for FM READ_NOTIFICATION_BUFFER


The function module READ_NOTIFICATION_BUFFER makes the notification data from other application buffers available. ...See here for full SAP fm documentation




Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name READ_NOTIFICATION_BUFFER or its description.