SAP DOCU_AUTHORITYCHECK Function Module for









DOCU_AUTHORITYCHECK is a standard docu authoritycheck SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 docu authoritycheck FM, simply by entering the name DOCU_AUTHORITYCHECK into the relevant SAP transaction such as SE37 or SE38.

Function Group: SDOC
Program Name: SAPLSDOC
Main Program: SAPLSDOC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function DOCU_AUTHORITYCHECK 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 'DOCU_AUTHORITYCHECK'"
EXPORTING
* DEVCLASS = ' ' "
ID = "Documentation ID
* LOG_DATABASE = ' ' "
NAME = "Documentation developer name
OBJECT = "Documentation module name

IMPORTING
DEVCLASS = "

EXCEPTIONS
NOT_ALLOWED = 1 NOT_FOUND = 2 NO_ACTIVATE = 3 NO_ENTRY = 4
.



IMPORTING Parameters details for DOCU_AUTHORITYCHECK

DEVCLASS -

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

ID - Documentation ID

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

LOG_DATABASE -

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

NAME - Documentation developer name

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

OBJECT - Documentation module name

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

EXPORTING Parameters details for DOCU_AUTHORITYCHECK

DEVCLASS -

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

EXCEPTIONS details

NOT_ALLOWED -

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

NOT_FOUND -

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

NO_ACTIVATE -

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

NO_ENTRY -

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

Copy and paste ABAP code example for DOCU_AUTHORITYCHECK 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_devclass  TYPE TADIR-DEVCLASS, "   
lv_devclass  TYPE TADIR-DEVCLASS, "   SPACE
lv_not_allowed  TYPE TADIR, "   
lv_id  TYPE DOKHL-ID, "   
lv_not_found  TYPE DOKHL, "   
lv_no_activate  TYPE DOKHL, "   
lv_log_database  TYPE DOKHL, "   SPACE
lv_name  TYPE SY-UNAME, "   
lv_no_entry  TYPE SY, "   
lv_object  TYPE DOKHL-OBJECT. "   

  CALL FUNCTION 'DOCU_AUTHORITYCHECK'  "
    EXPORTING
         DEVCLASS = lv_devclass
         ID = lv_id
         LOG_DATABASE = lv_log_database
         NAME = lv_name
         OBJECT = lv_object
    IMPORTING
         DEVCLASS = lv_devclass
    EXCEPTIONS
        NOT_ALLOWED = 1
        NOT_FOUND = 2
        NO_ACTIVATE = 3
        NO_ENTRY = 4
. " DOCU_AUTHORITYCHECK




ABAP code using 7.40 inline data declarations to call FM DOCU_AUTHORITYCHECK

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 DEVCLASS FROM TADIR INTO @DATA(ld_devclass).
 
"SELECT single DEVCLASS FROM TADIR INTO @DATA(ld_devclass).
DATA(ld_devclass) = ' '.
 
 
"SELECT single ID FROM DOKHL INTO @DATA(ld_id).
 
 
 
DATA(ld_log_database) = ' '.
 
"SELECT single UNAME FROM SY INTO @DATA(ld_name).
 
 
"SELECT single OBJECT FROM DOKHL INTO @DATA(ld_object).
 


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!