SAP BAPI_ALM_NOTIF_CREATE Function Module for Create PM/CS Notification
BAPI_ALM_NOTIF_CREATE is a standard bapi alm notif create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create PM/CS Notification 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 bapi alm notif create FM, simply by entering the name BAPI_ALM_NOTIF_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: IWOPM
Program Name: SAPLIWOPM
Main Program: SAPLIWOPM
Appliation area:
Release date: 30-Apr-2002
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function BAPI_ALM_NOTIF_CREATE 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 'BAPI_ALM_NOTIF_CREATE'"Create PM/CS Notification.
EXPORTING
* EXTERNAL_NUMBER = "Notification Number
NOTIF_TYPE = "Notification Type
NOTIFHEADER = "BAPI Service Notification for Creation
* TASK_DETERMINATION = ' ' "Indicator
* SENDER = "Logical System of Sender
* ORDERID = "Order Number
* IV_DONT_CHK_MANDATORY_PARTNER = "Do Not Check Mandatory Partner for Notification
IMPORTING
NOTIFHEADER_EXPORT = "BAPI Service Notification Header
TABLES
* NOTITEM = "Notification Item for Creation
* NOTIFCAUS = "Notification Cause for Creation
* NOTIFACTV = "Notification Activities for Creation
* NOTIFTASK = "Notification Task for Creation
* NOTIFPARTNR = "Partner for Creation/Change
* LONGTEXTS = "Notif. Long Text
* KEY_RELATIONSHIPS = "Key Relationships
* RETURN = "Return Parameters
IMPORTING Parameters details for BAPI_ALM_NOTIF_CREATE
EXTERNAL_NUMBER - Notification Number
Data type: BAPI2080_NOTHDRE-NOTIF_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
NOTIF_TYPE - Notification Type
Data type: BAPI2080-NOTIF_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
NOTIFHEADER - BAPI Service Notification for Creation
Data type: BAPI2080_NOTHDRIOptional: No
Call by Reference: No ( called with pass by value option)
TASK_DETERMINATION - Indicator
Data type: BAPIFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SENDER - Logical System of Sender
Data type: BAPI_SENDEROptional: Yes
Call by Reference: No ( called with pass by value option)
ORDERID - Order Number
Data type: BAPI2080_NOTHDRE-ORDERIDOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DONT_CHK_MANDATORY_PARTNER - Do Not Check Mandatory Partner for Notification
Data type: BAPIFLAG-BAPIFLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_ALM_NOTIF_CREATE
NOTIFHEADER_EXPORT - BAPI Service Notification Header
Data type: BAPI2080_NOTHDREOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_ALM_NOTIF_CREATE
NOTITEM - Notification Item for Creation
Data type: BAPI2080_NOTITEMIOptional: Yes
Call by Reference: Yes
NOTIFCAUS - Notification Cause for Creation
Data type: BAPI2080_NOTCAUSIOptional: Yes
Call by Reference: Yes
NOTIFACTV - Notification Activities for Creation
Data type: BAPI2080_NOTACTVIOptional: Yes
Call by Reference: Yes
NOTIFTASK - Notification Task for Creation
Data type: BAPI2080_NOTTASKIOptional: Yes
Call by Reference: Yes
NOTIFPARTNR - Partner for Creation/Change
Data type: BAPI2080_NOTPARTNRIOptional: Yes
Call by Reference: Yes
LONGTEXTS - Notif. Long Text
Data type: BAPI2080_NOTFULLTXTIOptional: Yes
Call by Reference: Yes
KEY_RELATIONSHIPS - Key Relationships
Data type: BAPI2080_NOTKEYEOptional: Yes
Call by Reference: Yes
RETURN - Return Parameters
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_ALM_NOTIF_CREATE 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_notitem | TYPE STANDARD TABLE OF BAPI2080_NOTITEMI, " | |||
lv_external_number | TYPE BAPI2080_NOTHDRE-NOTIF_NO, " | |||
lv_notifheader_export | TYPE BAPI2080_NOTHDRE, " | |||
lt_notifcaus | TYPE STANDARD TABLE OF BAPI2080_NOTCAUSI, " | |||
lv_notif_type | TYPE BAPI2080-NOTIF_TYPE, " | |||
lt_notifactv | TYPE STANDARD TABLE OF BAPI2080_NOTACTVI, " | |||
lv_notifheader | TYPE BAPI2080_NOTHDRI, " | |||
lt_notiftask | TYPE STANDARD TABLE OF BAPI2080_NOTTASKI, " | |||
lv_task_determination | TYPE BAPIFLAG, " SPACE | |||
lv_sender | TYPE BAPI_SENDER, " | |||
lt_notifpartnr | TYPE STANDARD TABLE OF BAPI2080_NOTPARTNRI, " | |||
lv_orderid | TYPE BAPI2080_NOTHDRE-ORDERID, " | |||
lt_longtexts | TYPE STANDARD TABLE OF BAPI2080_NOTFULLTXTI, " | |||
lt_key_relationships | TYPE STANDARD TABLE OF BAPI2080_NOTKEYE, " | |||
lv_iv_dont_chk_mandatory_partner | TYPE BAPIFLAG-BAPIFLAG, " | |||
lt_return | TYPE STANDARD TABLE OF BAPIRET2. " |
  CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE' "Create PM/CS Notification |
EXPORTING | ||
EXTERNAL_NUMBER | = lv_external_number | |
NOTIF_TYPE | = lv_notif_type | |
NOTIFHEADER | = lv_notifheader | |
TASK_DETERMINATION | = lv_task_determination | |
SENDER | = lv_sender | |
ORDERID | = lv_orderid | |
IV_DONT_CHK_MANDATORY_PARTNER | = lv_iv_dont_chk_mandatory_partner | |
IMPORTING | ||
NOTIFHEADER_EXPORT | = lv_notifheader_export | |
TABLES | ||
NOTITEM | = lt_notitem | |
NOTIFCAUS | = lt_notifcaus | |
NOTIFACTV | = lt_notifactv | |
NOTIFTASK | = lt_notiftask | |
NOTIFPARTNR | = lt_notifpartnr | |
LONGTEXTS | = lt_longtexts | |
KEY_RELATIONSHIPS | = lt_key_relationships | |
RETURN | = lt_return | |
. " BAPI_ALM_NOTIF_CREATE |
ABAP code using 7.40 inline data declarations to call FM BAPI_ALM_NOTIF_CREATE
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 NOTIF_NO FROM BAPI2080_NOTHDRE INTO @DATA(ld_external_number). | ||||
"SELECT single NOTIF_TYPE FROM BAPI2080 INTO @DATA(ld_notif_type). | ||||
DATA(ld_task_determination) | = ' '. | |||
"SELECT single ORDERID FROM BAPI2080_NOTHDRE INTO @DATA(ld_orderid). | ||||
"SELECT single BAPIFLAG FROM BAPIFLAG INTO @DATA(ld_iv_dont_chk_mandatory_partner). | ||||
Search for further information about these or an SAP related objects