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

Function SUPRN_PROFILE_GENERATOR 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 'SUPRN_PROFILE_GENERATOR'".
EXPORTING
ACT_OBJID = "Object ID (job)
* LTEXT = "Long text for job
* MAINTAIN = "Controls behavior (long text)
* EXPERT_MODE = "
* CLEAR_REFRESH_ALL = "
* SUPRN_PROFILE_NAME = "
* SUPRN_PROFILE_TEXT = "
* AUTHORITY_CHECKS = 'X' "
IMPORTING
RESULT = "' ' nothing, S = saved, G = generated
TABLES
* ACTIVITY_LIST = "
EXCEPTIONS
DIALOG_CANCELLED = 1 OBJID_NOT_FOUND = 2 NO_AUTHORITY = 3
IMPORTING Parameters details for SUPRN_PROFILE_GENERATOR
ACT_OBJID - Object ID (job)
Data type: AGR_NAMEOptional: No
Call by Reference: Yes
LTEXT - Long text for job
Data type: AGR_TITLEOptional: Yes
Call by Reference: No ( called with pass by value option)
MAINTAIN - Controls behavior (long text)
Data type: CHAR01Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPERT_MODE -
Data type: CHAR01Optional: Yes
Call by Reference: Yes
CLEAR_REFRESH_ALL -
Data type: CHAR01Optional: Yes
Call by Reference: Yes
SUPRN_PROFILE_NAME -
Data type: XUPROFILEOptional: Yes
Call by Reference: No ( called with pass by value option)
SUPRN_PROFILE_TEXT -
Data type: XUTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
AUTHORITY_CHECKS -
Data type: CHAR01Default: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SUPRN_PROFILE_GENERATOR
RESULT - ' ' nothing, S = saved, G = generated
Data type: CHAR01Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SUPRN_PROFILE_GENERATOR
ACTIVITY_LIST -
Data type: AGR_STRUCOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DIALOG_CANCELLED - 'Cancel' was pressed at some point
Data type:Optional: No
Call by Reference: Yes
OBJID_NOT_FOUND - Object not available
Data type:Optional: No
Call by Reference: Yes
NO_AUTHORITY - No authorization for infotype 1016
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SUPRN_PROFILE_GENERATOR 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_result | TYPE CHAR01, " | |||
| lv_act_objid | TYPE AGR_NAME, " | |||
| lt_activity_list | TYPE STANDARD TABLE OF AGR_STRUC, " | |||
| lv_dialog_cancelled | TYPE AGR_STRUC, " | |||
| lv_ltext | TYPE AGR_TITLE, " | |||
| lv_objid_not_found | TYPE AGR_TITLE, " | |||
| lv_maintain | TYPE CHAR01, " | |||
| lv_no_authority | TYPE CHAR01, " | |||
| lv_expert_mode | TYPE CHAR01, " | |||
| lv_clear_refresh_all | TYPE CHAR01, " | |||
| lv_suprn_profile_name | TYPE XUPROFILE, " | |||
| lv_suprn_profile_text | TYPE XUTEXT, " | |||
| lv_authority_checks | TYPE CHAR01. " 'X' |
|   CALL FUNCTION 'SUPRN_PROFILE_GENERATOR' " |
| EXPORTING | ||
| ACT_OBJID | = lv_act_objid | |
| LTEXT | = lv_ltext | |
| MAINTAIN | = lv_maintain | |
| EXPERT_MODE | = lv_expert_mode | |
| CLEAR_REFRESH_ALL | = lv_clear_refresh_all | |
| SUPRN_PROFILE_NAME | = lv_suprn_profile_name | |
| SUPRN_PROFILE_TEXT | = lv_suprn_profile_text | |
| AUTHORITY_CHECKS | = lv_authority_checks | |
| IMPORTING | ||
| RESULT | = lv_result | |
| TABLES | ||
| ACTIVITY_LIST | = lt_activity_list | |
| EXCEPTIONS | ||
| DIALOG_CANCELLED = 1 | ||
| OBJID_NOT_FOUND = 2 | ||
| NO_AUTHORITY = 3 | ||
| . " SUPRN_PROFILE_GENERATOR | ||
ABAP code using 7.40 inline data declarations to call FM SUPRN_PROFILE_GENERATOR
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_authority_checks) | = 'X'. | |||
Search for further information about these or an SAP related objects