SAP CNV_TDMS_AUTHORITY_CHECK Function Module for Authority check for TDMS









CNV_TDMS_AUTHORITY_CHECK is a standard cnv tdms authority check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Authority check for TDMS 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 cnv tdms authority check FM, simply by entering the name CNV_TDMS_AUTHORITY_CHECK into the relevant SAP transaction such as SE37 or SE38.

Function Group: CNV_TDMS_XAPP_A
Program Name: SAPLCNV_TDMS_XAPP_A
Main Program: SAPLCNV_TDMS_XAPP_A
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CNV_TDMS_AUTHORITY_CHECK 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 'CNV_TDMS_AUTHORITY_CHECK'"Authority check for TDMS
EXPORTING
OBJECT = "Auth. object in user master maintenance
* FIELD5 = ' ' "Field name for authorizations
* VALUE5 = ' ' "Authorization value
* FIELD6 = ' ' "Field name for authorizations
* VALUE6 = ' ' "Authorization value
* FIELD7 = ' ' "Field name for authorizations
* VALUE7 = ' ' "Authorization value
* FIELD8 = ' ' "Field name for authorizations
* VALUE8 = ' ' "Authorization value
* FIELD9 = ' ' "Field name for authorizations
* VALUE9 = ' ' "Authorization value
FIELD1 = "Field name for authorizations
* FIELD10 = ' ' "Field name for authorizations
* VALUE10 = ' ' "Authorization value
* VALUE1 = ' ' "Authorization value
* FIELD2 = ' ' "Field name for authorizations
* VALUE2 = ' ' "Authorization value
* FIELD3 = ' ' "Field name for authorizations
* VALUE3 = ' ' "Authorization value
* FIELD4 = ' ' "Field name for authorizations
* VALUE4 = ' ' "Authorization value

EXCEPTIONS
USER_DONT_EXIST = 1 USER_IS_AUTHORIZED = 2 USER_NOT_AUTHORIZED = 3 USER_IS_LOCKED = 4
.



IMPORTING Parameters details for CNV_TDMS_AUTHORITY_CHECK

OBJECT - Auth. object in user master maintenance

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

FIELD5 - Field name for authorizations

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

VALUE5 - Authorization value

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

FIELD6 - Field name for authorizations

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

VALUE6 - Authorization value

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

FIELD7 - Field name for authorizations

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

VALUE7 - Authorization value

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

FIELD8 - Field name for authorizations

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

VALUE8 - Authorization value

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

FIELD9 - Field name for authorizations

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

VALUE9 - Authorization value

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

FIELD1 - Field name for authorizations

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

FIELD10 - Field name for authorizations

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

VALUE10 - Authorization value

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

VALUE1 - Authorization value

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

FIELD2 - Field name for authorizations

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

VALUE2 - Authorization value

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

FIELD3 - Field name for authorizations

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

VALUE3 - Authorization value

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

FIELD4 - Field name for authorizations

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

VALUE4 - Authorization value

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

EXCEPTIONS details

USER_DONT_EXIST - User does not exist

Data type:
Optional: No
Call by Reference: Yes

USER_IS_AUTHORIZED - User is authorized

Data type:
Optional: No
Call by Reference: Yes

USER_NOT_AUTHORIZED - User is not authorized

Data type:
Optional: No
Call by Reference: Yes

