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

Function RKE_PREPARE_COMMITMENT 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_PREPARE_COMMITMENT'".
EXPORTING
I_KNUMH = "
I_DATBI = "
* I_KOPOS = '01' "
IS_CRITERIA_KOMK = "
IS_CRITERIA_KOMP = "
I_COKEY = "
I_CUKEY = "
I_VALUE = "
IMPORTING
E_PAOBJNR = "
TABLES
ITH_TIME_TABLE = "
EXCEPTIONS
OPERATING_CONCERN_ERROR = 1 IMPORT_TABLE_ERROR = 10 INCONSISTENCY_CUSTOMIZING = 11 OVERFLOW = 12 NO_ASSIGNED_VALUE_FIELD = 13 DATABASE_ERROR = 2 DERIVATION_ERROR = 3 PAOBJNR_ERROR = 4 POSTING_ERROR = 5 CURRENCY_CONVERSION_ERROR = 6 SPACE_OF_TIME_ERROR = 7 DATE_TABLE_ERROR = 8 NO_PERIOD_FOR_VALUE = 9
IMPORTING Parameters details for RKE_PREPARE_COMMITMENT
I_KNUMH -
Data type: ACCIT-KNUMHOptional: No
Call by Reference: No ( called with pass by value option)
I_DATBI -
Data type: RKE_TVAL-DATABOptional: No
Call by Reference: No ( called with pass by value option)
I_KOPOS -
Data type: KONP-KOPOSDefault: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_CRITERIA_KOMK -
Data type: KOMKOptional: No
Call by Reference: No ( called with pass by value option)
IS_CRITERIA_KOMP -
Data type: KOMPOptional: No
Call by Reference: No ( called with pass by value option)
I_COKEY -
Data type: T258I-KSCHLOptional: No
Call by Reference: No ( called with pass by value option)
I_CUKEY -
Data type: TKEBL-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_VALUE -
Data type: CEPFV-NEWVALUEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RKE_PREPARE_COMMITMENT
E_PAOBJNR -
Data type: ACCIT-PAOBJNROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RKE_PREPARE_COMMITMENT
ITH_TIME_TABLE -
Data type: RKE_FRTOOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
OPERATING_CONCERN_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IMPORT_TABLE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INCONSISTENCY_CUSTOMIZING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OVERFLOW -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ASSIGNED_VALUE_FIELD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATABASE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DERIVATION_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PAOBJNR_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
POSTING_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CURRENCY_CONVERSION_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SPACE_OF_TIME_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATE_TABLE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PERIOD_FOR_VALUE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RKE_PREPARE_COMMITMENT 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_i_knumh | TYPE ACCIT-KNUMH, " | |||
| lv_e_paobjnr | TYPE ACCIT-PAOBJNR, " | |||
| lt_ith_time_table | TYPE STANDARD TABLE OF RKE_FRTO, " | |||
| lv_operating_concern_error | TYPE RKE_FRTO, " | |||
| lv_import_table_error | TYPE RKE_FRTO, " | |||
| lv_inconsistency_customizing | TYPE RKE_FRTO, " | |||
| lv_overflow | TYPE RKE_FRTO, " | |||
| lv_no_assigned_value_field | TYPE RKE_FRTO, " | |||
| lv_i_datbi | TYPE RKE_TVAL-DATAB, " | |||
| lv_database_error | TYPE RKE_TVAL, " | |||
| lv_i_kopos | TYPE KONP-KOPOS, " '01' | |||
| lv_derivation_error | TYPE KONP, " | |||
| lv_paobjnr_error | TYPE KONP, " | |||
| lv_is_criteria_komk | TYPE KOMK, " | |||
| lv_posting_error | TYPE KOMK, " | |||
| lv_is_criteria_komp | TYPE KOMP, " | |||
| lv_i_cokey | TYPE T258I-KSCHL, " | |||
| lv_currency_conversion_error | TYPE T258I, " | |||
| lv_i_cukey | TYPE TKEBL-WAERS, " | |||
| lv_space_of_time_error | TYPE TKEBL, " | |||
| lv_i_value | TYPE CEPFV-NEWVALUE, " | |||
| lv_date_table_error | TYPE CEPFV, " | |||
| lv_no_period_for_value | TYPE CEPFV. " |
|   CALL FUNCTION 'RKE_PREPARE_COMMITMENT' " |
| EXPORTING | ||
| I_KNUMH | = lv_i_knumh | |
| I_DATBI | = lv_i_datbi | |
| I_KOPOS | = lv_i_kopos | |
| IS_CRITERIA_KOMK | = lv_is_criteria_komk | |
| IS_CRITERIA_KOMP | = lv_is_criteria_komp | |
| I_COKEY | = lv_i_cokey | |
| I_CUKEY | = lv_i_cukey | |
| I_VALUE | = lv_i_value | |
| IMPORTING | ||
| E_PAOBJNR | = lv_e_paobjnr | |
| TABLES | ||
| ITH_TIME_TABLE | = lt_ith_time_table | |
| EXCEPTIONS | ||
| OPERATING_CONCERN_ERROR = 1 | ||
| IMPORT_TABLE_ERROR = 10 | ||
| INCONSISTENCY_CUSTOMIZING = 11 | ||
| OVERFLOW = 12 | ||
| NO_ASSIGNED_VALUE_FIELD = 13 | ||
| DATABASE_ERROR = 2 | ||
| DERIVATION_ERROR = 3 | ||
| PAOBJNR_ERROR = 4 | ||
| POSTING_ERROR = 5 | ||
| CURRENCY_CONVERSION_ERROR = 6 | ||
| SPACE_OF_TIME_ERROR = 7 | ||
| DATE_TABLE_ERROR = 8 | ||
| NO_PERIOD_FOR_VALUE = 9 | ||
| . " RKE_PREPARE_COMMITMENT | ||
ABAP code using 7.40 inline data declarations to call FM RKE_PREPARE_COMMITMENT
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 KNUMH FROM ACCIT INTO @DATA(ld_i_knumh). | ||||
| "SELECT single PAOBJNR FROM ACCIT INTO @DATA(ld_e_paobjnr). | ||||
| "SELECT single DATAB FROM RKE_TVAL INTO @DATA(ld_i_datbi). | ||||
| "SELECT single KOPOS FROM KONP INTO @DATA(ld_i_kopos). | ||||
| DATA(ld_i_kopos) | = '01'. | |||
| "SELECT single KSCHL FROM T258I INTO @DATA(ld_i_cokey). | ||||
| "SELECT single WAERS FROM TKEBL INTO @DATA(ld_i_cukey). | ||||
| "SELECT single NEWVALUE FROM CEPFV INTO @DATA(ld_i_value). | ||||
Search for further information about these or an SAP related objects