SAP PSA_CHECK_PROC_AUTHORITY Function Module for Authorities for PSA
PSA_CHECK_PROC_AUTHORITY is a standard psa check proc authority SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Authorities for PSA 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 psa check proc authority FM, simply by entering the name PSA_CHECK_PROC_AUTHORITY into the relevant SAP transaction such as SE37 or SE38.
Function Group: PSACALC
Program Name: SAPLPSACALC
Main Program: SAPLPSACALC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PSA_CHECK_PROC_AUTHORITY 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 'PSA_CHECK_PROC_AUTHORITY'"Authorities for PSA.
EXPORTING
PROCESS_CODE = "Process Code for Authority
BUKRS = "Company Code
PSC_NAME = "PSC Name
ACTVT = "Activity
* TERM = "Terminal Code
IMPORTING
AUTH_RC = "Return Value, Return Value After ABAP Statements
EXCEPTIONS
NO_PROC_AUTH = 1 ONLY_DISPLAY = 2 NO_AUTHORITY = 3
IMPORTING Parameters details for PSA_CHECK_PROC_AUTHORITY
PROCESS_CODE - Process Code for Authority
Data type: T8PSA_VIEW_AUTH-PROCAOptional: No
Call by Reference: Yes
BUKRS - Company Code
Data type: T001-BUKRSOptional: No
Call by Reference: Yes
PSC_NAME - PSC Name
Data type: T8PSA_PSC-PSC_NAMEOptional: No
Call by Reference: Yes
ACTVT - Activity
Data type: TACT-ACTVTOptional: No
Call by Reference: Yes
TERM - Terminal Code
Data type: T8PSA_TERM-TERMOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for PSA_CHECK_PROC_AUTHORITY
AUTH_RC - Return Value, Return Value After ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_PROC_AUTH - no record in T8PSA_PROC_AUTH
Data type:Optional: No
Call by Reference: Yes
ONLY_DISPLAY - Only display Authority
Data type:Optional: No
Call by Reference: Yes
NO_AUTHORITY - No Authority
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PSA_CHECK_PROC_AUTHORITY 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_auth_rc | TYPE SY-SUBRC, " | |||
| lv_no_proc_auth | TYPE SY, " | |||
| lv_process_code | TYPE T8PSA_VIEW_AUTH-PROCA, " | |||
| lv_bukrs | TYPE T001-BUKRS, " | |||
| lv_only_display | TYPE T001, " | |||
| lv_psc_name | TYPE T8PSA_PSC-PSC_NAME, " | |||
| lv_no_authority | TYPE T8PSA_PSC, " | |||
| lv_actvt | TYPE TACT-ACTVT, " | |||
| lv_term | TYPE T8PSA_TERM-TERM. " |
|   CALL FUNCTION 'PSA_CHECK_PROC_AUTHORITY' "Authorities for PSA |
| EXPORTING | ||
| PROCESS_CODE | = lv_process_code | |
| BUKRS | = lv_bukrs | |
| PSC_NAME | = lv_psc_name | |
| ACTVT | = lv_actvt | |
| TERM | = lv_term | |
| IMPORTING | ||
| AUTH_RC | = lv_auth_rc | |
| EXCEPTIONS | ||
| NO_PROC_AUTH = 1 | ||
| ONLY_DISPLAY = 2 | ||
| NO_AUTHORITY = 3 | ||
| . " PSA_CHECK_PROC_AUTHORITY | ||
ABAP code using 7.40 inline data declarations to call FM PSA_CHECK_PROC_AUTHORITY
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 SUBRC FROM SY INTO @DATA(ld_auth_rc). | ||||
| "SELECT single PROCA FROM T8PSA_VIEW_AUTH INTO @DATA(ld_process_code). | ||||
| "SELECT single BUKRS FROM T001 INTO @DATA(ld_bukrs). | ||||
| "SELECT single PSC_NAME FROM T8PSA_PSC INTO @DATA(ld_psc_name). | ||||
| "SELECT single ACTVT FROM TACT INTO @DATA(ld_actvt). | ||||
| "SELECT single TERM FROM T8PSA_TERM INTO @DATA(ld_term). | ||||
Search for further information about these or an SAP related objects