SAP PRGN_CATT_CREATE_AUTHORIZATION Function Module for
PRGN_CATT_CREATE_AUTHORIZATION is a standard prgn catt create authorization 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 prgn catt create authorization FM, simply by entering the name PRGN_CATT_CREATE_AUTHORIZATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: PRGN_CATT
Program Name: SAPLPRGN_CATT
Main Program: SAPLPRGN_CATT
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PRGN_CATT_CREATE_AUTHORIZATION 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 'PRGN_CATT_CREATE_AUTHORIZATION'".
EXPORTING
* NO_DIALOG = 'X' "
* TEMPLATE = "
* FILL_UNMAINTAINED_FIELDS = 'X' "
CHANGING
* USER_NAME = ' ' "
* FROM_DATE = SY-DATUM "
* TO_DATE = '99991231' "
* PASSWORD = 'init' "
TABLES
* TCODES = "
EXCEPTIONS
ERROR_WHEN_CREATING_USER = 1 ZBV_IS_ACTIVE = 10 ERROR_WHEN_CREATING_ACTGROUP = 2 ERROR_WHEN_GENERATING_PROFILE = 3 ILLEGAL_TCODES = 4 NO_AUTH_DATA_SELECTED = 5 NOT_AUTHORIZED = 6 ACTION_CANCELLED = 7 PROBLEM_WITH_USER_COMPARE = 8 PROFGEN_TABLES_NOT_UPDATED = 9
IMPORTING Parameters details for PRGN_CATT_CREATE_AUTHORIZATION
NO_DIALOG -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEMPLATE -
Data type: TPRVORT-PATTERNOptional: Yes
Call by Reference: No ( called with pass by value option)
FILL_UNMAINTAINED_FIELDS -
Data type: SMENSAPNEW-CUSTOMIZEDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for PRGN_CATT_CREATE_AUTHORIZATION
USER_NAME -
Data type: USR02-BNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FROM_DATE -
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
TO_DATE -
Data type: SY-DATUMDefault: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PASSWORD -
Data type: BAPIPWDDefault: 'init'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PRGN_CATT_CREATE_AUTHORIZATION
TCODES -
Data type: AGR_TCODESOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_WHEN_CREATING_USER - Error while creating user
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ZBV_IS_ACTIVE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_WHEN_CREATING_ACTGROUP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_WHEN_GENERATING_PROFILE -
Data type:Optional: No
Call by Reference: Yes
ILLEGAL_TCODES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTH_DATA_SELECTED -
Data type:Optional: No
Call by Reference: Yes
NOT_AUTHORIZED - No Authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ACTION_CANCELLED - Action canceled
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROBLEM_WITH_USER_COMPARE - Problem occurred adjusting user master records
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROFGEN_TABLES_NOT_UPDATED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PRGN_CATT_CREATE_AUTHORIZATION 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_tcodes | TYPE STANDARD TABLE OF AGR_TCODES, " | |||
| lv_no_dialog | TYPE AGR_TCODES, " 'X' | |||
| lv_user_name | TYPE USR02-BNAME, " SPACE | |||
| lv_error_when_creating_user | TYPE USR02, " | |||
| lv_zbv_is_active | TYPE USR02, " | |||
| lv_template | TYPE TPRVORT-PATTERN, " | |||
| lv_from_date | TYPE SY-DATUM, " SY-DATUM | |||
| lv_error_when_creating_actgroup | TYPE SY, " | |||
| lv_to_date | TYPE SY-DATUM, " '99991231' | |||
| lv_fill_unmaintained_fields | TYPE SMENSAPNEW-CUSTOMIZED, " 'X' | |||
| lv_error_when_generating_profile | TYPE SMENSAPNEW, " | |||
| lv_password | TYPE BAPIPWD, " 'init' | |||
| lv_illegal_tcodes | TYPE BAPIPWD, " | |||
| lv_no_auth_data_selected | TYPE BAPIPWD, " | |||
| lv_not_authorized | TYPE BAPIPWD, " | |||
| lv_action_cancelled | TYPE BAPIPWD, " | |||
| lv_problem_with_user_compare | TYPE BAPIPWD, " | |||
| lv_profgen_tables_not_updated | TYPE BAPIPWD. " |
|   CALL FUNCTION 'PRGN_CATT_CREATE_AUTHORIZATION' " |
| EXPORTING | ||
| NO_DIALOG | = lv_no_dialog | |
| TEMPLATE | = lv_template | |
| FILL_UNMAINTAINED_FIELDS | = lv_fill_unmaintained_fields | |
| CHANGING | ||
| USER_NAME | = lv_user_name | |
| FROM_DATE | = lv_from_date | |
| TO_DATE | = lv_to_date | |
| PASSWORD | = lv_password | |
| TABLES | ||
| TCODES | = lt_tcodes | |
| EXCEPTIONS | ||
| ERROR_WHEN_CREATING_USER = 1 | ||
| ZBV_IS_ACTIVE = 10 | ||
| ERROR_WHEN_CREATING_ACTGROUP = 2 | ||
| ERROR_WHEN_GENERATING_PROFILE = 3 | ||
| ILLEGAL_TCODES = 4 | ||
| NO_AUTH_DATA_SELECTED = 5 | ||
| NOT_AUTHORIZED = 6 | ||
| ACTION_CANCELLED = 7 | ||
| PROBLEM_WITH_USER_COMPARE = 8 | ||
| PROFGEN_TABLES_NOT_UPDATED = 9 | ||
| . " PRGN_CATT_CREATE_AUTHORIZATION | ||
ABAP code using 7.40 inline data declarations to call FM PRGN_CATT_CREATE_AUTHORIZATION
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.| DATA(ld_no_dialog) | = 'X'. | |||
| "SELECT single BNAME FROM USR02 INTO @DATA(ld_user_name). | ||||
| DATA(ld_user_name) | = ' '. | |||
| "SELECT single PATTERN FROM TPRVORT INTO @DATA(ld_template). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_from_date). | ||||
| DATA(ld_from_date) | = SY-DATUM. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_to_date). | ||||
| DATA(ld_to_date) | = '99991231'. | |||
| "SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_fill_unmaintained_fields). | ||||
| DATA(ld_fill_unmaintained_fields) | = 'X'. | |||
| DATA(ld_password) | = 'init'. | |||
Search for further information about these or an SAP related objects