SAP K_PERIOD_VALUES_READ Function Module for
K_PERIOD_VALUES_READ is a standard k period values read 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 k period values read FM, simply by entering the name K_PERIOD_VALUES_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: KKE1
Program Name: SAPLKKE1
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function K_PERIOD_VALUES_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 'K_PERIOD_VALUES_READ'".
EXPORTING
FEL_BWVAR = "
FEL_BZOBJ = "
FEL_KADKY = "
FEL_KALKA = "
FEL_KALNR = "Internal number of unit costing
FEL_KKZMA = "
FEL_LEDNR = "
FEL_TVERS = "
TABLES
FEL_TAB_CKIP = "internal table period values item
IMPORTING Parameters details for K_PERIOD_VALUES_READ
FEL_BWVAR -
Data type: CKIS-BWVAROptional: No
Call by Reference: No ( called with pass by value option)
FEL_BZOBJ -
Data type: CKIS-BZOBJOptional: No
Call by Reference: No ( called with pass by value option)
FEL_KADKY -
Data type: CKIS-KADKYOptional: No
Call by Reference: No ( called with pass by value option)
FEL_KALKA -
Data type: CKIS-KALKAOptional: No
Call by Reference: No ( called with pass by value option)
FEL_KALNR - Internal number of unit costing
Data type: CKIS-KALNROptional: No
Call by Reference: No ( called with pass by value option)
FEL_KKZMA -
Data type: CKIS-KKZMAOptional: No
Call by Reference: No ( called with pass by value option)
FEL_LEDNR -
Data type: CKIS-LEDNROptional: No
Call by Reference: No ( called with pass by value option)
FEL_TVERS -
Data type: CKIS-TVERSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_PERIOD_VALUES_READ
FEL_TAB_CKIP - internal table period values item
Data type: CKIPOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_PERIOD_VALUES_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_fel_bwvar | TYPE CKIS-BWVAR, " | |||
lt_fel_tab_ckip | TYPE STANDARD TABLE OF CKIP, " | |||
lv_fel_bzobj | TYPE CKIS-BZOBJ, " | |||
lv_fel_kadky | TYPE CKIS-KADKY, " | |||
lv_fel_kalka | TYPE CKIS-KALKA, " | |||
lv_fel_kalnr | TYPE CKIS-KALNR, " | |||
lv_fel_kkzma | TYPE CKIS-KKZMA, " | |||
lv_fel_lednr | TYPE CKIS-LEDNR, " | |||
lv_fel_tvers | TYPE CKIS-TVERS. " |
  CALL FUNCTION 'K_PERIOD_VALUES_READ' " |
EXPORTING | ||
FEL_BWVAR | = lv_fel_bwvar | |
FEL_BZOBJ | = lv_fel_bzobj | |
FEL_KADKY | = lv_fel_kadky | |
FEL_KALKA | = lv_fel_kalka | |
FEL_KALNR | = lv_fel_kalnr | |
FEL_KKZMA | = lv_fel_kkzma | |
FEL_LEDNR | = lv_fel_lednr | |
FEL_TVERS | = lv_fel_tvers | |
TABLES | ||
FEL_TAB_CKIP | = lt_fel_tab_ckip | |
. " K_PERIOD_VALUES_READ |
ABAP code using 7.40 inline data declarations to call FM K_PERIOD_VALUES_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."SELECT single BWVAR FROM CKIS INTO @DATA(ld_fel_bwvar). | ||||
"SELECT single BZOBJ FROM CKIS INTO @DATA(ld_fel_bzobj). | ||||
"SELECT single KADKY FROM CKIS INTO @DATA(ld_fel_kadky). | ||||
"SELECT single KALKA FROM CKIS INTO @DATA(ld_fel_kalka). | ||||
"SELECT single KALNR FROM CKIS INTO @DATA(ld_fel_kalnr). | ||||
"SELECT single KKZMA FROM CKIS INTO @DATA(ld_fel_kkzma). | ||||
"SELECT single LEDNR FROM CKIS INTO @DATA(ld_fel_lednr). | ||||
"SELECT single TVERS FROM CKIS INTO @DATA(ld_fel_tvers). | ||||
Search for further information about these or an SAP related objects