SAP CKML_LA_PERIOD_READ Function Module for









CKML_LA_PERIOD_READ is a standard ckml la period 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 ckml la period read FM, simply by entering the name CKML_LA_PERIOD_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: CKMLLAQUANT
Program Name: SAPLCKMLLAQUANT
Main Program: SAPLCKMLLAQUANT
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CKML_LA_PERIOD_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 'CKML_LA_PERIOD_READ'"
EXPORTING
I_KALNR = "
* I_CHANGED_ONLY = ' ' "
* I_TECHNICAL_ENTRIES = ' ' "
* I_CALLED_BY_FREEZER = ' ' "Checkbox
* I_CHECK_ST_VAL_REL = 'X' "
* I_CHECK_ST_VAL_REL_D = '' "Checkbox
* I_READ_UPDATED_DATA = '' "Checkbox
* I_OBJNR = "Object Number - Cost Center/Activ. Type
* I_BDATJ = "Fiscal Year
* I_POPER = "Period
* I_UNTPER = '000' "
* I_BWSTRAT = '1' "
* I_COMPONENTS = ' ' "
* I_DATABASE_SKIP = ' ' "
* I_CREATE_NEW = ' ' "

IMPORTING
E_CREATED = "
ET_PRKEKO = "
ET_PRKEPH = "

TABLES
* IT_CURTP = "
* IT_TKA09 = "
* ET_CKMLLACR = "

EXCEPTIONS
INTERFACE_ERROR = 1 NO_PERIOD_DATA_FOUND = 2 NO_SPLIT_DATA_FOUND = 3 INTERNAL_ERROR = 4 NOT_RELEVANT_FOR_VALUATION = 5
.



IMPORTING Parameters details for CKML_LA_PERIOD_READ

I_KALNR -

Data type: CKMLLAHD-KALNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_CHANGED_ONLY -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TECHNICAL_ENTRIES -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CALLED_BY_FREEZER - Checkbox

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHECK_ST_VAL_REL -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHECK_ST_VAL_REL_D - Checkbox

Data type: XFELD
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_READ_UPDATED_DATA - Checkbox

Data type: XFELD
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OBJNR - Object Number - Cost Center/Activ. Type

Data type: CKMLLAHD-OBJNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BDATJ - Fiscal Year

Data type: CKMLLACR-BDATJ
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_POPER - Period

Data type: CKMLLACR-POPER
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_UNTPER -

Data type: CKMLLACR-UNTPER
Default: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BWSTRAT -

Data type: CKMLLACR-BWSTRAT
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_COMPONENTS -

Data type: C1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATABASE_SKIP -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CREATE_NEW -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CKML_LA_PERIOD_READ

E_CREATED -

Data type: XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

ET_PRKEKO -

Data type: MLCCS_T_PRKEKO
Optional: No
Call by Reference: Yes

ET_PRKEPH -

Data type: MLCCS_T_PRKEPH
Optional: No
Call by Reference: Yes

TABLES Parameters details for CKML_LA_PERIOD_READ

IT_CURTP -

Data type: CKI_ML_CTY
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_TKA09 -

Data type: V_TKA09_V
Optional: Yes
Call by Reference: No ( called with pass by value option)

ET_CKMLLACR -

Data type: CKMLLACR
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INTERFACE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_PERIOD_DATA_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_SPLIT_DATA_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERNAL_ERROR - Internal error

Data type:
Optional: No
Call by Reference: Yes

