SAP SUSR_INTERFACE_PROF Function Module for
SUSR_INTERFACE_PROF is a standard susr interface prof 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 susr interface prof FM, simply by entering the name SUSR_INTERFACE_PROF into the relevant SAP transaction such as SE37 or SE38.
Function Group: SUSB
Program Name: SAPLSUSB
Main Program: SAPLSUSB
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SUSR_INTERFACE_PROF 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 'SUSR_INTERFACE_PROF'".
EXPORTING
* PROFILE = "Profile name
* PTEXT = "Short text for profile
* PTYPE = 'G' "
* ACTION = '03' "01=create, 02=change, 03=display, 06=delete
* NO_CHECK_IN_CREATE_MODE = ' ' "
* NO_CHECK_IN_UPDATE_MODE = ' ' "
* DIALOG = ' ' "
IMPORTING
PSTATE = "Profile status: A=active, P=update version
TABLES
VALUES = "Objects, authorizations and values
AUTHS = "Short texts for authorizations
PROF_IN = "Profiles to be changed (for action 02 only)
PROF_OUT = "Profiles (action 01, 02; action 03 composite profile)
* AUTH_OUT = "List of authorizations created
EXCEPTIONS
NOT_AUTHORIZED_FOR_AUTH = 1 AUTHORIZATION_OVERFLOW = 10 SHORTTEXT_MISSING = 11 PARAMS_INCOMPLETE = 2 NOT_AUTHORIZED_FOR_PROFILE = 3 PROFILE_EXISTS = 4 AUTH_EXISTS = 5 COLECTIVE_PROFILE = 6 BAD_PROFILE_NAME = 7 BAD_AUTH_NAME = 8 PROFILE_DONT_EXIST = 9
IMPORTING Parameters details for SUSR_INTERFACE_PROF
PROFILE - Profile name
Data type: USR10-PROFNOptional: Yes
Call by Reference: No ( called with pass by value option)
PTEXT - Short text for profile
Data type: USR11-PTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
PTYPE -
Data type: USR10-TYPDefault: 'G'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACTION - 01=create, 02=change, 03=display, 06=delete
Data type:Default: '03'
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_CHECK_IN_CREATE_MODE -
Data type: SMENSAPNEW-CUSTOMIZEDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_CHECK_IN_UPDATE_MODE -
Data type: SMENSAPNEW-CUSTOMIZEDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DIALOG -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SUSR_INTERFACE_PROF
PSTATE - Profile status: A=active, P=update version
Data type: USR10-AKTPSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SUSR_INTERFACE_PROF
VALUES - Objects, authorizations and values
Data type: USVALOptional: No
Call by Reference: No ( called with pass by value option)
AUTHS - Short texts for authorizations
Data type: USAUTOptional: No
Call by Reference: No ( called with pass by value option)
PROF_IN - Profiles to be changed (for action 02 only)
Data type: USPROOptional: No
Call by Reference: No ( called with pass by value option)
PROF_OUT - Profiles (action 01, 02; action 03 composite profile)
Data type: USPROOptional: No
Call by Reference: No ( called with pass by value option)
AUTH_OUT - List of authorizations created
Data type: USAUTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_AUTHORIZED_FOR_AUTH - No authorization for action on authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AUTHORIZATION_OVERFLOW - Authorization overflow with more than one field
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SHORTTEXT_MISSING - Missing short text for profile or authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMS_INCOMPLETE - Incomplete parameters
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_AUTHORIZED_FOR_PROFILE - No authorization for action on profile
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROFILE_EXISTS - Profile already exists (for create)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AUTH_EXISTS - Authorization already exists (for create)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COLECTIVE_PROFILE - Composite profile (data is not delivered)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BAD_PROFILE_NAME - Profile name not allowed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BAD_AUTH_NAME - Authorization name not allowed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROFILE_DONT_EXIST - Profile does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SUSR_INTERFACE_PROF 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_pstate | TYPE USR10-AKTPS, " | |||
| lt_values | TYPE STANDARD TABLE OF USVAL, " | |||
| lv_profile | TYPE USR10-PROFN, " | |||
| lv_not_authorized_for_auth | TYPE USR10, " | |||
| lv_authorization_overflow | TYPE USR10, " | |||
| lv_shorttext_missing | TYPE USR10, " | |||
| lt_auths | TYPE STANDARD TABLE OF USAUT, " | |||
| lv_ptext | TYPE USR11-PTEXT, " | |||
| lv_params_incomplete | TYPE USR11, " | |||
| lv_ptype | TYPE USR10-TYP, " 'G' | |||
| lt_prof_in | TYPE STANDARD TABLE OF USPRO, " | |||
| lv_not_authorized_for_profile | TYPE USPRO, " | |||
| lv_action | TYPE USPRO, " '03' | |||
| lt_prof_out | TYPE STANDARD TABLE OF USPRO, " | |||
| lv_profile_exists | TYPE USPRO, " | |||
| lt_auth_out | TYPE STANDARD TABLE OF USAUT, " | |||
| lv_auth_exists | TYPE USAUT, " | |||
| lv_no_check_in_create_mode | TYPE SMENSAPNEW-CUSTOMIZED, " SPACE | |||
| lv_colective_profile | TYPE SMENSAPNEW, " | |||
| lv_no_check_in_update_mode | TYPE SMENSAPNEW-CUSTOMIZED, " SPACE | |||
| lv_dialog | TYPE C, " SPACE | |||
| lv_bad_profile_name | TYPE C, " | |||
| lv_bad_auth_name | TYPE C, " | |||
| lv_profile_dont_exist | TYPE C. " |
|   CALL FUNCTION 'SUSR_INTERFACE_PROF' " |
| EXPORTING | ||
| PROFILE | = lv_profile | |
| PTEXT | = lv_ptext | |
| PTYPE | = lv_ptype | |
| ACTION | = lv_action | |
| NO_CHECK_IN_CREATE_MODE | = lv_no_check_in_create_mode | |
| NO_CHECK_IN_UPDATE_MODE | = lv_no_check_in_update_mode | |
| DIALOG | = lv_dialog | |
| IMPORTING | ||
| PSTATE | = lv_pstate | |
| TABLES | ||
| VALUES | = lt_values | |
| AUTHS | = lt_auths | |
| PROF_IN | = lt_prof_in | |
| PROF_OUT | = lt_prof_out | |
| AUTH_OUT | = lt_auth_out | |
| EXCEPTIONS | ||
| NOT_AUTHORIZED_FOR_AUTH = 1 | ||
| AUTHORIZATION_OVERFLOW = 10 | ||
| SHORTTEXT_MISSING = 11 | ||
| PARAMS_INCOMPLETE = 2 | ||
| NOT_AUTHORIZED_FOR_PROFILE = 3 | ||
| PROFILE_EXISTS = 4 | ||
| AUTH_EXISTS = 5 | ||
| COLECTIVE_PROFILE = 6 | ||
| BAD_PROFILE_NAME = 7 | ||
| BAD_AUTH_NAME = 8 | ||
| PROFILE_DONT_EXIST = 9 | ||
| . " SUSR_INTERFACE_PROF | ||
ABAP code using 7.40 inline data declarations to call FM SUSR_INTERFACE_PROF
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 AKTPS FROM USR10 INTO @DATA(ld_pstate). | ||||
| "SELECT single PROFN FROM USR10 INTO @DATA(ld_profile). | ||||
| "SELECT single PTEXT FROM USR11 INTO @DATA(ld_ptext). | ||||
| "SELECT single TYP FROM USR10 INTO @DATA(ld_ptype). | ||||
| DATA(ld_ptype) | = 'G'. | |||
| DATA(ld_action) | = '03'. | |||
| "SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_no_check_in_create_mode). | ||||
| DATA(ld_no_check_in_create_mode) | = ' '. | |||
| "SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_no_check_in_update_mode). | ||||
| DATA(ld_no_check_in_update_mode) | = ' '. | |||
| DATA(ld_dialog) | = ' '. | |||
Search for further information about these or an SAP related objects