SAP K_PCA_RESP_AUTHORITY_CHECK Function Module for
K_PCA_RESP_AUTHORITY_CHECK is a standard k pca resp 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 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 k pca resp authority check FM, simply by entering the name K_PCA_RESP_AUTHORITY_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: KEFP
Program Name: SAPLKEFP
Main Program: SAPLKEFP
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function K_PCA_RESP_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 'K_PCA_RESP_AUTHORITY_CHECK'".
EXPORTING
I_KOKRS = "
* I_ACCTRANGE = "
* I_PRCTR = "
* I_PCGRP = "
* I_KSTAR = "
I_VORGN = "
I_ACTVT = "
* I_NO_DIALOG_MESSAGE = ' ' "
* I_AUTH = "
* I_ACCTGRP = "
EXCEPTIONS
NO_AUTHORITY = 1 DATA_MISSING = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLKEFP_001 Authorization Check: Area of Responsiblility
IMPORTING Parameters details for K_PCA_RESP_AUTHORITY_CHECK
I_KOKRS -
Data type: TKA01-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_ACCTRANGE -
Data type: PC22_T_ACCT_RANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PRCTR -
Data type: CEPC-PRCTROptional: Yes
Call by Reference: No ( called with pass by value option)
I_PCGRP -
Data type: SETHIER-SHORTNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KSTAR -
Data type: CSKA-KSTAROptional: Yes
Call by Reference: No ( called with pass by value option)
I_VORGN -
Data type: CCSS-VRGNGOptional: No
Call by Reference: No ( called with pass by value option)
I_ACTVT -
Data type: TACT-ACTVTOptional: No
Call by Reference: No ( called with pass by value option)
I_NO_DIALOG_MESSAGE -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AUTH -
Data type: PCA_I_AUTHOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ACCTGRP -
Data type: SETHIER-SHORTNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATA_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_PCA_RESP_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_kokrs | TYPE TKA01-KOKRS, " | |||
lv_no_authority | TYPE TKA01, " | |||
lv_i_acctrange | TYPE PC22_T_ACCT_RANGE, " | |||
lv_i_prctr | TYPE CEPC-PRCTR, " | |||
lv_data_missing | TYPE CEPC, " | |||
lv_i_pcgrp | TYPE SETHIER-SHORTNAME, " | |||
lv_i_kstar | TYPE CSKA-KSTAR, " | |||
lv_i_vorgn | TYPE CCSS-VRGNG, " | |||
lv_i_actvt | TYPE TACT-ACTVT, " | |||
lv_i_no_dialog_message | TYPE TACT, " ' ' | |||
lv_i_auth | TYPE PCA_I_AUTH, " | |||
lv_i_acctgrp | TYPE SETHIER-SHORTNAME. " |
  CALL FUNCTION 'K_PCA_RESP_AUTHORITY_CHECK' " |
EXPORTING | ||
I_KOKRS | = lv_i_kokrs | |
I_ACCTRANGE | = lv_i_acctrange | |
I_PRCTR | = lv_i_prctr | |
I_PCGRP | = lv_i_pcgrp | |
I_KSTAR | = lv_i_kstar | |
I_VORGN | = lv_i_vorgn | |
I_ACTVT | = lv_i_actvt | |
I_NO_DIALOG_MESSAGE | = lv_i_no_dialog_message | |
I_AUTH | = lv_i_auth | |
I_ACCTGRP | = lv_i_acctgrp | |
EXCEPTIONS | ||
NO_AUTHORITY = 1 | ||
DATA_MISSING = 2 | ||
. " K_PCA_RESP_AUTHORITY_CHECK |
ABAP code using 7.40 inline data declarations to call FM K_PCA_RESP_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 KOKRS FROM TKA01 INTO @DATA(ld_i_kokrs). | ||||
"SELECT single PRCTR FROM CEPC INTO @DATA(ld_i_prctr). | ||||
"SELECT single SHORTNAME FROM SETHIER INTO @DATA(ld_i_pcgrp). | ||||
"SELECT single KSTAR FROM CSKA INTO @DATA(ld_i_kstar). | ||||
"SELECT single VRGNG FROM CCSS INTO @DATA(ld_i_vorgn). | ||||
"SELECT single ACTVT FROM TACT INTO @DATA(ld_i_actvt). | ||||
DATA(ld_i_no_dialog_message) | = ' '. | |||
"SELECT single SHORTNAME FROM SETHIER INTO @DATA(ld_i_acctgrp). | ||||
Search for further information about these or an SAP related objects