SAP CKKONV_CURRENT_CYCLE Function Module for
CKKONV_CURRENT_CYCLE is a standard ckkonv current cycle 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 ckkonv current cycle FM, simply by entering the name CKKONV_CURRENT_CYCLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CKKONV
Program Name: SAPLCKKONV
Main Program: SAPLCKKONV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CKKONV_CURRENT_CYCLE 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 'CKKONV_CURRENT_CYCLE'".
EXPORTING
MODE = "
* MATNR = "
* WERKS = "
* CUOBJ = "
* T_KALNR = "
* T_KALNR_TABIX = "
TABLES
* T_KVMK = "
EXCEPTIONS
IS_CYCLE_MEMBER = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for CKKONV_CURRENT_CYCLE
MODE -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
MATNR -
Data type: KEKO-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
WERKS -
Data type: KEKO-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
CUOBJ -
Data type: KEKO-CUOBJOptional: Yes
Call by Reference: No ( called with pass by value option)
T_KALNR -
Data type: CKCY_KALNR_TABOptional: Yes
Call by Reference: Yes
T_KALNR_TABIX -
Data type: CKCY_KALNR_TABIX_HASHTABOptional: Yes
Call by Reference: Yes
TABLES Parameters details for CKKONV_CURRENT_CYCLE
T_KVMK -
Data type: CKKVMKOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
IS_CYCLE_MEMBER -
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CKKONV_CURRENT_CYCLE 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_mode | TYPE C, " | |||
| lt_t_kvmk | TYPE STANDARD TABLE OF CKKVMK, " | |||
| lv_is_cycle_member | TYPE CKKVMK, " | |||
| lv_matnr | TYPE KEKO-MATNR, " | |||
| lv_internal_error | TYPE KEKO, " | |||
| lv_werks | TYPE KEKO-WERKS, " | |||
| lv_cuobj | TYPE KEKO-CUOBJ, " | |||
| lv_t_kalnr | TYPE CKCY_KALNR_TAB, " | |||
| lv_t_kalnr_tabix | TYPE CKCY_KALNR_TABIX_HASHTAB. " |
|   CALL FUNCTION 'CKKONV_CURRENT_CYCLE' " |
| EXPORTING | ||
| MODE | = lv_mode | |
| MATNR | = lv_matnr | |
| WERKS | = lv_werks | |
| CUOBJ | = lv_cuobj | |
| T_KALNR | = lv_t_kalnr | |
| T_KALNR_TABIX | = lv_t_kalnr_tabix | |
| TABLES | ||
| T_KVMK | = lt_t_kvmk | |
| EXCEPTIONS | ||
| IS_CYCLE_MEMBER = 1 | ||
| INTERNAL_ERROR = 2 | ||
| . " CKKONV_CURRENT_CYCLE | ||
ABAP code using 7.40 inline data declarations to call FM CKKONV_CURRENT_CYCLE
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 MATNR FROM KEKO INTO @DATA(ld_matnr). | ||||
| "SELECT single WERKS FROM KEKO INTO @DATA(ld_werks). | ||||
| "SELECT single CUOBJ FROM KEKO INTO @DATA(ld_cuobj). | ||||
Search for further information about these or an SAP related objects