CKMCD_MLCD_READ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name CKMCD_MLCD_READ into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CKMCD
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'CKMCD_MLCD_READ' "
EXPORTING
i_from_bdatj = " ckmlpp-bdatj
i_from_poper = " ckmlpp-poper
* i_to_bdatj = " ckmlpp-bdatj
* i_to_poper = " ckmlpp-poper Posting Period
* i_untper = " ckmlpp-untper Value Structure Type
* i_run_id = " ckml_run_id Number of Costing Runs for Material Ledger
* i_no_buffer = " boole_d
* i_refresh_buffer = " boole_d
* i_online = 'X' " boole_d
* i_no_mlcd_create = " boole_d
TABLES
it_kalnr = " ckmv0_matobj_tbl
ot_mlcd = " mlcd
* ot_mlcd_not_alloc = " mlcd
EXCEPTIONS
DATA_ERROR = 1 "
. " CKMCD_MLCD_READ
The ABAP code below is a full code listing to execute function module CKMCD_MLCD_READ including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| it_it_kalnr | TYPE STANDARD TABLE OF CKMV0_MATOBJ_TBL,"TABLES PARAM |
| wa_it_kalnr | LIKE LINE OF it_it_kalnr , |
| it_ot_mlcd | TYPE STANDARD TABLE OF MLCD,"TABLES PARAM |
| wa_ot_mlcd | LIKE LINE OF it_ot_mlcd , |
| it_ot_mlcd_not_alloc | TYPE STANDARD TABLE OF MLCD,"TABLES PARAM |
| wa_ot_mlcd_not_alloc | LIKE LINE OF it_ot_mlcd_not_alloc . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_i_from_bdatj | TYPE CKMLPP-BDATJ , |
| it_it_kalnr | TYPE STANDARD TABLE OF CKMV0_MATOBJ_TBL , |
| wa_it_kalnr | LIKE LINE OF it_it_kalnr, |
| ld_i_from_poper | TYPE CKMLPP-POPER , |
| it_ot_mlcd | TYPE STANDARD TABLE OF MLCD , |
| wa_ot_mlcd | LIKE LINE OF it_ot_mlcd, |
| ld_i_to_bdatj | TYPE CKMLPP-BDATJ , |
| it_ot_mlcd_not_alloc | TYPE STANDARD TABLE OF MLCD , |
| wa_ot_mlcd_not_alloc | LIKE LINE OF it_ot_mlcd_not_alloc, |
| ld_i_to_poper | TYPE CKMLPP-POPER , |
| ld_i_untper | TYPE CKMLPP-UNTPER , |
| ld_i_run_id | TYPE CKML_RUN_ID , |
| ld_i_no_buffer | TYPE BOOLE_D , |
| ld_i_refresh_buffer | TYPE BOOLE_D , |
| ld_i_online | TYPE BOOLE_D , |
| ld_i_no_mlcd_create | TYPE BOOLE_D . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CKMCD_MLCD_READ or its description.