SAP RKE_CALCULATE_EXITS Function Module for
RKE_CALCULATE_EXITS is a standard rke calculate exits 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 rke calculate exits FM, simply by entering the name RKE_CALCULATE_EXITS into the relevant SAP transaction such as SE37 or SE38.
Function Group: KEP5
Program Name: SAPLKEP5
Main Program:
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RKE_CALCULATE_EXITS 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 'RKE_CALCULATE_EXITS'".
EXPORTING
I_ERKRS = "
I_PA_TYPE = "
I_EXITNR = "
* I_EXITM = ' ' "
* IS_PLANNING_EXIT = "
* IT_SELTAB = "
* IT_SELECTED_FIELDS = "
IMPORTING
ET_MESSAGE = "
CHANGING
XT_CE0 = "
IMPORTING Parameters details for RKE_CALCULATE_EXITS
I_ERKRS -
Data type: TKEB-ERKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_PA_TYPE -
Data type: CEPL4-PA_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_EXITNR -
Data type: CEPL4A-EXITNROptional: No
Call by Reference: No ( called with pass by value option)
I_EXITM -
Data type: CEPL10-EXITMDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_PLANNING_EXIT -
Data type: RKE_PLANNING_EXITOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_SELTAB -
Data type: KEPP_YT_SELTABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_SELECTED_FIELDS -
Data type: KEPP_YT_SELECTED_FIELDSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RKE_CALCULATE_EXITS
ET_MESSAGE -
Data type: KEPP_T_MESSAGEOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for RKE_CALCULATE_EXITS
XT_CE0 -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RKE_CALCULATE_EXITS 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_xt_ce0 | TYPE STRING, " | |||
| lv_i_erkrs | TYPE TKEB-ERKRS, " | |||
| lv_et_message | TYPE KEPP_T_MESSAGE, " | |||
| lv_i_pa_type | TYPE CEPL4-PA_TYPE, " | |||
| lv_i_exitnr | TYPE CEPL4A-EXITNR, " | |||
| lv_i_exitm | TYPE CEPL10-EXITM, " ' ' | |||
| lv_is_planning_exit | TYPE RKE_PLANNING_EXIT, " | |||
| lv_it_seltab | TYPE KEPP_YT_SELTAB, " | |||
| lv_it_selected_fields | TYPE KEPP_YT_SELECTED_FIELDS. " |
|   CALL FUNCTION 'RKE_CALCULATE_EXITS' " |
| EXPORTING | ||
| I_ERKRS | = lv_i_erkrs | |
| I_PA_TYPE | = lv_i_pa_type | |
| I_EXITNR | = lv_i_exitnr | |
| I_EXITM | = lv_i_exitm | |
| IS_PLANNING_EXIT | = lv_is_planning_exit | |
| IT_SELTAB | = lv_it_seltab | |
| IT_SELECTED_FIELDS | = lv_it_selected_fields | |
| IMPORTING | ||
| ET_MESSAGE | = lv_et_message | |
| CHANGING | ||
| XT_CE0 | = lv_xt_ce0 | |
| . " RKE_CALCULATE_EXITS | ||
ABAP code using 7.40 inline data declarations to call FM RKE_CALCULATE_EXITS
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 ERKRS FROM TKEB INTO @DATA(ld_i_erkrs). | ||||
| "SELECT single PA_TYPE FROM CEPL4 INTO @DATA(ld_i_pa_type). | ||||
| "SELECT single EXITNR FROM CEPL4A INTO @DATA(ld_i_exitnr). | ||||
| "SELECT single EXITM FROM CEPL10 INTO @DATA(ld_i_exitm). | ||||
| DATA(ld_i_exitm) | = ' '. | |||
Search for further information about these or an SAP related objects