SAP CACS_CHECK_QUAL_AUTH Function Module for NOTRANSL: Funktionsbaustein für die qual. Berechtigungsprüfung
CACS_CHECK_QUAL_AUTH is a standard cacs check qual auth SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Funktionsbaustein für die qual. Berechtigungsprüfung 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 cacs check qual auth FM, simply by entering the name CACS_CHECK_QUAL_AUTH into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS_AUTH
Program Name: SAPLCACS_AUTH
Main Program: SAPLCACS_AUTH
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CACS_CHECK_QUAL_AUTH 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 'CACS_CHECK_QUAL_AUTH'"NOTRANSL: Funktionsbaustein für die qual. Berechtigungsprüfung.
EXPORTING
* I_APPLICATION = "Segment
I_OBJECT = "
* I_ACTVT = '*' "Activity
* I_BUS_OBJ_TYP = ' ' "Business Object Category
* I_DOC_TYP = ' ' "Document Category
* I_CTRTBU_ID = ' ' "
* I_SEG_ID = ' ' "Number of segment
* I_SEG_TYP = ' ' "Segment Type
EXCEPTIONS
NO_AUTHORITY = 1 WRONG_PARAMETERS = 2
IMPORTING Parameters details for CACS_CHECK_QUAL_AUTH
I_APPLICATION - Segment
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJECT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_ACTVT - Activity
Data type:Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BUS_OBJ_TYP - Business Object Category
Data type: CACSBUSOBJTYPDefault: ' '
Optional: Yes
Call by Reference: Yes
I_DOC_TYP - Document Category
Data type: CACSDOCTYPEDefault: ' '
Optional: Yes
Call by Reference: Yes
I_CTRTBU_ID -
Data type: CACS_CTRTBU_IDDefault: ' '
Optional: Yes
Call by Reference: Yes
I_SEG_ID - Number of segment
Data type: CACS_SEGIDDefault: ' '
Optional: Yes
Call by Reference: Yes
I_SEG_TYP - Segment Type
Data type: CACS_SEGTYPDefault: ' '
Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_PARAMETERS - Call Set with Incorrect Parameters
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CACS_CHECK_QUAL_AUTH 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_no_authority | TYPE STRING, " | |||
| lv_i_application | TYPE STRING, " | |||
| lv_i_object | TYPE STRING, " | |||
| lv_wrong_parameters | TYPE STRING, " | |||
| lv_i_actvt | TYPE STRING, " '*' | |||
| lv_i_bus_obj_typ | TYPE CACSBUSOBJTYP, " ' ' | |||
| lv_i_doc_typ | TYPE CACSDOCTYPE, " ' ' | |||
| lv_i_ctrtbu_id | TYPE CACS_CTRTBU_ID, " ' ' | |||
| lv_i_seg_id | TYPE CACS_SEGID, " ' ' | |||
| lv_i_seg_typ | TYPE CACS_SEGTYP. " ' ' |
|   CALL FUNCTION 'CACS_CHECK_QUAL_AUTH' "NOTRANSL: Funktionsbaustein für die qual. Berechtigungsprüfung |
| EXPORTING | ||
| I_APPLICATION | = lv_i_application | |
| I_OBJECT | = lv_i_object | |
| I_ACTVT | = lv_i_actvt | |
| I_BUS_OBJ_TYP | = lv_i_bus_obj_typ | |
| I_DOC_TYP | = lv_i_doc_typ | |
| I_CTRTBU_ID | = lv_i_ctrtbu_id | |
| I_SEG_ID | = lv_i_seg_id | |
| I_SEG_TYP | = lv_i_seg_typ | |
| EXCEPTIONS | ||
| NO_AUTHORITY = 1 | ||
| WRONG_PARAMETERS = 2 | ||
| . " CACS_CHECK_QUAL_AUTH | ||
ABAP code using 7.40 inline data declarations to call FM CACS_CHECK_QUAL_AUTH
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.| DATA(ld_i_actvt) | = '*'. | |||
| DATA(ld_i_bus_obj_typ) | = ' '. | |||
| DATA(ld_i_doc_typ) | = ' '. | |||
| DATA(ld_i_ctrtbu_id) | = ' '. | |||
| DATA(ld_i_seg_id) | = ' '. | |||
| DATA(ld_i_seg_typ) | = ' '. | |||
Search for further information about these or an SAP related objects