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

Function CKMS_HEADER_READ_WITH_ITAB 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_HEADER_READ_WITH_ITAB'".
EXPORTING
* REFRESH_BUFFER = ' ' "
* ENQUEUE_MBEW = ' ' "
TABLES
IN_KALNR = "Cost Estimate Numbers
* OUT_CKMLHD = "
* OUT_CKMLPR = "Prices
* OUT_CKMLHD_LOCK = "
* OUT_CKMLPR_LOCK = "Prices
* OUT_LOCK_USER = "User who set lock
EXCEPTIONS
NO_DATA_FOUND = 1 INPUT_DATA_INCONSISTENT = 2 LOCK_SYSTEM_FAILURE = 3 INTERNAL_ERROR = 4 NO_DATA_REQUESTED = 5
IMPORTING Parameters details for CKMS_HEADER_READ_WITH_ITAB
REFRESH_BUFFER -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ENQUEUE_MBEW -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CKMS_HEADER_READ_WITH_ITAB
IN_KALNR - Cost Estimate Numbers
Data type: CKMV0_MATOBJ_TBLOptional: No
Call by Reference: No ( called with pass by value option)
OUT_CKMLHD -
Data type: CKMLHDOptional: Yes
Call by Reference: No ( called with pass by value option)
OUT_CKMLPR - Prices
Data type: CKMLPROptional: Yes
Call by Reference: No ( called with pass by value option)
OUT_CKMLHD_LOCK -
Data type: CKMLHDOptional: Yes
Call by Reference: No ( called with pass by value option)
OUT_CKMLPR_LOCK - Prices
Data type: CKMLPROptional: Yes
Call by Reference: No ( called with pass by value option)
OUT_LOCK_USER - User who set lock
Data type: CKML_S_LOCK_USEROptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_DATA_FOUND - No Data Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INPUT_DATA_INCONSISTENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LOCK_SYSTEM_FAILURE - Error in lock management
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: No ( called with pass by value option)
NO_DATA_REQUESTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CKMS_HEADER_READ_WITH_ITAB 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_in_kalnr | TYPE STANDARD TABLE OF CKMV0_MATOBJ_TBL, " | |||
| lv_no_data_found | TYPE CKMV0_MATOBJ_TBL, " | |||
| lv_refresh_buffer | TYPE CKMV0_MATOBJ_TBL, " ' ' | |||
| lt_out_ckmlhd | TYPE STANDARD TABLE OF CKMLHD, " | |||
| lv_enqueue_mbew | TYPE CKMLHD, " SPACE | |||
| lv_input_data_inconsistent | TYPE CKMLHD, " | |||
| lt_out_ckmlpr | TYPE STANDARD TABLE OF CKMLPR, " | |||
| lv_lock_system_failure | TYPE CKMLPR, " | |||
| lv_internal_error | TYPE CKMLPR, " | |||
| lt_out_ckmlhd_lock | TYPE STANDARD TABLE OF CKMLHD, " | |||
| lt_out_ckmlpr_lock | TYPE STANDARD TABLE OF CKMLPR, " | |||
| lv_no_data_requested | TYPE CKMLPR, " | |||
| lt_out_lock_user | TYPE STANDARD TABLE OF CKML_S_LOCK_USER. " |
|   CALL FUNCTION 'CKMS_HEADER_READ_WITH_ITAB' " |
| EXPORTING | ||
| REFRESH_BUFFER | = lv_refresh_buffer | |
| ENQUEUE_MBEW | = lv_enqueue_mbew | |
| TABLES | ||
| IN_KALNR | = lt_in_kalnr | |
| OUT_CKMLHD | = lt_out_ckmlhd | |
| OUT_CKMLPR | = lt_out_ckmlpr | |
| OUT_CKMLHD_LOCK | = lt_out_ckmlhd_lock | |
| OUT_CKMLPR_LOCK | = lt_out_ckmlpr_lock | |
| OUT_LOCK_USER | = lt_out_lock_user | |
| EXCEPTIONS | ||
| NO_DATA_FOUND = 1 | ||
| INPUT_DATA_INCONSISTENT = 2 | ||
| LOCK_SYSTEM_FAILURE = 3 | ||
| INTERNAL_ERROR = 4 | ||
| NO_DATA_REQUESTED = 5 | ||
| . " CKMS_HEADER_READ_WITH_ITAB | ||
ABAP code using 7.40 inline data declarations to call FM CKMS_HEADER_READ_WITH_ITAB
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.| DATA(ld_refresh_buffer) | = ' '. | |||
| DATA(ld_enqueue_mbew) | = ' '. | |||
Search for further information about these or an SAP related objects