SAP CK04_RESOURCES_EXIST_GET_TEXTS Function Module for
CK04_RESOURCES_EXIST_GET_TEXTS is a standard ck04 resources exist get texts 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 ck04 resources exist get texts FM, simply by entering the name CK04_RESOURCES_EXIST_GET_TEXTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: CK04
Program Name: SAPLCK04
Main Program: SAPLCK04
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CK04_RESOURCES_EXIST_GET_TEXTS 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 'CK04_RESOURCES_EXIST_GET_TEXTS'".
EXPORTING
* LSTAR_DATE = "
* FLG_CHECK_EXISTENCE = 'X' "
* FLG_GET_TEXT = 'X' "
CHANGING
RESOURCE_TEMPL_CHG = "
EXCEPTIONS
ERROR_MATERIAL = 1 COSTMODEL_HAS_WRONG_TPLCLASS = 10 KSTAR_DOES_NOT_EXIST = 11 BPO_DOES_NOT_EXIST = 12 UNEXPECTED_PTYPE = 13 INVALID_MEEHT = 14 CUSTOMER_SPEC_POS_INACTIVE = 15 WRONG_PLANT = 2 EXTERNAL_SERV_NOT_FOUND = 3 EKORG_MISSING = 4 ERROR_ACTIVITY_COSTCENTER = 5 PROCESS_NOT_FOUND = 6 SERVICE_NOT_EXISTS = 7 COSTMODEL_NOT_FOUND = 8 COSTMODEL_HAS_WRONG_CHARACTERS = 9
IMPORTING Parameters details for CK04_RESOURCES_EXIST_GET_TEXTS
LSTAR_DATE -
Data type: CKHS-PSDATOptional: Yes
Call by Reference: Yes
FLG_CHECK_EXISTENCE -
Data type: XFLAGDefault: 'X'
Optional: Yes
Call by Reference: Yes
FLG_GET_TEXT -
Data type: XFLAGDefault: 'X'
Optional: Yes
Call by Reference: Yes
CHANGING Parameters details for CK04_RESOURCES_EXIST_GET_TEXTS
RESOURCE_TEMPL_CHG -
Data type: CKF_RES_TPLOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_MATERIAL -
Data type:Optional: No
Call by Reference: Yes
COSTMODEL_HAS_WRONG_TPLCLASS -
Data type:Optional: No
Call by Reference: Yes
KSTAR_DOES_NOT_EXIST -
Data type:Optional: No
Call by Reference: Yes
BPO_DOES_NOT_EXIST -
Data type:Optional: No
Call by Reference: Yes
UNEXPECTED_PTYPE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_MEEHT -
Data type:Optional: No
Call by Reference: Yes
CUSTOMER_SPEC_POS_INACTIVE -
Data type:Optional: No
Call by Reference: Yes
WRONG_PLANT -
Data type:Optional: No
Call by Reference: Yes
EXTERNAL_SERV_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EKORG_MISSING -
Data type:Optional: No
Call by Reference: Yes
ERROR_ACTIVITY_COSTCENTER -
Data type:Optional: No
Call by Reference: Yes
PROCESS_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
SERVICE_NOT_EXISTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COSTMODEL_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COSTMODEL_HAS_WRONG_CHARACTERS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CK04_RESOURCES_EXIST_GET_TEXTS 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_lstar_date | TYPE CKHS-PSDAT, " | |||
| lv_error_material | TYPE CKHS, " | |||
| lv_resource_templ_chg | TYPE CKF_RES_TPL, " | |||
| lv_costmodel_has_wrong_tplclass | TYPE CKF_RES_TPL, " | |||
| lv_kstar_does_not_exist | TYPE CKF_RES_TPL, " | |||
| lv_bpo_does_not_exist | TYPE CKF_RES_TPL, " | |||
| lv_unexpected_ptype | TYPE CKF_RES_TPL, " | |||
| lv_invalid_meeht | TYPE CKF_RES_TPL, " | |||
| lv_customer_spec_pos_inactive | TYPE CKF_RES_TPL, " | |||
| lv_wrong_plant | TYPE CKF_RES_TPL, " | |||
| lv_flg_check_existence | TYPE XFLAG, " 'X' | |||
| lv_flg_get_text | TYPE XFLAG, " 'X' | |||
| lv_external_serv_not_found | TYPE XFLAG, " | |||
| lv_ekorg_missing | TYPE XFLAG, " | |||
| lv_error_activity_costcenter | TYPE XFLAG, " | |||
| lv_process_not_found | TYPE XFLAG, " | |||
| lv_service_not_exists | TYPE XFLAG, " | |||
| lv_costmodel_not_found | TYPE XFLAG, " | |||
| lv_costmodel_has_wrong_characters | TYPE XFLAG. " |
|   CALL FUNCTION 'CK04_RESOURCES_EXIST_GET_TEXTS' " |
| EXPORTING | ||
| LSTAR_DATE | = lv_lstar_date | |
| FLG_CHECK_EXISTENCE | = lv_flg_check_existence | |
| FLG_GET_TEXT | = lv_flg_get_text | |
| CHANGING | ||
| RESOURCE_TEMPL_CHG | = lv_resource_templ_chg | |
| EXCEPTIONS | ||
| ERROR_MATERIAL = 1 | ||
| COSTMODEL_HAS_WRONG_TPLCLASS = 10 | ||
| KSTAR_DOES_NOT_EXIST = 11 | ||
| BPO_DOES_NOT_EXIST = 12 | ||
| UNEXPECTED_PTYPE = 13 | ||
| INVALID_MEEHT = 14 | ||
| CUSTOMER_SPEC_POS_INACTIVE = 15 | ||
| WRONG_PLANT = 2 | ||
| EXTERNAL_SERV_NOT_FOUND = 3 | ||
| EKORG_MISSING = 4 | ||
| ERROR_ACTIVITY_COSTCENTER = 5 | ||
| PROCESS_NOT_FOUND = 6 | ||
| SERVICE_NOT_EXISTS = 7 | ||
| COSTMODEL_NOT_FOUND = 8 | ||
| COSTMODEL_HAS_WRONG_CHARACTERS = 9 | ||
| . " CK04_RESOURCES_EXIST_GET_TEXTS | ||
ABAP code using 7.40 inline data declarations to call FM CK04_RESOURCES_EXIST_GET_TEXTS
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 PSDAT FROM CKHS INTO @DATA(ld_lstar_date). | ||||
| DATA(ld_flg_check_existence) | = 'X'. | |||
| DATA(ld_flg_get_text) | = 'X'. | |||
Search for further information about these or an SAP related objects