SAP RKD_AUTHORITY_CHECK Function Module for RKD:authoriz. check on combination of characteristics(incl. preparation)
RKD_AUTHORITY_CHECK is a standard rkd 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 RKD:authoriz. check on combination of characteristics(incl. preparation) 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 rkd authority check FM, simply by entering the name RKD_AUTHORITY_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: KEFB
Program Name: SAPLKEFB
Main Program: SAPLKEFB
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RKD_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 'RKD_AUTHORITY_CHECK'"RKD:authoriz. check on combination of characteristics(incl. preparation).
EXPORTING
APPLCLASS = "Application class KE, KC, ...
I_RKB1X = "Contains line structure
* I_RKB1D = "
TABNAME = "Table name line item file
* E_MESSAGE = ' ' "E message raising xxxxx/ S message + RAISE
* SUBCLASS = '01' "Subgroup
* I_T_ADD_SEL = "
TABLES
PRINT_TABLE = "Printout structure
SEIG_TABLE = "Selected features
SELECTION_TABLE = "Selection table of requirement
* SH_TABLE = "Hierarchy table
EXCEPTIONS
AUTH_CHECK_FAILURE = 1 USER_NOT_AUTHORIZED = 2 PROGRAM_ERROR = 3
IMPORTING Parameters details for RKD_AUTHORITY_CHECK
APPLCLASS - Application class KE, KC, ...
Data type: TKES1-APPLCLASSOptional: No
Call by Reference: No ( called with pass by value option)
I_RKB1X - Contains line structure
Data type: RKB1XOptional: No
Call by Reference: No ( called with pass by value option)
I_RKB1D -
Data type: RKB1DOptional: Yes
Call by Reference: No ( called with pass by value option)
TABNAME - Table name line item file
Data type: TKES1-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
E_MESSAGE - E message raising xxxxx/ S message + RAISE
Data type: CEBPARA-MOREDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SUBCLASS - Subgroup
Data type: TKES1-SUBCLASSDefault: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_T_ADD_SEL -
Data type: RKD_T_SELOptional: Yes
Call by Reference: Yes
TABLES Parameters details for RKD_AUTHORITY_CHECK
PRINT_TABLE - Printout structure
Data type: CFBPR01Optional: No
Call by Reference: No ( called with pass by value option)
SEIG_TABLE - Selected features
Data type: CFBSE01Optional: No
Call by Reference: No ( called with pass by value option)
SELECTION_TABLE - Selection table of requirement
Data type: CEDSTOptional: No
Call by Reference: No ( called with pass by value option)
SH_TABLE - Hierarchy table
Data type: CFBSH01Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
AUTH_CHECK_FAILURE - Return code > 4 for AUTHORITY_CHECK
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
USER_NOT_AUTHORIZED - Return code = 4 for AUTHORITY_CHECK
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROGRAM_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RKD_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_applclass | TYPE TKES1-APPLCLASS, " | |||
| lt_print_table | TYPE STANDARD TABLE OF CFBPR01, " | |||
| lv_auth_check_failure | TYPE CFBPR01, " | |||
| lv_i_rkb1x | TYPE RKB1X, " | |||
| lt_seig_table | TYPE STANDARD TABLE OF CFBSE01, " | |||
| lv_user_not_authorized | TYPE CFBSE01, " | |||
| lv_i_rkb1d | TYPE RKB1D, " | |||
| lv_program_error | TYPE RKB1D, " | |||
| lt_selection_table | TYPE STANDARD TABLE OF CEDST, " | |||
| lv_tabname | TYPE TKES1-TABNAME, " | |||
| lt_sh_table | TYPE STANDARD TABLE OF CFBSH01, " | |||
| lv_e_message | TYPE CEBPARA-MORE, " ' ' | |||
| lv_subclass | TYPE TKES1-SUBCLASS, " '01' | |||
| lv_i_t_add_sel | TYPE RKD_T_SEL. " |
|   CALL FUNCTION 'RKD_AUTHORITY_CHECK' "RKD:authoriz. check on combination of characteristics(incl. preparation) |
| EXPORTING | ||
| APPLCLASS | = lv_applclass | |
| I_RKB1X | = lv_i_rkb1x | |
| I_RKB1D | = lv_i_rkb1d | |
| TABNAME | = lv_tabname | |
| E_MESSAGE | = lv_e_message | |
| SUBCLASS | = lv_subclass | |
| I_T_ADD_SEL | = lv_i_t_add_sel | |
| TABLES | ||
| PRINT_TABLE | = lt_print_table | |
| SEIG_TABLE | = lt_seig_table | |
| SELECTION_TABLE | = lt_selection_table | |
| SH_TABLE | = lt_sh_table | |
| EXCEPTIONS | ||
| AUTH_CHECK_FAILURE = 1 | ||
| USER_NOT_AUTHORIZED = 2 | ||
| PROGRAM_ERROR = 3 | ||
| . " RKD_AUTHORITY_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM RKD_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 APPLCLASS FROM TKES1 INTO @DATA(ld_applclass). | ||||
| "SELECT single TABNAME FROM TKES1 INTO @DATA(ld_tabname). | ||||
| "SELECT single MORE FROM CEBPARA INTO @DATA(ld_e_message). | ||||
| DATA(ld_e_message) | = ' '. | |||
| "SELECT single SUBCLASS FROM TKES1 INTO @DATA(ld_subclass). | ||||
| DATA(ld_subclass) | = '01'. | |||
Search for further information about these or an SAP related objects