SAP CNAU_AUTHORITY_PROJ_MULTI Function Module for NOTRANSL: Berechtigungsprüfung für Projektdefinition
CNAU_AUTHORITY_PROJ_MULTI is a standard cnau authority proj multi 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: Berechtigungsprüfung für Projektdefinition 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 cnau authority proj multi FM, simply by entering the name CNAU_AUTHORITY_PROJ_MULTI into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNAU
Program Name: SAPLCNAU
Main Program: SAPLCNAU
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CNAU_AUTHORITY_PROJ_MULTI 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 'CNAU_AUTHORITY_PROJ_MULTI'"NOTRANSL: Berechtigungsprüfung für Projektdefinition.
EXPORTING
* AUTH_OBJECT = ' ' "Authorization object
* SMSG_ON = ' ' "Write message in log
* SMSG_ZEILE = 000 "Reference line for message_store
* GEN_REPORT = ' ' "
TABLES
T_PROJ = "WBS element table
T_ACTVT = "Actions to check
* T_PROJ_AUTH = "Authorizations indicator
* T_PSJ_AUTH = "
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_SAPLCNAU_001 PS Customer Exit: Project Definition Authorization Check
EXIT_SAPLCNAU_002 PS Customer Exit WBS Elment Authorization Check
EXIT_SAPLCNAU_003 PS Customer Exit Network Header Authorization Check
EXIT_SAPLCNAU_004 PS Customer Exit: Network Activity Authorization Check
EXIT_SAPLCNAU_005 PS Customer Exit: Milestone Authorization Check
EXIT_SAPLCNAU_006 PS Customer Exit PS Text Authorization Check
EXIT_SAPLCNAU_007 PS Customer Exit: Simulation Version Authorization Check
IMPORTING Parameters details for CNAU_AUTHORITY_PROJ_MULTI
AUTH_OBJECT - Authorization object
Data type: TOBJ-OBJCTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SMSG_ON - Write message in log
Data type: RCJ_MARKL-MARKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SMSG_ZEILE - Reference line for message_store
Data type: MESG-ZEILEDefault: 000
Optional: Yes
Call by Reference: No ( called with pass by value option)
GEN_REPORT -
Data type: RS38M-PROGRAMMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CNAU_AUTHORITY_PROJ_MULTI
T_PROJ - WBS element table
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
T_ACTVT - Actions to check
Data type: TACTOptional: No
Call by Reference: No ( called with pass by value option)
T_PROJ_AUTH - Authorizations indicator
Data type: PROJ_AUTHOptional: Yes
Call by Reference: No ( called with pass by value option)
T_PSJ_AUTH -
Data type: PSJ_AUTHOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CNAU_AUTHORITY_PROJ_MULTI 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: | ||||
| lt_t_proj | TYPE STANDARD TABLE OF STRING, " | |||
| lv_auth_object | TYPE TOBJ-OBJCT, " SPACE | |||
| lv_smsg_on | TYPE RCJ_MARKL-MARK, " SPACE | |||
| lt_t_actvt | TYPE STANDARD TABLE OF TACT, " | |||
| lv_smsg_zeile | TYPE MESG-ZEILE, " 000 | |||
| lt_t_proj_auth | TYPE STANDARD TABLE OF PROJ_AUTH, " | |||
| lv_gen_report | TYPE RS38M-PROGRAMM, " SPACE | |||
| lt_t_psj_auth | TYPE STANDARD TABLE OF PSJ_AUTH. " |
|   CALL FUNCTION 'CNAU_AUTHORITY_PROJ_MULTI' "NOTRANSL: Berechtigungsprüfung für Projektdefinition |
| EXPORTING | ||
| AUTH_OBJECT | = lv_auth_object | |
| SMSG_ON | = lv_smsg_on | |
| SMSG_ZEILE | = lv_smsg_zeile | |
| GEN_REPORT | = lv_gen_report | |
| TABLES | ||
| T_PROJ | = lt_t_proj | |
| T_ACTVT | = lt_t_actvt | |
| T_PROJ_AUTH | = lt_t_proj_auth | |
| T_PSJ_AUTH | = lt_t_psj_auth | |
| . " CNAU_AUTHORITY_PROJ_MULTI | ||
ABAP code using 7.40 inline data declarations to call FM CNAU_AUTHORITY_PROJ_MULTI
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 OBJCT FROM TOBJ INTO @DATA(ld_auth_object). | ||||
| DATA(ld_auth_object) | = ' '. | |||
| "SELECT single MARK FROM RCJ_MARKL INTO @DATA(ld_smsg_on). | ||||
| DATA(ld_smsg_on) | = ' '. | |||
| "SELECT single ZEILE FROM MESG INTO @DATA(ld_smsg_zeile). | ||||
| DATA(ld_smsg_zeile) | = 000. | |||
| "SELECT single PROGRAMM FROM RS38M INTO @DATA(ld_gen_report). | ||||
| DATA(ld_gen_report) | = ' '. | |||
Search for further information about these or an SAP related objects