RSEC_DELETE_AUTHORIZATION is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name RSEC_DELETE_AUTHORIZATION into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RSEC_SCREENS
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RSEC_DELETE_AUTHORIZATION' "BI AS: Deletion of an Authorization
EXPORTING
i_authorization = " xuauth Authorization Name in User Master Maintenance
* i_objvers = RS_C_OBJVERS-ACTIVE " rsobjvers Object Version
* i_infoobject = " rsiobjnm InfoObject
* i_authcheck = RS_C_TRUE " rs_bool Boolean
* CHANGING
* c_sessionid = " rsgeneral-uni_idc UUID in Character Format
EXCEPTIONS
AUTH_DELETED = 1 " Authorization has been fully deleted
WAS_EMPTY = 2 " Authorization was already empty
NO_AUTHORIZATION = 3 " Insufficient authorization for deletion
. " RSEC_DELETE_AUTHORIZATION
The ABAP code below is a full code listing to execute function module RSEC_DELETE_AUTHORIZATION including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_c_sessionid) = some text here
DATA(ld_i_authorization) = 'Check type of data required'.
DATA(ld_i_objvers) = 'Check type of data required'.
DATA(ld_i_infoobject) = 'Check type of data required'.
DATA(ld_i_authcheck) = 'Check type of data required'. . CALL FUNCTION 'RSEC_DELETE_AUTHORIZATION' EXPORTING i_authorization = ld_i_authorization * i_objvers = ld_i_objvers * i_infoobject = ld_i_infoobject * i_authcheck = ld_i_authcheck * CHANGING * c_sessionid = ld_c_sessionid EXCEPTIONS AUTH_DELETED = 1 WAS_EMPTY = 2 NO_AUTHORIZATION = 3 . " RSEC_DELETE_AUTHORIZATION
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_c_sessionid | TYPE RSGENERAL-UNI_IDC , |
| ld_i_authorization | TYPE XUAUTH , |
| ld_i_objvers | TYPE RSOBJVERS , |
| ld_i_infoobject | TYPE RSIOBJNM , |
| ld_i_authcheck | TYPE RS_BOOL . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RSEC_DELETE_AUTHORIZATION or its description.
RSEC_DELETE_AUTHORIZATION - BI AS: Deletion of an Authorization RSEC_DATE_CONVERT - Enhanced Date Conversion Exit RSEC_CREATE_AUTHORIZATION_API - Creates a New Analysis Authorization RSEC_CORRECT_MULT_INTERVALS - Corrects Intervals in Authorizations RSEC_CORRECT_INTERVAL - Corrects Authorization Intervals If Possible RSEC_COPY_AUTH - Copy Authorization