SAP CY_CAPACITY_COMMITMENT_DEL Function Module for NOTRANSL: Satz aus Kapazitätsbelegung löschen
CY_CAPACITY_COMMITMENT_DEL is a standard cy capacity commitment del 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: Satz aus Kapazitätsbelegung löschen 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 capacity commitment del FM, simply by entering the name CY_CAPACITY_COMMITMENT_DEL 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_CAPACITY_COMMITMENT_DEL 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_CAPACITY_COMMITMENT_DEL'"NOTRANSL: Satz aus Kapazitätsbelegung löschen.
EXPORTING
I_DATE_BEG = "Start date of deletion record
* I_PLADATB = 99991231 "End of planning period
* I_AMOUNT = "
* I_TAB_KEY = ' ' "
* FLG_FIXED_TMP_DEL = "
I_DATE_END = "Finish date of deletion record
I_KEY1_BTAB = "Committed capacity
I_KEY2_BTAB = "Committed capacity
I_KEY3_BTAB = "Committed capacity
I_KAPID = "Committed capacity
I_TIME_BEG = "Start time of deletion record
I_TIME_END = "Finish time of deletion record
* I_PLADATV = 19700101 "Start of planning period
IMPORTING
E_INDEX_BTAB = "
E_AMOUNT = "Commitment amount
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for CY_CAPACITY_COMMITMENT_DEL
I_DATE_BEG - Start date of deletion record
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
I_PLADATB - End of planning period
Data type: SY-DATUMDefault: 99991231
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AMOUNT -
Data type: KBED-KRUERESTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_KEY -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_FIXED_TMP_DEL -
Data type: SY-BATCHOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DATE_END - Finish date of deletion record
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
I_KEY1_BTAB - Committed capacity
Data type: CYKAPABEL-KEY1Optional: No
Call by Reference: No ( called with pass by value option)
I_KEY2_BTAB - Committed capacity
Data type: CYKAPABEL-KEY2Optional: No
Call by Reference: No ( called with pass by value option)
I_KEY3_BTAB - Committed capacity
Data type: CYKAPABEL-KEY3Optional: No
Call by Reference: No ( called with pass by value option)
I_KAPID - Committed capacity
Data type: KAKO-KAPIDOptional: No
Call by Reference: No ( called with pass by value option)
I_TIME_BEG - Start time of deletion record
Data type: KAPA-BEGZTOptional: No
Call by Reference: No ( called with pass by value option)
I_TIME_END - Finish time of deletion record
Data type: KAPA-ENDZTOptional: No
Call by Reference: No ( called with pass by value option)
I_PLADATV - Start of planning period
Data type: SY-DATUMDefault: 19700101
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CY_CAPACITY_COMMITMENT_DEL
E_INDEX_BTAB -
Data type: SY-TABIXOptional: No
Call by Reference: Yes
E_AMOUNT - Commitment amount
Data type: KBED-KRUERESTOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND - Deletion record was not in the table
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CY_CAPACITY_COMMITMENT_DEL 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_date_beg | TYPE I, " | |||
| lv_e_index_btab | TYPE SY-TABIX, " | |||
| lv_i_pladatb | TYPE SY-DATUM, " 99991231 | |||
| lv_i_amount | TYPE KBED-KRUEREST, " | |||
| lv_i_tab_key | TYPE C, " SPACE | |||
| lv_flg_fixed_tmp_del | TYPE SY-BATCH, " | |||
| lv_e_amount | TYPE KBED-KRUEREST, " | |||
| lv_i_date_end | TYPE I, " | |||
| lv_i_key1_btab | TYPE CYKAPABEL-KEY1, " | |||
| lv_i_key2_btab | TYPE CYKAPABEL-KEY2, " | |||
| lv_i_key3_btab | TYPE CYKAPABEL-KEY3, " | |||
| lv_i_kapid | TYPE KAKO-KAPID, " | |||
| lv_i_time_beg | TYPE KAPA-BEGZT, " | |||
| lv_i_time_end | TYPE KAPA-ENDZT, " | |||
| lv_i_pladatv | TYPE SY-DATUM. " 19700101 |
|   CALL FUNCTION 'CY_CAPACITY_COMMITMENT_DEL' "NOTRANSL: Satz aus Kapazitätsbelegung löschen |
| EXPORTING | ||
| I_DATE_BEG | = lv_i_date_beg | |
| I_PLADATB | = lv_i_pladatb | |
| I_AMOUNT | = lv_i_amount | |
| I_TAB_KEY | = lv_i_tab_key | |
| FLG_FIXED_TMP_DEL | = lv_flg_fixed_tmp_del | |
| I_DATE_END | = lv_i_date_end | |
| I_KEY1_BTAB | = lv_i_key1_btab | |
| I_KEY2_BTAB | = lv_i_key2_btab | |
| I_KEY3_BTAB | = lv_i_key3_btab | |
| I_KAPID | = lv_i_kapid | |
| I_TIME_BEG | = lv_i_time_beg | |
| I_TIME_END | = lv_i_time_end | |
| I_PLADATV | = lv_i_pladatv | |
| IMPORTING | ||
| E_INDEX_BTAB | = lv_e_index_btab | |
| E_AMOUNT | = lv_e_amount | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " CY_CAPACITY_COMMITMENT_DEL | ||
ABAP code using 7.40 inline data declarations to call FM CY_CAPACITY_COMMITMENT_DEL
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 TABIX FROM SY INTO @DATA(ld_e_index_btab). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_pladatb). | ||||
| DATA(ld_i_pladatb) | = 99991231. | |||
| "SELECT single KRUEREST FROM KBED INTO @DATA(ld_i_amount). | ||||
| DATA(ld_i_tab_key) | = ' '. | |||
| "SELECT single BATCH FROM SY INTO @DATA(ld_flg_fixed_tmp_del). | ||||
| "SELECT single KRUEREST FROM KBED INTO @DATA(ld_e_amount). | ||||
| "SELECT single KEY1 FROM CYKAPABEL INTO @DATA(ld_i_key1_btab). | ||||
| "SELECT single KEY2 FROM CYKAPABEL INTO @DATA(ld_i_key2_btab). | ||||
| "SELECT single KEY3 FROM CYKAPABEL INTO @DATA(ld_i_key3_btab). | ||||
| "SELECT single KAPID FROM KAKO INTO @DATA(ld_i_kapid). | ||||
| "SELECT single BEGZT FROM KAPA INTO @DATA(ld_i_time_beg). | ||||
| "SELECT single ENDZT FROM KAPA INTO @DATA(ld_i_time_end). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_pladatv). | ||||
| DATA(ld_i_pladatv) | = 19700101. | |||
Search for further information about these or an SAP related objects