SAP Function Modules

MONITOR_LK_SDD SAP Function module - Oracle database monitor "locks": SDD (Service data download)







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

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


Pattern for FM MONITOR_LK_SDD - MONITOR LK SDD





CALL FUNCTION 'MONITOR_LK_SDD' "Oracle database monitor "locks": SDD (Service data download)
  TABLES
    process_list =              " ora_lk_process  SDD - Oracle lock monitor: process list
    instance_list =             " ora_lk_instance  SDD - Oracle lock monitor: instance list
    object_list =               " ora_lk_objects  SDD - Oracle lock monitor: list of loced objects
    locks_list =                " ora_lk_locks  SDD - Oracle lock monitor: lock summary
    .  "  MONITOR_LK_SDD

ABAP code example for Function Module MONITOR_LK_SDD





The ABAP code below is a full code listing to execute function module MONITOR_LK_SDD 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:
it_process_list  TYPE STANDARD TABLE OF ORA_LK_PROCESS,"TABLES PARAM
wa_process_list  LIKE LINE OF it_process_list ,
it_instance_list  TYPE STANDARD TABLE OF ORA_LK_INSTANCE,"TABLES PARAM
wa_instance_list  LIKE LINE OF it_instance_list ,
it_object_list  TYPE STANDARD TABLE OF ORA_LK_OBJECTS,"TABLES PARAM
wa_object_list  LIKE LINE OF it_object_list ,
it_locks_list  TYPE STANDARD TABLE OF ORA_LK_LOCKS,"TABLES PARAM
wa_locks_list  LIKE LINE OF it_locks_list .


"populate fields of struture and append to itab
append wa_process_list to it_process_list.

"populate fields of struture and append to itab
append wa_instance_list to it_instance_list.

"populate fields of struture and append to itab
append wa_object_list to it_object_list.

"populate fields of struture and append to itab
append wa_locks_list to it_locks_list. . CALL FUNCTION 'MONITOR_LK_SDD' TABLES process_list = it_process_list instance_list = it_instance_list object_list = it_object_list locks_list = it_locks_list . " MONITOR_LK_SDD
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:
it_process_list  TYPE STANDARD TABLE OF ORA_LK_PROCESS ,
wa_process_list  LIKE LINE OF it_process_list,
it_instance_list  TYPE STANDARD TABLE OF ORA_LK_INSTANCE ,
wa_instance_list  LIKE LINE OF it_instance_list,
it_object_list  TYPE STANDARD TABLE OF ORA_LK_OBJECTS ,
wa_object_list  LIKE LINE OF it_object_list,
it_locks_list  TYPE STANDARD TABLE OF ORA_LK_LOCKS ,
wa_locks_list  LIKE LINE OF it_locks_list.


"populate fields of struture and append to itab
append wa_process_list to it_process_list.

"populate fields of struture and append to itab
append wa_instance_list to it_instance_list.

"populate fields of struture and append to itab
append wa_object_list to it_object_list.

"populate fields of struture and append to itab
append wa_locks_list to it_locks_list.

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 MONITOR_LK_SDD or its description.