LTRSM_ALERT_OBJECTS_GET 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 LTRSM_ALERT_OBJECTS_GET into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
LTRS_MONITOR
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'LTRSM_ALERT_OBJECTS_GET' "Get alert objects related to resources
EXPORTING
iv_root_object = " lmon_objkey_val Values of the Object Key Fields
iv_obcls = " lmon_obcls Object class for monitoring
iv_prprf = " lmon_prprf Presentation profile
iv_root_obcls = " lmon_obcls_root Root object-class
* CHANGING
* it_objkey = " index table
* et_object = " index table
. " LTRSM_ALERT_OBJECTS_GET
The ABAP code below is a full code listing to execute function module LTRSM_ALERT_OBJECTS_GET 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_it_objkey) = 'Check type of data required'.
DATA(ld_et_object) = 'Check type of data required'.
DATA(ld_iv_root_object) = 'Check type of data required'.
DATA(ld_iv_obcls) = 'Check type of data required'.
DATA(ld_iv_prprf) = 'Check type of data required'.
DATA(ld_iv_root_obcls) = 'Check type of data required'. . CALL FUNCTION 'LTRSM_ALERT_OBJECTS_GET' EXPORTING iv_root_object = ld_iv_root_object iv_obcls = ld_iv_obcls iv_prprf = ld_iv_prprf iv_root_obcls = ld_iv_root_obcls * CHANGING * it_objkey = ld_it_objkey * et_object = ld_et_object . " LTRSM_ALERT_OBJECTS_GET
IF SY-SUBRC EQ 0. "All OK ENDIF.
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_it_objkey | TYPE INDEX TABLE , |
| ld_iv_root_object | TYPE LMON_OBJKEY_VAL , |
| ld_et_object | TYPE INDEX TABLE , |
| ld_iv_obcls | TYPE LMON_OBCLS , |
| ld_iv_prprf | TYPE LMON_PRPRF , |
| ld_iv_root_obcls | TYPE LMON_OBCLS_ROOT . |
This function gets the alarm object class and site sent by the alert
monitor, and returns
...See here for full SAP fm documentation
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 LTRSM_ALERT_OBJECTS_GET or its description.
LTRSM_ALERT_OBJECTS_GET - Get alert objects related to resources LTRSE_TASK_SWITCH_MTHD - Switch tasks from one resource to another resource LTRQ_WORK_UNIT_GET - Get work unit request items LTRQ_SUPER_BUNDLE_SPLIT - Split super bundle into original bundles LTRQ_RQITM_PURGE - Purge request item LTRQ_RQITM_CANCEL_CHECK - Check whether request items can be cancelled