SAP CKMS_PERIOD_READ_ONLY Function Module for
CKMS_PERIOD_READ_ONLY is a standard ckms period read only 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 ckms period read only FM, simply by entering the name CKMS_PERIOD_READ_ONLY into the relevant SAP transaction such as SE37 or SE38.
Function Group: CKMS
Program Name: SAPLCKMS
Main Program: SAPLCKMS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CKMS_PERIOD_READ_ONLY 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 'CKMS_PERIOD_READ_ONLY'".
EXPORTING
I_PERIOD_FROM = "Posting Period
I_YEAR_FROM = "Posting date YYYY
I_PERIOD_TO = "Posting Period
I_YEAR_TO = "Posting date YYYY
* I_UNTPER = '000' "Value Structure Type
TABLES
ET_CKMLPP = "Material Ledger Period Totals Records Quantity
ET_CKMLCR = "Material Ledger: Period Totals Records Values
IT_CKMLHD = "Material Ledger: Header Record
IMPORTING Parameters details for CKMS_PERIOD_READ_ONLY
I_PERIOD_FROM - Posting Period
Data type: CKMLPP-POPEROptional: No
Call by Reference: No ( called with pass by value option)
I_YEAR_FROM - Posting date YYYY
Data type: CKMLPP-BDATJOptional: No
Call by Reference: No ( called with pass by value option)
I_PERIOD_TO - Posting Period
Data type: CKMLPP-POPEROptional: No
Call by Reference: No ( called with pass by value option)
I_YEAR_TO - Posting date YYYY
Data type: CKMLPP-BDATJOptional: No
Call by Reference: No ( called with pass by value option)
I_UNTPER - Value Structure Type
Data type: CKMLPP-UNTPERDefault: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CKMS_PERIOD_READ_ONLY
ET_CKMLPP - Material Ledger Period Totals Records Quantity
Data type: CKMLPPOptional: No
Call by Reference: Yes
ET_CKMLCR - Material Ledger: Period Totals Records Values
Data type: CKMLCROptional: No
Call by Reference: Yes
IT_CKMLHD - Material Ledger: Header Record
Data type: CKMLHDOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CKMS_PERIOD_READ_ONLY 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: | ||||
| lt_et_ckmlpp | TYPE STANDARD TABLE OF CKMLPP, " | |||
| lv_i_period_from | TYPE CKMLPP-POPER, " | |||
| lt_et_ckmlcr | TYPE STANDARD TABLE OF CKMLCR, " | |||
| lv_i_year_from | TYPE CKMLPP-BDATJ, " | |||
| lt_it_ckmlhd | TYPE STANDARD TABLE OF CKMLHD, " | |||
| lv_i_period_to | TYPE CKMLPP-POPER, " | |||
| lv_i_year_to | TYPE CKMLPP-BDATJ, " | |||
| lv_i_untper | TYPE CKMLPP-UNTPER. " '000' |
|   CALL FUNCTION 'CKMS_PERIOD_READ_ONLY' " |
| EXPORTING | ||
| I_PERIOD_FROM | = lv_i_period_from | |
| I_YEAR_FROM | = lv_i_year_from | |
| I_PERIOD_TO | = lv_i_period_to | |
| I_YEAR_TO | = lv_i_year_to | |
| I_UNTPER | = lv_i_untper | |
| TABLES | ||
| ET_CKMLPP | = lt_et_ckmlpp | |
| ET_CKMLCR | = lt_et_ckmlcr | |
| IT_CKMLHD | = lt_it_ckmlhd | |
| . " CKMS_PERIOD_READ_ONLY | ||
ABAP code using 7.40 inline data declarations to call FM CKMS_PERIOD_READ_ONLY
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 POPER FROM CKMLPP INTO @DATA(ld_i_period_from). | ||||
| "SELECT single BDATJ FROM CKMLPP INTO @DATA(ld_i_year_from). | ||||
| "SELECT single POPER FROM CKMLPP INTO @DATA(ld_i_period_to). | ||||
| "SELECT single BDATJ FROM CKMLPP INTO @DATA(ld_i_year_to). | ||||
| "SELECT single UNTPER FROM CKMLPP INTO @DATA(ld_i_untper). | ||||
| DATA(ld_i_untper) | = '000'. | |||
Search for further information about these or an SAP related objects