SAP CY_KBED_COMMITMENT_READ Function Module for NOTRANSL: Reads commitment-tables if certain entry can be found and delete
CY_KBED_COMMITMENT_READ is a standard cy kbed commitment read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Reads commitment-tables if certain entry can be found and delete 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 cy kbed commitment read FM, simply by entering the name CY_KBED_COMMITMENT_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: CY16
Program Name: SAPLCY16
Main Program:
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CY_KBED_COMMITMENT_READ 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 'CY_KBED_COMMITMENT_READ'"NOTRANSL: Reads commitment-tables if certain entry can be found and delete.
EXPORTING
* I_FLG_FORWARD = 'X' "Generic Type
* I_INDEX = "Index to object order operation
* I_FLGKBED = ' ' "Index is capacity requirements index
* I_KEY1 = "ID of the Capacity Requirements Record
* I_KEY2 = "Internal counter
* I_KEY3 = "Counters for cap. rqmts. records (various caps. + indiv.caps
* I_KAPID = "Capacity ID
TABLES
* I_OPR_TO_MOVE = "Order-/operation structure
* I_KAKO_TAB = "Capacity Header Data with Short Text
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for CY_KBED_COMMITMENT_READ
I_FLG_FORWARD - Generic Type
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_INDEX - Index to object order operation
Data type: CYKAPABEL-INDEXOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLGKBED - Index is capacity requirements index
Data type: CYKAPABEL-FLGKBEDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KEY1 - ID of the Capacity Requirements Record
Data type: CYKAPABEL-KEY1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KEY2 - Internal counter
Data type: CYKAPABEL-KEY2Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KEY3 - Counters for cap. rqmts. records (various caps. + indiv.caps
Data type: CYKAPABEL-KEY3Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KAPID - Capacity ID
Data type: CYKAPABEL-KAPIDOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CY_KBED_COMMITMENT_READ
I_OPR_TO_MOVE - Order-/operation structure
Data type: CYOPR_MOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KAKO_TAB - Capacity Header Data with Short Text
Data type: RKAKO_AOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CY_KBED_COMMITMENT_READ 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_not_found | TYPE STRING, " | |||
| lv_i_flg_forward | TYPE C, " 'X' | |||
| lt_i_opr_to_move | TYPE STANDARD TABLE OF CYOPR_M, " | |||
| lv_i_index | TYPE CYKAPABEL-INDEX, " | |||
| lt_i_kako_tab | TYPE STANDARD TABLE OF RKAKO_A, " | |||
| lv_i_flgkbed | TYPE CYKAPABEL-FLGKBED, " SPACE | |||
| lv_i_key1 | TYPE CYKAPABEL-KEY1, " | |||
| lv_i_key2 | TYPE CYKAPABEL-KEY2, " | |||
| lv_i_key3 | TYPE CYKAPABEL-KEY3, " | |||
| lv_i_kapid | TYPE CYKAPABEL-KAPID. " |
|   CALL FUNCTION 'CY_KBED_COMMITMENT_READ' "NOTRANSL: Reads commitment-tables if certain entry can be found and delete |
| EXPORTING | ||
| I_FLG_FORWARD | = lv_i_flg_forward | |
| I_INDEX | = lv_i_index | |
| I_FLGKBED | = lv_i_flgkbed | |
| I_KEY1 | = lv_i_key1 | |
| I_KEY2 | = lv_i_key2 | |
| I_KEY3 | = lv_i_key3 | |
| I_KAPID | = lv_i_kapid | |
| TABLES | ||
| I_OPR_TO_MOVE | = lt_i_opr_to_move | |
| I_KAKO_TAB | = lt_i_kako_tab | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " CY_KBED_COMMITMENT_READ | ||
ABAP code using 7.40 inline data declarations to call FM CY_KBED_COMMITMENT_READ
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.| DATA(ld_i_flg_forward) | = 'X'. | |||
| "SELECT single INDEX FROM CYKAPABEL INTO @DATA(ld_i_index). | ||||
| "SELECT single FLGKBED FROM CYKAPABEL INTO @DATA(ld_i_flgkbed). | ||||
| DATA(ld_i_flgkbed) | = ' '. | |||
| "SELECT single KEY1 FROM CYKAPABEL INTO @DATA(ld_i_key1). | ||||
| "SELECT single KEY2 FROM CYKAPABEL INTO @DATA(ld_i_key2). | ||||
| "SELECT single KEY3 FROM CYKAPABEL INTO @DATA(ld_i_key3). | ||||
| "SELECT single KAPID FROM CYKAPABEL INTO @DATA(ld_i_kapid). | ||||
Search for further information about these or an SAP related objects