SAP Function Modules

ALM_PM_NOTIFICATION_ADD_DATA SAP Function module







ALM_PM_NOTIFICATION_ADD_DATA 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 ALM_PM_NOTIFICATION_ADD_DATA into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: ALM_ME_PM_NOTIFICATION
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ALM_PM_NOTIFICATION_ADD_DATA - ALM PM NOTIFICATION ADD DATA





CALL FUNCTION 'ALM_PM_NOTIFICATION_ADD_DATA' "
  EXPORTING
    number =                    " bapi2080_nothdre-notif_no  Notification number
  IMPORTING
    notifheader =               " bapi2080_nothdre  Notification header
    notifhdtext =               " bapi2080_nothdtxte  Text fields for notification header
* TABLES
*   notfulltxt =                " bapi2080_notfulltxti  Work table for Full texts to message objects
*   notitem =                   " bapi2080_notitemi  Work table for notification items
*   notifcaus =                 " bapi2080_notcausi  Work Table for Causes
*   notifactv =                 " bapi2080_notactvi  Work table for Activities
*   notiftask =                 " bapi2080_nottaski  Work Table for Tasks
*   notifpartnr =               " bapi2080_notpartnri  Work Table for Partners
*   key_relationships =         " bapi2080_notkeye  Table for key releationships
*   return =                    " bapiret2      Message type:S success, E error, W warning, I information
    .  "  ALM_PM_NOTIFICATION_ADD_DATA

ABAP code example for Function Module ALM_PM_NOTIFICATION_ADD_DATA





The ABAP code below is a full code listing to execute function module ALM_PM_NOTIFICATION_ADD_DATA 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_notifheader  TYPE BAPI2080_NOTHDRE ,
ld_notifhdtext  TYPE BAPI2080_NOTHDTXTE ,
it_notfulltxt  TYPE STANDARD TABLE OF BAPI2080_NOTFULLTXTI,"TABLES PARAM
wa_notfulltxt  LIKE LINE OF it_notfulltxt ,
it_notitem  TYPE STANDARD TABLE OF BAPI2080_NOTITEMI,"TABLES PARAM
wa_notitem  LIKE LINE OF it_notitem ,
it_notifcaus  TYPE STANDARD TABLE OF BAPI2080_NOTCAUSI,"TABLES PARAM
wa_notifcaus  LIKE LINE OF it_notifcaus ,
it_notifactv  TYPE STANDARD TABLE OF BAPI2080_NOTACTVI,"TABLES PARAM
wa_notifactv  LIKE LINE OF it_notifactv ,
it_notiftask  TYPE STANDARD TABLE OF BAPI2080_NOTTASKI,"TABLES PARAM
wa_notiftask  LIKE LINE OF it_notiftask ,
it_notifpartnr  TYPE STANDARD TABLE OF BAPI2080_NOTPARTNRI,"TABLES PARAM
wa_notifpartnr  LIKE LINE OF it_notifpartnr ,
it_key_relationships  TYPE STANDARD TABLE OF BAPI2080_NOTKEYE,"TABLES PARAM
wa_key_relationships  LIKE LINE OF it_key_relationships ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .


DATA(ld_number) = some text here

"populate fields of struture and append to itab
append wa_notfulltxt to it_notfulltxt.

"populate fields of struture and append to itab
append wa_notitem to it_notitem.

"populate fields of struture and append to itab
append wa_notifcaus to it_notifcaus.

"populate fields of struture and append to itab
append wa_notifactv to it_notifactv.

"populate fields of struture and append to itab
append wa_notiftask to it_notiftask.

"populate fields of struture and append to itab
append wa_notifpartnr to it_notifpartnr.

"populate fields of struture and append to itab
append wa_key_relationships to it_key_relationships.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'ALM_PM_NOTIFICATION_ADD_DATA' EXPORTING number = ld_number IMPORTING notifheader = ld_notifheader notifhdtext = ld_notifhdtext * TABLES * notfulltxt = it_notfulltxt * notitem = it_notitem * notifcaus = it_notifcaus * notifactv = it_notifactv * notiftask = it_notiftask * notifpartnr = it_notifpartnr * key_relationships = it_key_relationships * return = it_return . " ALM_PM_NOTIFICATION_ADD_DATA
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_notifheader  TYPE BAPI2080_NOTHDRE ,
ld_number  TYPE BAPI2080_NOTHDRE-NOTIF_NO ,
it_notfulltxt  TYPE STANDARD TABLE OF BAPI2080_NOTFULLTXTI ,
wa_notfulltxt  LIKE LINE OF it_notfulltxt,
ld_notifhdtext  TYPE BAPI2080_NOTHDTXTE ,
it_notitem  TYPE STANDARD TABLE OF BAPI2080_NOTITEMI ,
wa_notitem  LIKE LINE OF it_notitem,
it_notifcaus  TYPE STANDARD TABLE OF BAPI2080_NOTCAUSI ,
wa_notifcaus  LIKE LINE OF it_notifcaus,
it_notifactv  TYPE STANDARD TABLE OF BAPI2080_NOTACTVI ,
wa_notifactv  LIKE LINE OF it_notifactv,
it_notiftask  TYPE STANDARD TABLE OF BAPI2080_NOTTASKI ,
wa_notiftask  LIKE LINE OF it_notiftask,
it_notifpartnr  TYPE STANDARD TABLE OF BAPI2080_NOTPARTNRI ,
wa_notifpartnr  LIKE LINE OF it_notifpartnr,
it_key_relationships  TYPE STANDARD TABLE OF BAPI2080_NOTKEYE ,
wa_key_relationships  LIKE LINE OF it_key_relationships,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return.


ld_number = some text here

"populate fields of struture and append to itab
append wa_notfulltxt to it_notfulltxt.

"populate fields of struture and append to itab
append wa_notitem to it_notitem.

"populate fields of struture and append to itab
append wa_notifcaus to it_notifcaus.

"populate fields of struture and append to itab
append wa_notifactv to it_notifactv.

"populate fields of struture and append to itab
append wa_notiftask to it_notiftask.

"populate fields of struture and append to itab
append wa_notifpartnr to it_notifpartnr.

"populate fields of struture and append to itab
append wa_key_relationships to it_key_relationships.

"populate fields of struture and append to itab
append wa_return to it_return.

SAP Documentation for FM ALM_PM_NOTIFICATION_ADD_DATA


This BAPI enables you to add items, causes, activities, task, long texts to a service notification. For more information about necessary ...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 ALM_PM_NOTIFICATION_ADD_DATA or its description.