SALRT_CREATE_API 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 SALRT_CREATE_API into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SALRT_CREATE_LOCAL
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'SALRT_CREATE_API' "
* EXPORTING
* ip_category = " salrtdcat Alert Category
* ip_alias = " salertdalias
* ip_expiration_time = " salrtdexpt Alerts: Expiration Time
* ip_expiration_date = " salrtdexpd Alert: Expiration Date
* ip_wait_on_commit = 'X' " boole_d Boolean variable
* ip_application_guid = " guid_32 GUID as Application Identifier
* ip_get_sync_exceptions = SPACE " char1
* ii_container = " if_swf_cnt_container
IMPORTING
ep_alert_id = " salrtextid Alert ID: Identification Number of an Alert
* TABLES
* it_recipients = " salrtsrcp Alerts: Transfer Structure for Recipient with Reason
* it_activities = " salrtsact Alerts: URL for Follow-On Activities in Container
* it_container = " swcont Alert Container
* it_ext_recipients = " salrtscomm
* it_ext_addr = " salrtsaddr
* it_roles = " str_agr2 Roles
EXCEPTIONS
ALERT_CATEGORY_UNKNOWN = 1 "
ALERT_NO_RECIPIENTS = 2 "
ALERT_ERROR_UNKNOWN = 3 " Unknown Error
DESTINATION_UNDEFINED = 4 "
COMMUNICATION_FAILURE = 5 "
SYSTEM_FAILURE = 6 "
. " SALRT_CREATE_API
The ABAP code below is a full code listing to execute function module SALRT_CREATE_API 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).
| ld_ep_alert_id | TYPE SALRTEXTID , |
| it_it_recipients | TYPE STANDARD TABLE OF SALRTSRCP,"TABLES PARAM |
| wa_it_recipients | LIKE LINE OF it_it_recipients , |
| it_it_activities | TYPE STANDARD TABLE OF SALRTSACT,"TABLES PARAM |
| wa_it_activities | LIKE LINE OF it_it_activities , |
| it_it_container | TYPE STANDARD TABLE OF SWCONT,"TABLES PARAM |
| wa_it_container | LIKE LINE OF it_it_container , |
| it_it_ext_recipients | TYPE STANDARD TABLE OF SALRTSCOMM,"TABLES PARAM |
| wa_it_ext_recipients | LIKE LINE OF it_it_ext_recipients , |
| it_it_ext_addr | TYPE STANDARD TABLE OF SALRTSADDR,"TABLES PARAM |
| wa_it_ext_addr | LIKE LINE OF it_it_ext_addr , |
| it_it_roles | TYPE STANDARD TABLE OF STR_AGR2,"TABLES PARAM |
| wa_it_roles | LIKE LINE OF it_it_roles . |
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_ep_alert_id | TYPE SALRTEXTID , |
| ld_ip_category | TYPE SALRTDCAT , |
| it_it_recipients | TYPE STANDARD TABLE OF SALRTSRCP , |
| wa_it_recipients | LIKE LINE OF it_it_recipients, |
| ld_ip_alias | TYPE SALERTDALIAS , |
| it_it_activities | TYPE STANDARD TABLE OF SALRTSACT , |
| wa_it_activities | LIKE LINE OF it_it_activities, |
| ld_ip_expiration_time | TYPE SALRTDEXPT , |
| it_it_container | TYPE STANDARD TABLE OF SWCONT , |
| wa_it_container | LIKE LINE OF it_it_container, |
| ld_ip_expiration_date | TYPE SALRTDEXPD , |
| it_it_ext_recipients | TYPE STANDARD TABLE OF SALRTSCOMM , |
| wa_it_ext_recipients | LIKE LINE OF it_it_ext_recipients, |
| ld_ip_wait_on_commit | TYPE BOOLE_D , |
| it_it_ext_addr | TYPE STANDARD TABLE OF SALRTSADDR , |
| wa_it_ext_addr | LIKE LINE OF it_it_ext_addr, |
| ld_ip_application_guid | TYPE GUID_32 , |
| it_it_roles | TYPE STANDARD TABLE OF STR_AGR2 , |
| wa_it_roles | LIKE LINE OF it_it_roles, |
| ld_ip_get_sync_exceptions | TYPE CHAR1 , |
| ld_ii_container | TYPE IF_SWF_CNT_CONTAINER . |
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 SALRT_CREATE_API or its description.