NOT_RELEVANT_FOR_VALUATION -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CKML_LA_PERIOD_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_i_kalnr  TYPE CKMLLAHD-KALNR, "   
lt_it_curtp  TYPE STANDARD TABLE OF CKI_ML_CTY, "   
lv_e_created  TYPE XFELD, "   
lv_interface_error  TYPE XFELD, "   
lv_i_changed_only  TYPE XFELD, "   SPACE
lv_i_technical_entries  TYPE XFELD, "   SPACE
lv_i_called_by_freezer  TYPE XFELD, "   SPACE
lv_i_check_st_val_rel  TYPE XFELD, "   'X'
lv_i_check_st_val_rel_d  TYPE XFELD, "   ''
lv_i_read_updated_data  TYPE XFELD, "   ''
lv_i_objnr  TYPE CKMLLAHD-OBJNR, "   
lt_it_tka09  TYPE STANDARD TABLE OF V_TKA09_V, "   
lv_et_prkeko  TYPE MLCCS_T_PRKEKO, "   
lv_no_period_data_found  TYPE MLCCS_T_PRKEKO, "   
lv_i_bdatj  TYPE CKMLLACR-BDATJ, "   
lv_et_prkeph  TYPE MLCCS_T_PRKEPH, "   
lt_et_ckmllacr  TYPE STANDARD TABLE OF CKMLLACR, "   
lv_no_split_data_found  TYPE CKMLLACR, "   
lv_i_poper  TYPE CKMLLACR-POPER, "   
lv_internal_error  TYPE CKMLLACR, "   
lv_i_untper  TYPE CKMLLACR-UNTPER, "   '000'
lv_not_relevant_for_valuation  TYPE CKMLLACR, "   
lv_i_bwstrat  TYPE CKMLLACR-BWSTRAT, "   '1'
lv_i_components  TYPE C1, "   SPACE
lv_i_database_skip  TYPE XFELD, "   SPACE
lv_i_create_new  TYPE XFELD. "   SPACE

  CALL FUNCTION 'CKML_LA_PERIOD_READ'  "
    EXPORTING
         I_KALNR = lv_i_kalnr
         I_CHANGED_ONLY = lv_i_changed_only
         I_TECHNICAL_ENTRIES = lv_i_technical_entries
         I_CALLED_BY_FREEZER = lv_i_called_by_freezer
         I_CHECK_ST_VAL_REL = lv_i_check_st_val_rel
         I_CHECK_ST_VAL_REL_D = lv_i_check_st_val_rel_d
         I_READ_UPDATED_DATA = lv_i_read_updated_data
         I_OBJNR = lv_i_objnr
         I_BDATJ = lv_i_bdatj
         I_POPER = lv_i_poper
         I_UNTPER = lv_i_untper
         I_BWSTRAT = lv_i_bwstrat
         I_COMPONENTS = lv_i_components
         I_DATABASE_SKIP = lv_i_database_skip
         I_CREATE_NEW = lv_i_create_new
    IMPORTING
         E_CREATED = lv_e_created
         ET_PRKEKO = lv_et_prkeko
         ET_PRKEPH = lv_et_prkeph
    TABLES
         IT_CURTP = lt_it_curtp
         IT_TKA09 = lt_it_tka09
         ET_CKMLLACR = lt_et_ckmllacr
    EXCEPTIONS
        INTERFACE_ERROR = 1
        NO_PERIOD_DATA_FOUND = 2
        NO_SPLIT_DATA_FOUND = 3
        INTERNAL_ERROR = 4
        NOT_RELEVANT_FOR_VALUATION = 5
. " CKML_LA_PERIOD_READ




ABAP code using 7.40 inline data declarations to call FM CKML_LA_PERIOD_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 KALNR FROM CKMLLAHD INTO @DATA(ld_i_kalnr).
 
 
 
 
DATA(ld_i_changed_only) = ' '.
 
DATA(ld_i_technical_entries) = ' '.
 
DATA(ld_i_called_by_freezer) = ' '.
 
DATA(ld_i_check_st_val_rel) = 'X'.
 
DATA(ld_i_check_st_val_rel_d) = ''.
 
DATA(ld_i_read_updated_data) = ''.
 
"SELECT single OBJNR FROM CKMLLAHD INTO @DATA(ld_i_objnr).
 
 
 
 
"SELECT single BDATJ FROM CKMLLACR INTO @DATA(ld_i_bdatj).
 
 
 
 
"SELECT single POPER FROM CKMLLACR INTO @DATA(ld_i_poper).
 
 
"SELECT single UNTPER FROM CKMLLACR INTO @DATA(ld_i_untper).
DATA(ld_i_untper) = '000'.
 
 
"SELECT single BWSTRAT FROM CKMLLACR INTO @DATA(ld_i_bwstrat).
DATA(ld_i_bwstrat) = '1'.
 
DATA(ld_i_components) = ' '.
 
DATA(ld_i_database_skip) = ' '.
 
DATA(ld_i_create_new) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!