SAP Function Modules

CKMCD_MLCD_POSTING SAP Function module







CKMCD_MLCD_POSTING 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_POSTING into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CKMCD
Released Date: Not Released
Processing type: Start update immediately (start immed)
update module start immediate settings


Pattern for FM CKMCD_MLCD_POSTING - CKMCD MLCD POSTING





CALL FUNCTION 'CKMCD_MLCD_POSTING' "
* EXPORTING
*   i_i_am_price_determination =   " boole-boole
*   i_no_status_down_for_ccs = SPACE  " boole_d  Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
  TABLES
    it_mlcd =                   " mlcd
    it_status_down =            " ckmcd_t_status_down
    it_error_doc =              " ckmcd_t_error_doc
    .  "  CKMCD_MLCD_POSTING

ABAP code example for Function Module CKMCD_MLCD_POSTING





The ABAP code below is a full code listing to execute function module CKMCD_MLCD_POSTING 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).

DATA:
it_it_mlcd  TYPE STANDARD TABLE OF MLCD,"TABLES PARAM
wa_it_mlcd  LIKE LINE OF it_it_mlcd ,
it_it_status_down  TYPE STANDARD TABLE OF CKMCD_T_STATUS_DOWN,"TABLES PARAM
wa_it_status_down  LIKE LINE OF it_it_status_down ,
it_it_error_doc  TYPE STANDARD TABLE OF CKMCD_T_ERROR_DOC,"TABLES PARAM
wa_it_error_doc  LIKE LINE OF it_it_error_doc .


DATA(ld_i_i_am_price_determination) = some text here
DATA(ld_i_no_status_down_for_ccs) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_mlcd to it_it_mlcd.

"populate fields of struture and append to itab
append wa_it_status_down to it_it_status_down.

"populate fields of struture and append to itab
append wa_it_error_doc to it_it_error_doc. . CALL FUNCTION 'CKMCD_MLCD_POSTING' * EXPORTING * i_i_am_price_determination = ld_i_i_am_price_determination * i_no_status_down_for_ccs = ld_i_no_status_down_for_ccs TABLES it_mlcd = it_it_mlcd it_status_down = it_it_status_down it_error_doc = it_it_error_doc . " CKMCD_MLCD_POSTING
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_i_am_price_determination  TYPE BOOLE-BOOLE ,
it_it_mlcd  TYPE STANDARD TABLE OF MLCD ,
wa_it_mlcd  LIKE LINE OF it_it_mlcd,
ld_i_no_status_down_for_ccs  TYPE BOOLE_D ,
it_it_status_down  TYPE STANDARD TABLE OF CKMCD_T_STATUS_DOWN ,
wa_it_status_down  LIKE LINE OF it_it_status_down,
it_it_error_doc  TYPE STANDARD TABLE OF CKMCD_T_ERROR_DOC ,
wa_it_error_doc  LIKE LINE OF it_it_error_doc.


ld_i_i_am_price_determination = some text here

"populate fields of struture and append to itab
append wa_it_mlcd to it_it_mlcd.
ld_i_no_status_down_for_ccs = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_status_down to it_it_status_down.

"populate fields of struture and append to itab
append wa_it_error_doc to it_it_error_doc.

Contribute (Add Comments)

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_POSTING or its description.