SAP TB_LIMIT_AUTHORITY_CHECK Function Module for Delete Unauthorized Objects
TB_LIMIT_AUTHORITY_CHECK is a standard tb limit authority check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Delete Unauthorized Objects processing and below is the pattern details for this FM, 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 tb limit authority check FM, simply by entering the name TB_LIMIT_AUTHORITY_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: TBL6
Program Name: SAPLTBL6
Main Program: SAPLTBL6
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TB_LIMIT_AUTHORITY_CHECK 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 'TB_LIMIT_AUTHORITY_CHECK'"Delete Unauthorized Objects.
EXPORTING
I_ACTVT = "Activity
* I_MSGTY = 'S' "Messages, Message Type
CHANGING
* C_AUTH_HIT = ' ' "''''=Authority Check Successful, 'X'= Failed
TABLES
* T_ATLAT = "Name of Limit Type
* T_ATLAM = "Allocation of Limit Characteristics to Limit Type
* T_VTBLS = "Limits: Logical/Physical Keys
* T_VTBLV = "Limits
IMPORTING Parameters details for TB_LIMIT_AUTHORITY_CHECK
I_ACTVT - Activity
Data type: TACT-ACTVTOptional: No
Call by Reference: No ( called with pass by value option)
I_MSGTY - Messages, Message Type
Data type: SY-MSGTYDefault: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for TB_LIMIT_AUTHORITY_CHECK
C_AUTH_HIT - ''''=Authority Check Successful, 'X'= Failed
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for TB_LIMIT_AUTHORITY_CHECK
T_ATLAT - Name of Limit Type
Data type: ATLATOptional: Yes
Call by Reference: Yes
T_ATLAM - Allocation of Limit Characteristics to Limit Type
Data type: ATLAMOptional: Yes
Call by Reference: Yes
T_VTBLS - Limits: Logical/Physical Keys
Data type: VTBLSOptional: Yes
Call by Reference: Yes
T_VTBLV - Limits
Data type: VTBLVOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for TB_LIMIT_AUTHORITY_CHECK 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_i_actvt | TYPE TACT-ACTVT, " | |||
| lt_t_atlat | TYPE STANDARD TABLE OF ATLAT, " | |||
| lv_c_auth_hit | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_msgty | TYPE SY-MSGTY, " 'S' | |||
| lt_t_atlam | TYPE STANDARD TABLE OF ATLAM, " | |||
| lt_t_vtbls | TYPE STANDARD TABLE OF VTBLS, " | |||
| lt_t_vtblv | TYPE STANDARD TABLE OF VTBLV. " |
|   CALL FUNCTION 'TB_LIMIT_AUTHORITY_CHECK' "Delete Unauthorized Objects |
| EXPORTING | ||
| I_ACTVT | = lv_i_actvt | |
| I_MSGTY | = lv_i_msgty | |
| CHANGING | ||
| C_AUTH_HIT | = lv_c_auth_hit | |
| TABLES | ||
| T_ATLAT | = lt_t_atlat | |
| T_ATLAM | = lt_t_atlam | |
| T_VTBLS | = lt_t_vtbls | |
| T_VTBLV | = lt_t_vtblt | |
| . " TB_LIMIT_AUTHORITY_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM TB_LIMIT_AUTHORITY_CHECK
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 ACTVT FROM TACT INTO @DATA(ld_i_actvt). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_c_auth_hit). | ||||
| DATA(ld_c_auth_hit) | = ' '. | |||
| "SELECT single MSGTY FROM SY INTO @DATA(ld_i_msgty). | ||||
| DATA(ld_i_msgty) | = 'S'. | |||
Search for further information about these or an SAP related objects