SAP RSBATCH_START_PROCESS_INTERNAL Function Module for distribute and start batch jobs
RSBATCH_START_PROCESS_INTERNAL is a standard rsbatch start process internal SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for distribute and start batch jobs processing and below is the pattern details for this FM, 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 rsbatch start process internal FM, simply by entering the name RSBATCH_START_PROCESS_INTERNAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSBATCH
Program Name: SAPLRSBATCH
Main Program: SAPLRSBATCH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSBATCH_START_PROCESS_INTERNAL 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 'RSBATCH_START_PROCESS_INTERNAL'"distribute and start batch jobs.
EXPORTING
I_BATCH_ID = "Batch ID
* I_LANGUAGE = SY-LANGU "SAP R/3 System, Current Language
I_BATCH_PROCESS = "Character Field Length = 10
I_T_CTRL = "
I_T_BATCHSERVER = "
* I_PARALLEL_PROCS = 3 "Natural Number
* I_BATCH_CLASS = 'C' "Single-Character Indicator
* I_START_ALL_AT_ONCE = ' ' "Single-Character Indicator
* I_UNAME = SY-UNAME "ABAP System, User Logon Name
* I_HOLD_PAR_PROCS = ' ' "Single-Character Indicator
IMPORTING
E_S_CTRL = "BW Batch Management - Control Table
EXCEPTIONS
NO_FREE_WP = 1 ERROR_STARTING_BATCHJOB = 2
IMPORTING Parameters details for RSBATCH_START_PROCESS_INTERNAL
I_BATCH_ID - Batch ID
Data type: RSBTC_BATCH_IDOptional: No
Call by Reference: Yes
I_LANGUAGE - SAP R/3 System, Current Language
Data type: SYLANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: Yes
I_BATCH_PROCESS - Character Field Length = 10
Data type: INT4Optional: No
Call by Reference: Yes
I_T_CTRL -
Data type: RSBTC_T_CTRLOptional: No
Call by Reference: Yes
I_T_BATCHSERVER -
Data type: RSBTC_T_SERVEROptional: No
Call by Reference: Yes
I_PARALLEL_PROCS - Natural Number
Data type: INT4Default: 3
Optional: Yes
Call by Reference: Yes
I_BATCH_CLASS - Single-Character Indicator
Data type: CHAR1Default: 'C'
Optional: Yes
Call by Reference: Yes
I_START_ALL_AT_ONCE - Single-Character Indicator
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
I_UNAME - ABAP System, User Logon Name
Data type: SYUNAMEDefault: SY-UNAME
Optional: Yes
Call by Reference: Yes
I_HOLD_PAR_PROCS - Single-Character Indicator
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RSBATCH_START_PROCESS_INTERNAL
E_S_CTRL - BW Batch Management - Control Table
Data type: RSBATCHCTRLOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_FREE_WP -
Data type:Optional: No
Call by Reference: Yes
ERROR_STARTING_BATCHJOB -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSBATCH_START_PROCESS_INTERNAL 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_e_s_ctrl | TYPE RSBATCHCTRL, " | |||
| lv_i_batch_id | TYPE RSBTC_BATCH_ID, " | |||
| lv_no_free_wp | TYPE RSBTC_BATCH_ID, " | |||
| lv_i_language | TYPE SYLANGU, " SY-LANGU | |||
| lv_i_batch_process | TYPE INT4, " | |||
| lv_error_starting_batchjob | TYPE INT4, " | |||
| lv_i_t_ctrl | TYPE RSBTC_T_CTRL, " | |||
| lv_i_t_batchserver | TYPE RSBTC_T_SERVER, " | |||
| lv_i_parallel_procs | TYPE INT4, " 3 | |||
| lv_i_batch_class | TYPE CHAR1, " 'C' | |||
| lv_i_start_all_at_once | TYPE CHAR1, " SPACE | |||
| lv_i_uname | TYPE SYUNAME, " SY-UNAME | |||
| lv_i_hold_par_procs | TYPE CHAR1. " SPACE |
|   CALL FUNCTION 'RSBATCH_START_PROCESS_INTERNAL' "distribute and start batch jobs |
| EXPORTING | ||
| I_BATCH_ID | = lv_i_batch_id | |
| I_LANGUAGE | = lv_i_language | |
| I_BATCH_PROCESS | = lv_i_batch_process | |
| I_T_CTRL | = lv_i_t_ctrl | |
| I_T_BATCHSERVER | = lv_i_t_batchserver | |
| I_PARALLEL_PROCS | = lv_i_parallel_procs | |
| I_BATCH_CLASS | = lv_i_batch_class | |
| I_START_ALL_AT_ONCE | = lv_i_start_all_at_once | |
| I_UNAME | = lv_i_uname | |
| I_HOLD_PAR_PROCS | = lv_i_hold_par_procs | |
| IMPORTING | ||
| E_S_CTRL | = lv_e_s_ctrl | |
| EXCEPTIONS | ||
| NO_FREE_WP = 1 | ||
| ERROR_STARTING_BATCHJOB = 2 | ||
| . " RSBATCH_START_PROCESS_INTERNAL | ||
ABAP code using 7.40 inline data declarations to call FM RSBATCH_START_PROCESS_INTERNAL
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_i_language) | = SY-LANGU. | |||
| DATA(ld_i_parallel_procs) | = 3. | |||
| DATA(ld_i_batch_class) | = 'C'. | |||
| DATA(ld_i_start_all_at_once) | = ' '. | |||
| DATA(ld_i_uname) | = SY-UNAME. | |||
| DATA(ld_i_hold_par_procs) | = ' '. | |||
Search for further information about these or an SAP related objects