SAP SUPRN_PROFILE_BATCH Function Module for
SUPRN_PROFILE_BATCH is a standard suprn profile batch 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 batch FM, simply by entering the name SUPRN_PROFILE_BATCH 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:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function SUPRN_PROFILE_BATCH 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_BATCH'".
EXPORTING
ACT_OBJID = "Object ID (job)
* LTEXT = "Long text for job
* ENQUEUE = ' ' "Customized ('C') or standard menu ('S') flag
EXCEPTIONS
OBJID_NOT_FOUND = 1 NO_AUTHORIZATION = 2 GENERATION_NOT_ACTIVE = 3 EMPTY_AUTHORIZATIONS = 4 ENQUEUE_FAILED = 5 NOT_GENERATED = 6 VALUE_OVERFLOW = 7
IMPORTING Parameters details for SUPRN_PROFILE_BATCH
ACT_OBJID - Object ID (job)
Data type: AGR_DEFINE-AGR_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
LTEXT - Long text for job
Data type: AGR_TEXTS-TEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
ENQUEUE - Customized ('C') or standard menu ('S') flag
Data type: SMENSAPNEW-CUSTOMIZEDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
OBJID_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORIZATION - No authorization for infotype 1016
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GENERATION_NOT_ACTIVE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EMPTY_AUTHORIZATIONS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENQUEUE_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_GENERATED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VALUE_OVERFLOW -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SUPRN_PROFILE_BATCH 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_act_objid | TYPE AGR_DEFINE-AGR_NAME, " | |||
lv_objid_not_found | TYPE AGR_DEFINE, " | |||
lv_ltext | TYPE AGR_TEXTS-TEXT, " | |||
lv_no_authorization | TYPE AGR_TEXTS, " | |||
lv_enqueue | TYPE SMENSAPNEW-CUSTOMIZED, " SPACE | |||
lv_generation_not_active | TYPE SMENSAPNEW, " | |||
lv_empty_authorizations | TYPE SMENSAPNEW, " | |||
lv_enqueue_failed | TYPE SMENSAPNEW, " | |||
lv_not_generated | TYPE SMENSAPNEW, " | |||
lv_value_overflow | TYPE SMENSAPNEW. " |
  CALL FUNCTION 'SUPRN_PROFILE_BATCH' " |
EXPORTING | ||
ACT_OBJID | = lv_act_objid | |
LTEXT | = lv_ltext | |
ENQUEUE | = lv_enqueue | |
EXCEPTIONS | ||
OBJID_NOT_FOUND = 1 | ||
NO_AUTHORIZATION = 2 | ||
GENERATION_NOT_ACTIVE = 3 | ||
EMPTY_AUTHORIZATIONS = 4 | ||
ENQUEUE_FAILED = 5 | ||
NOT_GENERATED = 6 | ||
VALUE_OVERFLOW = 7 | ||
. " SUPRN_PROFILE_BATCH |
ABAP code using 7.40 inline data declarations to call FM SUPRN_PROFILE_BATCH
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 AGR_NAME FROM AGR_DEFINE INTO @DATA(ld_act_objid). | ||||
"SELECT single TEXT FROM AGR_TEXTS INTO @DATA(ld_ltext). | ||||
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_enqueue). | ||||
DATA(ld_enqueue) | = ' '. | |||
Search for further information about these or an SAP related objects