SAP TR_DELETE_COMM_OBJECT_KEYS Function Module for









TR_DELETE_COMM_OBJECT_KEYS is a standard tr delete comm object keys SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 tr delete comm object keys FM, simply by entering the name TR_DELETE_COMM_OBJECT_KEYS into the relevant SAP transaction such as SE37 or SE38.

Function Group: STRI
Program Name: SAPLSTRI
Main Program: SAPLSTRI
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TR_DELETE_COMM_OBJECT_KEYS 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 'TR_DELETE_COMM_OBJECT_KEYS'"
EXPORTING
IS_E071_DELETE = "
* IV_DIALOG_FLAG = 'X' "

IMPORTING
ET_NEW_LOCKS = "

CHANGING
CS_REQUEST = "Request/Task

EXCEPTIONS
E_DATABASE_ACCESS_ERROR = 1 R_ACTION_ABORTED_BY_USER = 10 R_FOREIGN_LOCK = 11 W_BIGGER_LOCK_IN_SAME_ORDER = 12 W_DUPLICATE_ENTRY = 13 W_NO_AUTHORIZATION = 14 W_USER_NOT_OWNER = 15 E_EMPTY_LOCKKEY = 2 E_BAD_TARGET_REQUEST = 3 E_WRONG_SOURCE_CLIENT = 4 N_NO_DELETION_OF_C_OBJECTS = 5 N_NO_DELETION_OF_CORR_ENTRY = 6 N_OBJECT_ENTRY_DOESNT_EXIST = 7 N_REQUEST_ALREADY_RELEASED = 8 N_REQUEST_FROM_OTHER_SYSTEM = 9
.



IMPORTING Parameters details for TR_DELETE_COMM_OBJECT_KEYS

IS_E071_DELETE -

Data type: E071
Optional: No
Call by Reference: No ( called with pass by value option)

IV_DIALOG_FLAG -

Data type: TRPARI-W_DIALOG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for TR_DELETE_COMM_OBJECT_KEYS

ET_NEW_LOCKS -

Data type: TRWBO_T_LOCKTAB
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for TR_DELETE_COMM_OBJECT_KEYS

CS_REQUEST - Request/Task

Data type: TRWBO_REQUEST
Optional: No
Call by Reference: Yes

EXCEPTIONS details

E_DATABASE_ACCESS_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

R_ACTION_ABORTED_BY_USER -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

R_FOREIGN_LOCK -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

W_BIGGER_LOCK_IN_SAME_ORDER -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

W_DUPLICATE_ENTRY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

W_NO_AUTHORIZATION -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

W_USER_NOT_OWNER -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

E_EMPTY_LOCKKEY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

E_BAD_TARGET_REQUEST -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

E_WRONG_SOURCE_CLIENT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

N_NO_DELETION_OF_C_OBJECTS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

N_NO_DELETION_OF_CORR_ENTRY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

N_OBJECT_ENTRY_DOESNT_EXIST -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

N_REQUEST_ALREADY_RELEASED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

N_REQUEST_FROM_OTHER_SYSTEM -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for TR_DELETE_COMM_OBJECT_KEYS 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:
lv_cs_request  TYPE TRWBO_REQUEST, "   
lv_et_new_locks  TYPE TRWBO_T_LOCKTAB, "   
lv_is_e071_delete  TYPE E071, "   
lv_e_database_access_error  TYPE E071, "   
lv_r_action_aborted_by_user  TYPE E071, "   
lv_r_foreign_lock  TYPE E071, "   
lv_w_bigger_lock_in_same_order  TYPE E071, "   
lv_w_duplicate_entry  TYPE E071, "   
lv_w_no_authorization  TYPE E071, "   
lv_w_user_not_owner  TYPE E071, "   
lv_iv_dialog_flag  TYPE TRPARI-W_DIALOG, "   'X'
lv_e_empty_lockkey  TYPE TRPARI, "   
lv_e_bad_target_request  TYPE TRPARI, "   
lv_e_wrong_source_client  TYPE TRPARI, "   
lv_n_no_deletion_of_c_objects  TYPE TRPARI, "   
lv_n_no_deletion_of_corr_entry  TYPE TRPARI, "   
lv_n_object_entry_doesnt_exist  TYPE TRPARI, "   
lv_n_request_already_released  TYPE TRPARI, "   
lv_n_request_from_other_system  TYPE TRPARI. "   

  CALL FUNCTION 'TR_DELETE_COMM_OBJECT_KEYS'  "
    EXPORTING
         IS_E071_DELETE = lv_is_e071_delete
         IV_DIALOG_FLAG = lv_iv_dialog_flag
    IMPORTING
         ET_NEW_LOCKS = lv_et_new_locks
    CHANGING
         CS_REQUEST = lv_cs_request
    EXCEPTIONS
        E_DATABASE_ACCESS_ERROR = 1
        R_ACTION_ABORTED_BY_USER = 10
        R_FOREIGN_LOCK = 11
        W_BIGGER_LOCK_IN_SAME_ORDER = 12
        W_DUPLICATE_ENTRY = 13
        W_NO_AUTHORIZATION = 14
        W_USER_NOT_OWNER = 15
        E_EMPTY_LOCKKEY = 2
        E_BAD_TARGET_REQUEST = 3
        E_WRONG_SOURCE_CLIENT = 4
        N_NO_DELETION_OF_C_OBJECTS = 5
        N_NO_DELETION_OF_CORR_ENTRY = 6
        N_OBJECT_ENTRY_DOESNT_EXIST = 7
        N_REQUEST_ALREADY_RELEASED = 8
        N_REQUEST_FROM_OTHER_SYSTEM = 9
. " TR_DELETE_COMM_OBJECT_KEYS




ABAP code using 7.40 inline data declarations to call FM TR_DELETE_COMM_OBJECT_KEYS

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 W_DIALOG FROM TRPARI INTO @DATA(ld_iv_dialog_flag).
DATA(ld_iv_dialog_flag) = 'X'.
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!