SAP RK_CHECK_DELETE_CONDITIONS_FI Function Module for Check Financial Accounting-Dependent Transaction Data in CO
RK_CHECK_DELETE_CONDITIONS_FI is a standard rk check delete conditions fi SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check Financial Accounting-Dependent Transaction Data in CO 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 rk check delete conditions fi FM, simply by entering the name RK_CHECK_DELETE_CONDITIONS_FI into the relevant SAP transaction such as SE37 or SE38.
Function Group: COZT
Program Name: SAPLCOZT
Main Program: SAPLCOZT
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RK_CHECK_DELETE_CONDITIONS_FI 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 'RK_CHECK_DELETE_CONDITIONS_FI'"Check Financial Accounting-Dependent Transaction Data in CO.
EXPORTING
* BUKRS = ' ' "Company Code Where FI Data is Marked for Deletion
IMPORTING
KOKRS_ACT = "Current CO Area Assigned to CCode
TABLES
XCOBK = "CO document headers
EXCEPTIONS
FOREIGN_BUKRS_DATAS_IN_KOKRS = 1 NOT_ALL_CO_DATAS_DELETE = 2 NOT_ASSIGNMENT_BUT_DATAS = 3 NO_CO_DATAS_EXIST_C = 4 NO_CO_DATAS_EXIST_F = 5 NO_FI_DATAS_IN_CO = 6 PRODUCTIVE_BUKRS_IN_KOKRS = 7
IMPORTING Parameters details for RK_CHECK_DELETE_CONDITIONS_FI
BUKRS - Company Code Where FI Data is Marked for Deletion
Data type: T001-BUKRSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RK_CHECK_DELETE_CONDITIONS_FI
KOKRS_ACT - Current CO Area Assigned to CCode
Data type: TKA02-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RK_CHECK_DELETE_CONDITIONS_FI
XCOBK - CO document headers
Data type: COBKOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FOREIGN_BUKRS_DATAS_IN_KOKRS - Data from Unassigned Productive CCode in CO area
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_ALL_CO_DATAS_DELETE - Not All CO Data for CCode is Deleted
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_ASSIGNMENT_BUT_DATAS - No CCode-CO Area Assignment, but CO Data Exists
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_CO_DATAS_EXIST_C - No CO Data in Assigned CO Area
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_CO_DATAS_EXIST_F - No CO Data in Assigned CO Area, But in External
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_FI_DATAS_IN_CO -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PRODUCTIVE_BUKRS_IN_KOKRS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RK_CHECK_DELETE_CONDITIONS_FI 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_bukrs | TYPE T001-BUKRS, " SPACE | |||
| lt_xcobk | TYPE STANDARD TABLE OF COBK, " | |||
| lv_kokrs_act | TYPE TKA02-KOKRS, " | |||
| lv_foreign_bukrs_datas_in_kokrs | TYPE TKA02, " | |||
| lv_not_all_co_datas_delete | TYPE TKA02, " | |||
| lv_not_assignment_but_datas | TYPE TKA02, " | |||
| lv_no_co_datas_exist_c | TYPE TKA02, " | |||
| lv_no_co_datas_exist_f | TYPE TKA02, " | |||
| lv_no_fi_datas_in_co | TYPE TKA02, " | |||
| lv_productive_bukrs_in_kokrs | TYPE TKA02. " |
|   CALL FUNCTION 'RK_CHECK_DELETE_CONDITIONS_FI' "Check Financial Accounting-Dependent Transaction Data in CO |
| EXPORTING | ||
| BUKRS | = lv_bukrs | |
| IMPORTING | ||
| KOKRS_ACT | = lv_kokrs_act | |
| TABLES | ||
| XCOBK | = lt_xcobk | |
| EXCEPTIONS | ||
| FOREIGN_BUKRS_DATAS_IN_KOKRS = 1 | ||
| NOT_ALL_CO_DATAS_DELETE = 2 | ||
| NOT_ASSIGNMENT_BUT_DATAS = 3 | ||
| NO_CO_DATAS_EXIST_C = 4 | ||
| NO_CO_DATAS_EXIST_F = 5 | ||
| NO_FI_DATAS_IN_CO = 6 | ||
| PRODUCTIVE_BUKRS_IN_KOKRS = 7 | ||
| . " RK_CHECK_DELETE_CONDITIONS_FI | ||
ABAP code using 7.40 inline data declarations to call FM RK_CHECK_DELETE_CONDITIONS_FI
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 BUKRS FROM T001 INTO @DATA(ld_bukrs). | ||||
| DATA(ld_bukrs) | = ' '. | |||
| "SELECT single KOKRS FROM TKA02 INTO @DATA(ld_kokrs_act). | ||||
Search for further information about these or an SAP related objects