SAP CACS_ORG_PERMISSIONS_ASK Function Module for NOTRANSL: Berechtigung aktueller User für PD-ORG-Objekte oder Provisionsve
CACS_ORG_PERMISSIONS_ASK is a standard cacs org permissions ask 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: Berechtigung aktueller User für PD-ORG-Objekte oder Provisionsve 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 org permissions ask FM, simply by entering the name CACS_ORG_PERMISSIONS_ASK into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS_ORG_PERMISSION
Program Name: SAPLCACS_ORG_PERMISSION
Main Program: SAPLCACS_ORG_PERMISSION
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CACS_ORG_PERMISSIONS_ASK 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_ORG_PERMISSIONS_ASK'"NOTRANSL: Berechtigung aktueller User für PD-ORG-Objekte oder Provisionsve.
EXPORTING
I_APPL = "
* I_CONT_CTRT = ' ' "
* I_CALLED_FROM_CONTR = ' ' "
* I_FLG_RESET = ' ' "
* I_OTYPE = "
* I_OBJID = "
* I_CTRTBU_ID = "
I_ACTVT = "
* I_SEARCH_DATE_CONTR = SY-DATUM "
* I_SEARCH_DATE_CLERK = SY-DATUM "
* I_SEARCH_SINGLE = 'X' "
IMPORTING
E_FLG_NO_POSITION_AT_TIME = "
TABLES
* I_CACS_CTRTBU = "
EXCEPTIONS
NO_AUTHORITY = 1 CONTRACT_DOES_NOT_EXIST = 10 CONTRACT_DOES_NOT_EXIST_TIME = 11 CONTRACT_DOES_NOT_EXIST_IN_PD = 12 UNKNOWN_ERROR = 13 NO_OTYPE_TO_OBJID_SET = 2 NO_ACTIVE_PLVAR_FOUND = 3 NO_CALC_PATH_SET = 4 USER_NOT_BP = 5 BP_HAS_NO_CLERK_ROLE = 6 NO_PDORG_RIGHTS = 7 NO_BP_FOUND = 8 CONTRACT_IS_INITIAL = 9
IMPORTING Parameters details for CACS_ORG_PERMISSIONS_ASK
I_APPL -
Data type: CACSAPPLOptional: No
Call by Reference: No ( called with pass by value option)
I_CONT_CTRT -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CALLED_FROM_CONTR -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_RESET -
Data type: BOOLEAN_FLGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OTYPE -
Data type: OTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJID -
Data type: CACS_OBJID_OOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CTRTBU_ID -
Data type: CACS_CTRTBU_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ACTVT -
Data type: BU_AKTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_SEARCH_DATE_CONTR -
Data type: DATSDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SEARCH_DATE_CLERK -
Data type: DATSDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SEARCH_SINGLE -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CACS_ORG_PERMISSIONS_ASK
E_FLG_NO_POSITION_AT_TIME -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CACS_ORG_PERMISSIONS_ASK
I_CACS_CTRTBU -
Data type: CACS_CTRTBUOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONTRACT_DOES_NOT_EXIST -
Data type:Optional: No
Call by Reference: Yes
CONTRACT_DOES_NOT_EXIST_TIME -
Data type:Optional: No
Call by Reference: Yes
CONTRACT_DOES_NOT_EXIST_IN_PD -
Data type:Optional: No
Call by Reference: Yes
UNKNOWN_ERROR -
Data type:Optional: No
Call by Reference: Yes
NO_OTYPE_TO_OBJID_SET -
Data type:Optional: No
Call by Reference: Yes
NO_ACTIVE_PLVAR_FOUND -
Data type:Optional: No
Call by Reference: Yes
NO_CALC_PATH_SET -
Data type:Optional: No
Call by Reference: Yes
USER_NOT_BP -
Data type:Optional: No
Call by Reference: Yes
BP_HAS_NO_CLERK_ROLE -
Data type:Optional: No
Call by Reference: Yes
NO_PDORG_RIGHTS -
Data type:Optional: No
Call by Reference: Yes
NO_BP_FOUND -
Data type:Optional: No
Call by Reference: Yes
CONTRACT_IS_INITIAL -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CACS_ORG_PERMISSIONS_ASK 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_appl | TYPE CACSAPPL, " | |||
| lv_no_authority | TYPE CACSAPPL, " | |||
| lt_i_cacs_ctrtbu | TYPE STANDARD TABLE OF CACS_CTRTBU, " | |||
| lv_e_flg_no_position_at_time | TYPE CACS_CTRTBU, " | |||
| lv_i_cont_ctrt | TYPE C, " SPACE | |||
| lv_contract_does_not_exist | TYPE C, " | |||
| lv_i_called_from_contr | TYPE C, " SPACE | |||
| lv_contract_does_not_exist_time | TYPE C, " | |||
| lv_contract_does_not_exist_in_pd | TYPE C, " | |||
| lv_unknown_error | TYPE C, " | |||
| lv_i_flg_reset | TYPE BOOLEAN_FLG, " SPACE | |||
| lv_no_otype_to_objid_set | TYPE BOOLEAN_FLG, " | |||
| lv_i_otype | TYPE OTYPE, " | |||
| lv_no_active_plvar_found | TYPE OTYPE, " | |||
| lv_i_objid | TYPE CACS_OBJID_O, " | |||
| lv_no_calc_path_set | TYPE CACS_OBJID_O, " | |||
| lv_i_ctrtbu_id | TYPE CACS_CTRTBU_ID, " | |||
| lv_user_not_bp | TYPE CACS_CTRTBU_ID, " | |||
| lv_i_actvt | TYPE BU_AKTYP, " | |||
| lv_bp_has_no_clerk_role | TYPE BU_AKTYP, " | |||
| lv_no_pdorg_rights | TYPE BU_AKTYP, " | |||
| lv_i_search_date_contr | TYPE DATS, " SY-DATUM | |||
| lv_no_bp_found | TYPE DATS, " | |||
| lv_i_search_date_clerk | TYPE DATS, " SY-DATUM | |||
| lv_i_search_single | TYPE C, " 'X' | |||
| lv_contract_is_initial | TYPE C. " |
|   CALL FUNCTION 'CACS_ORG_PERMISSIONS_ASK' "NOTRANSL: Berechtigung aktueller User für PD-ORG-Objekte oder Provisionsve |
| EXPORTING | ||
| I_APPL | = lv_i_appl | |
| I_CONT_CTRT | = lv_i_cont_ctrt | |
| I_CALLED_FROM_CONTR | = lv_i_called_from_contr | |
| I_FLG_RESET | = lv_i_flg_reset | |
| I_OTYPE | = lv_i_otype | |
| I_OBJID | = lv_i_objid | |
| I_CTRTBU_ID | = lv_i_ctrtbu_id | |
| I_ACTVT | = lv_i_actvt | |
| I_SEARCH_DATE_CONTR | = lv_i_search_date_contr | |
| I_SEARCH_DATE_CLERK | = lv_i_search_date_clerk | |
| I_SEARCH_SINGLE | = lv_i_search_single | |
| IMPORTING | ||
| E_FLG_NO_POSITION_AT_TIME | = lv_e_flg_no_position_at_time | |
| TABLES | ||
| I_CACS_CTRTBU | = lt_i_cacs_ctrtbu | |
| EXCEPTIONS | ||
| NO_AUTHORITY = 1 | ||
| CONTRACT_DOES_NOT_EXIST = 10 | ||
| CONTRACT_DOES_NOT_EXIST_TIME = 11 | ||
| CONTRACT_DOES_NOT_EXIST_IN_PD = 12 | ||
| UNKNOWN_ERROR = 13 | ||
| NO_OTYPE_TO_OBJID_SET = 2 | ||
| NO_ACTIVE_PLVAR_FOUND = 3 | ||
| NO_CALC_PATH_SET = 4 | ||
| USER_NOT_BP = 5 | ||
| BP_HAS_NO_CLERK_ROLE = 6 | ||
| NO_PDORG_RIGHTS = 7 | ||
| NO_BP_FOUND = 8 | ||
| CONTRACT_IS_INITIAL = 9 | ||
| . " CACS_ORG_PERMISSIONS_ASK | ||
ABAP code using 7.40 inline data declarations to call FM CACS_ORG_PERMISSIONS_ASK
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_cont_ctrt) | = ' '. | |||
| DATA(ld_i_called_from_contr) | = ' '. | |||
| DATA(ld_i_flg_reset) | = ' '. | |||
| DATA(ld_i_search_date_contr) | = SY-DATUM. | |||
| DATA(ld_i_search_date_clerk) | = SY-DATUM. | |||
| DATA(ld_i_search_single) | = 'X'. | |||
Search for further information about these or an SAP related objects