SAP CNAU_AUTHORITY_VERS Function Module for NOTRANSL: Berechtigungsprüfung für Projektversion









CNAU_AUTHORITY_VERS is a standard cnau authority vers 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 Projektversion 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 vers FM, simply by entering the name CNAU_AUTHORITY_VERS 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_VERS 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_VERS'"NOTRANSL: Berechtigungsprüfung für Projektversion
EXPORTING
* ACTVT = CNAU_CREATE "Action
* MSGTY = ' ' "Message Type
* SMSG_ON = ' ' "Display message in log
* SMSG_ZEILE = 000 "Reference line for message_store

IMPORTING
X_ACTVT = "Activity allowed
.




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_VERS

ACTVT - Action

Data type: TACT-ACTVT
Default: CNAU_CREATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MSGTY - Message Type

Data type: SY-MSGTY
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SMSG_ON - Display message in log

Data type: RCJ_MARKL-MARK
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SMSG_ZEILE - Reference line for message_store

Data type: MESG-ZEILE
Default: 000
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CNAU_AUTHORITY_VERS

X_ACTVT - Activity allowed

Data type: RCJ_MARKL-MARK
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CNAU_AUTHORITY_VERS 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_actvt  TYPE TACT-ACTVT, "   CNAU_CREATE
lv_x_actvt  TYPE RCJ_MARKL-MARK, "   
lv_msgty  TYPE SY-MSGTY, "   SPACE
lv_smsg_on  TYPE RCJ_MARKL-MARK, "   SPACE
lv_smsg_zeile  TYPE MESG-ZEILE. "   000

  CALL FUNCTION 'CNAU_AUTHORITY_VERS'  "NOTRANSL: Berechtigungsprüfung für Projektversion
    EXPORTING
         ACTVT = lv_actvt
         MSGTY = lv_msgty
         SMSG_ON = lv_smsg_on
         SMSG_ZEILE = lv_smsg_zeile
    IMPORTING
         X_ACTVT = lv_x_actvt
. " CNAU_AUTHORITY_VERS




ABAP code using 7.40 inline data declarations to call FM CNAU_AUTHORITY_VERS

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 ACTVT FROM TACT INTO @DATA(ld_actvt).
DATA(ld_actvt) = CNAU_CREATE.
 
"SELECT single MARK FROM RCJ_MARKL INTO @DATA(ld_x_actvt).
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_msgty).
DATA(ld_msgty) = ' '.
 
"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.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!