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

Function RKE_CHECK_ORG_ELEMENTS 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_CHECK_ORG_ELEMENTS'".
EXPORTING
* DATUM = '00000000' "
* VTWEG = ' ' "
* SPART = ' ' "
* WERKS = ' ' "Plant
* IT_CHECKED_FIELDS = "
* DATUM_BIS = '00000000' "
* ERKRS = ' ' "Operating concern
* BUKRS = ' ' "Company code
* GSBER = ' ' "Business area
* KOKRS = ' ' "Controlling area
* PRCTR = ' ' "Profit center
* PPRCTR = ' ' "
* VKORG = ' ' "Sales organization
EXCEPTIONS
ASSIGNMENT_NOT_ALLOWED = 1 VKORG_BUKRS_WRONG = 10 VKORG_ERKRS_WRONG = 11 VKORG_KOKRS_WRONG = 12 VKORG_NOT_EXIST = 13 WERK_BUKRS_WRONG = 14 WERK_ERKRS_WRONG = 15 WERK_KOKRS_WRONG = 16 PRCTR_NOT_FOUND = 17 BUKRS_ERKRS_WRONG = 2 BUKRS_KOKRS_WRONG = 3 KOKRS_ERKRS_WRONG = 4 NO_KOKRS_ASSIGNED = 5 NO_KOKRS_FOR_BUKRS = 6 PRCTR_ERKRS_WRONG = 7 PRCTR_KOKRS_WRONG = 8 PRCTR_NOT_VALID = 9
IMPORTING Parameters details for RKE_CHECK_ORG_ELEMENTS
DATUM -
Data type: CEPC-DATBIDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
VTWEG -
Data type: TVKWZ-VTWEGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SPART -
Data type: TVKOS-SPARTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WERKS - Plant
Data type: T001W-WERKSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_CHECKED_FIELDS -
Data type: RKEI1_YT_FIELDOptional: Yes
Call by Reference: No ( called with pass by value option)
DATUM_BIS -
Data type: CEPC-DATBIDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ERKRS - Operating concern
Data type: TKEB-ERKRSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BUKRS - Company code
Data type: T001-BUKRSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
GSBER - Business area
Data type: TGSB-GSBERDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KOKRS - Controlling area
Data type: TKA01-KOKRSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PRCTR - Profit center
Data type: CEPC-PRCTRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PPRCTR -
Data type: CEPC-PRCTRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
VKORG - Sales organization
Data type: TVKO-VKORGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ASSIGNMENT_NOT_ALLOWED - No COArea can be entered for the CoCde
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VKORG_BUKRS_WRONG - Sales org. not assigned to the CoCde
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VKORG_ERKRS_WRONG - Sales org. not assigned to the operating concern
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VKORG_KOKRS_WRONG - Sales org. not assigned to the COArea
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VKORG_NOT_EXIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WERK_BUKRS_WRONG - Plant not assigned to the CoCde
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WERK_ERKRS_WRONG - Plant not assigned to the operating concern
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WERK_KOKRS_WRONG - Plant not assigned to the COArea
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PRCTR_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BUKRS_ERKRS_WRONG - CoCde not assigned to the operating concern
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BUKRS_KOKRS_WRONG - CoCde not assigned to the COArea
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KOKRS_ERKRS_WRONG - COArea not assigned to the operating concern
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_KOKRS_ASSIGNED - No type of COArea determination specified
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_KOKRS_FOR_BUKRS - No COArea assigned to CoCde
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PRCTR_ERKRS_WRONG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PRCTR_KOKRS_WRONG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PRCTR_NOT_VALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RKE_CHECK_ORG_ELEMENTS 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_datum | TYPE CEPC-DATBI, " '00000000' | |||
| lv_assignment_not_allowed | TYPE CEPC, " | |||
| lv_vtweg | TYPE TVKWZ-VTWEG, " SPACE | |||
| lv_vkorg_bukrs_wrong | TYPE TVKWZ, " | |||
| lv_spart | TYPE TVKOS-SPART, " SPACE | |||
| lv_vkorg_erkrs_wrong | TYPE TVKOS, " | |||
| lv_werks | TYPE T001W-WERKS, " SPACE | |||
| lv_vkorg_kokrs_wrong | TYPE T001W, " | |||
| lv_vkorg_not_exist | TYPE T001W, " | |||
| lv_it_checked_fields | TYPE RKEI1_YT_FIELD, " | |||
| lv_werk_bukrs_wrong | TYPE RKEI1_YT_FIELD, " | |||
| lv_werk_erkrs_wrong | TYPE RKEI1_YT_FIELD, " | |||
| lv_werk_kokrs_wrong | TYPE RKEI1_YT_FIELD, " | |||
| lv_prctr_not_found | TYPE RKEI1_YT_FIELD, " | |||
| lv_datum_bis | TYPE CEPC-DATBI, " '00000000' | |||
| lv_bukrs_erkrs_wrong | TYPE CEPC, " | |||
| lv_erkrs | TYPE TKEB-ERKRS, " SPACE | |||
| lv_bukrs_kokrs_wrong | TYPE TKEB, " | |||
| lv_bukrs | TYPE T001-BUKRS, " SPACE | |||
| lv_kokrs_erkrs_wrong | TYPE T001, " | |||
| lv_gsber | TYPE TGSB-GSBER, " SPACE | |||
| lv_no_kokrs_assigned | TYPE TGSB, " | |||
| lv_kokrs | TYPE TKA01-KOKRS, " SPACE | |||
| lv_no_kokrs_for_bukrs | TYPE TKA01, " | |||
| lv_prctr | TYPE CEPC-PRCTR, " SPACE | |||
| lv_prctr_erkrs_wrong | TYPE CEPC, " | |||
| lv_pprctr | TYPE CEPC-PRCTR, " SPACE | |||
| lv_prctr_kokrs_wrong | TYPE CEPC, " | |||
| lv_vkorg | TYPE TVKO-VKORG, " SPACE | |||
| lv_prctr_not_valid | TYPE TVKO. " |
|   CALL FUNCTION 'RKE_CHECK_ORG_ELEMENTS' " |
| EXPORTING | ||
| DATUM | = lv_datum | |
| VTWEG | = lv_vtweg | |
| SPART | = lv_spart | |
| WERKS | = lv_werks | |
| IT_CHECKED_FIELDS | = lv_it_checked_fields | |
| DATUM_BIS | = lv_datum_bis | |
| ERKRS | = lv_erkrs | |
| BUKRS | = lv_bukrs | |
| GSBER | = lv_gsber | |
| KOKRS | = lv_kokrs | |
| PRCTR | = lv_prctr | |
| PPRCTR | = lv_pprctr | |
| VKORG | = lv_vkorg | |
| EXCEPTIONS | ||
| ASSIGNMENT_NOT_ALLOWED = 1 | ||
| VKORG_BUKRS_WRONG = 10 | ||
| VKORG_ERKRS_WRONG = 11 | ||
| VKORG_KOKRS_WRONG = 12 | ||
| VKORG_NOT_EXIST = 13 | ||
| WERK_BUKRS_WRONG = 14 | ||
| WERK_ERKRS_WRONG = 15 | ||
| WERK_KOKRS_WRONG = 16 | ||
| PRCTR_NOT_FOUND = 17 | ||
| BUKRS_ERKRS_WRONG = 2 | ||
| BUKRS_KOKRS_WRONG = 3 | ||
| KOKRS_ERKRS_WRONG = 4 | ||
| NO_KOKRS_ASSIGNED = 5 | ||
| NO_KOKRS_FOR_BUKRS = 6 | ||
| PRCTR_ERKRS_WRONG = 7 | ||
| PRCTR_KOKRS_WRONG = 8 | ||
| PRCTR_NOT_VALID = 9 | ||
| . " RKE_CHECK_ORG_ELEMENTS | ||
ABAP code using 7.40 inline data declarations to call FM RKE_CHECK_ORG_ELEMENTS
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 DATBI FROM CEPC INTO @DATA(ld_datum). | ||||
| DATA(ld_datum) | = '00000000'. | |||
| "SELECT single VTWEG FROM TVKWZ INTO @DATA(ld_vtweg). | ||||
| DATA(ld_vtweg) | = ' '. | |||
| "SELECT single SPART FROM TVKOS INTO @DATA(ld_spart). | ||||
| DATA(ld_spart) | = ' '. | |||
| "SELECT single WERKS FROM T001W INTO @DATA(ld_werks). | ||||
| DATA(ld_werks) | = ' '. | |||
| "SELECT single DATBI FROM CEPC INTO @DATA(ld_datum_bis). | ||||
| DATA(ld_datum_bis) | = '00000000'. | |||
| "SELECT single ERKRS FROM TKEB INTO @DATA(ld_erkrs). | ||||
| DATA(ld_erkrs) | = ' '. | |||
| "SELECT single BUKRS FROM T001 INTO @DATA(ld_bukrs). | ||||
| DATA(ld_bukrs) | = ' '. | |||
| "SELECT single GSBER FROM TGSB INTO @DATA(ld_gsber). | ||||
| DATA(ld_gsber) | = ' '. | |||
| "SELECT single KOKRS FROM TKA01 INTO @DATA(ld_kokrs). | ||||
| DATA(ld_kokrs) | = ' '. | |||
| "SELECT single PRCTR FROM CEPC INTO @DATA(ld_prctr). | ||||
| DATA(ld_prctr) | = ' '. | |||
| "SELECT single PRCTR FROM CEPC INTO @DATA(ld_pprctr). | ||||
| DATA(ld_pprctr) | = ' '. | |||
| "SELECT single VKORG FROM TVKO INTO @DATA(ld_vkorg). | ||||
| DATA(ld_vkorg) | = ' '. | |||
Search for further information about these or an SAP related objects