SAP CREATE_NOTIFICATION Function Module for Notification: Create PM Notification With One Item (RFC)









CREATE_NOTIFICATION is a standard create 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 Notification: Create PM Notification With One Item (RFC) 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 create notification FM, simply by entering the name CREATE_NOTIFICATION into the relevant SAP transaction such as SE37 or SE38.

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



Function CREATE_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 'CREATE_NOTIFICATION'"Notification: Create PM Notification With One Item (RFC)
EXPORTING
I_VIQMEL = "Import Notification Data

IMPORTING
E_VIQMEL = "Export Notification Data

TABLES
* IVIQMFE = "Item Table

EXCEPTIONS
NO_AUTHORITY = 1 INVALID_ACTIVITY = 2 OTHER_ERRORS = 3 INVALID_EQUIPMENT = 4 INVALID_LOCATION = 5
.



IMPORTING Parameters details for CREATE_NOTIFICATION

I_VIQMEL - Import Notification Data

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

EXPORTING Parameters details for CREATE_NOTIFICATION

E_VIQMEL - Export Notification Data

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

TABLES Parameters details for CREATE_NOTIFICATION

IVIQMFE - Item Table

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

EXCEPTIONS details

NO_AUTHORITY -

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

INVALID_ACTIVITY -

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

OTHER_ERRORS -

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

INVALID_EQUIPMENT -

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

INVALID_LOCATION -

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

Copy and paste ABAP code example for CREATE_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:
lt_iviqmfe  TYPE STANDARD TABLE OF WQMFE, "   
lv_e_viqmel  TYPE VIQMEL, "   
lv_i_viqmel  TYPE VIQMEL, "   
lv_no_authority  TYPE VIQMEL, "   
lv_invalid_activity  TYPE VIQMEL, "   
lv_other_errors  TYPE VIQMEL, "   
lv_invalid_equipment  TYPE VIQMEL, "   
lv_invalid_location  TYPE VIQMEL. "   

  CALL FUNCTION 'CREATE_NOTIFICATION'  "Notification: Create PM Notification With One Item (RFC)
    EXPORTING
         I_VIQMEL = lv_i_viqmel
    IMPORTING
         E_VIQMEL = lv_e_viqmel
    TABLES
         IVIQMFE = lt_iviqmfe
    EXCEPTIONS
        NO_AUTHORITY = 1
        INVALID_ACTIVITY = 2
        OTHER_ERRORS = 3
        INVALID_EQUIPMENT = 4
        INVALID_LOCATION = 5
. " CREATE_NOTIFICATION




ABAP code using 7.40 inline data declarations to call FM CREATE_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.

 
 
 
 
 
 
 
 


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!