USER_IS_LOCKED - User is locked or invalid

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CNV_TDMS_AUTHORITY_CHECK 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_object  TYPE UST12-OBJCT, "   
lv_user_dont_exist  TYPE UST12, "   
lv_field5  TYPE UST12-FIELD, "   SPACE
lv_value5  TYPE UST12-VON, "   SPACE
lv_field6  TYPE UST12-FIELD, "   SPACE
lv_value6  TYPE UST12-VON, "   SPACE
lv_field7  TYPE UST12-FIELD, "   SPACE
lv_value7  TYPE UST12-VON, "   SPACE
lv_field8  TYPE UST12-FIELD, "   SPACE
lv_value8  TYPE UST12-VON, "   SPACE
lv_field9  TYPE UST12-FIELD, "   SPACE
lv_value9  TYPE UST12-VON, "   SPACE
lv_field1  TYPE UST12-FIELD, "   
lv_user_is_authorized  TYPE UST12, "   
lv_field10  TYPE UST12-FIELD, "   SPACE
lv_value10  TYPE UST12-VON, "   SPACE
lv_value1  TYPE UST12-VON, "   SPACE
lv_user_not_authorized  TYPE UST12, "   
lv_field2  TYPE UST12-FIELD, "   SPACE
lv_user_is_locked  TYPE UST12, "   
lv_value2  TYPE UST12-VON, "   SPACE
lv_field3  TYPE UST12-FIELD, "   SPACE
lv_value3  TYPE UST12-VON, "   SPACE
lv_field4  TYPE UST12-FIELD, "   SPACE
lv_value4  TYPE UST12-VON. "   SPACE

  CALL FUNCTION 'CNV_TDMS_AUTHORITY_CHECK'  "Authority check for TDMS
    EXPORTING
         OBJECT = lv_object
         FIELD5 = lv_field5
         VALUE5 = lv_value5
         FIELD6 = lv_field6
         VALUE6 = lv_value6
         FIELD7 = lv_field7
         VALUE7 = lv_value7
         FIELD8 = lv_field8
         VALUE8 = lv_value8
         FIELD9 = lv_field9
         VALUE9 = lv_value9
         FIELD1 = lv_field1
         FIELD10 = lv_field10
         VALUE10 = lv_value10
         VALUE1 = lv_value1
         FIELD2 = lv_field2
         VALUE2 = lv_value2
         FIELD3 = lv_field3
         VALUE3 = lv_value3
         FIELD4 = lv_field4
         VALUE4 = lv_value4
    EXCEPTIONS
        USER_DONT_EXIST = 1
        USER_IS_AUTHORIZED = 2
        USER_NOT_AUTHORIZED = 3
        USER_IS_LOCKED = 4
. " CNV_TDMS_AUTHORITY_CHECK




ABAP code using 7.40 inline data declarations to call FM CNV_TDMS_AUTHORITY_CHECK

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 UST12 INTO @DATA(ld_object).
 
 
"SELECT single FIELD FROM UST12 INTO @DATA(ld_field5).
DATA(ld_field5) = ' '.
 
"SELECT single VON FROM UST12 INTO @DATA(ld_value5).
DATA(ld_value5) = ' '.
 
"SELECT single FIELD FROM UST12 INTO @DATA(ld_field6).
DATA(ld_field6) = ' '.
 
"SELECT single VON FROM UST12 INTO @DATA(ld_value6).
DATA(ld_value6) = ' '.
 
"SELECT single FIELD FROM UST12 INTO @DATA(ld_field7).
DATA(ld_field7) = ' '.
 
"SELECT single VON FROM UST12 INTO @DATA(ld_value7).
DATA(ld_value7) = ' '.
 
"SELECT single FIELD FROM UST12 INTO @DATA(ld_field8).
DATA(ld_field8) = ' '.
 
"SELECT single VON FROM UST12 INTO @DATA(ld_value8).
DATA(ld_value8) = ' '.
 
"SELECT single FIELD FROM UST12 INTO @DATA(ld_field9).
DATA(ld_field9) = ' '.
 
"SELECT single VON FROM UST12 INTO @DATA(ld_value9).
DATA(ld_value9) = ' '.
 
"SELECT single FIELD FROM UST12 INTO @DATA(ld_field1).
 
 
"SELECT single FIELD FROM UST12 INTO @DATA(ld_field10).
DATA(ld_field10) = ' '.
 
"SELECT single VON FROM UST12 INTO @DATA(ld_value10).
DATA(ld_value10) = ' '.
 
"SELECT single VON FROM UST12 INTO @DATA(ld_value1).
DATA(ld_value1) = ' '.
 
 
"SELECT single FIELD FROM UST12 INTO @DATA(ld_field2).
DATA(ld_field2) = ' '.
 
 
"SELECT single VON FROM UST12 INTO @DATA(ld_value2).
DATA(ld_value2) = ' '.
 
"SELECT single FIELD FROM UST12 INTO @DATA(ld_field3).
DATA(ld_field3) = ' '.
 
"SELECT single VON FROM UST12 INTO @DATA(ld_value3).
DATA(ld_value3) = ' '.
 
"SELECT single FIELD FROM UST12 INTO @DATA(ld_field4).
DATA(ld_field4) = ' '.
 
"SELECT single VON FROM UST12 INTO @DATA(ld_value4).
DATA(ld_value4) = ' '.
 


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!