SAP Function Modules

CKMMC_MANCHANG_DOCUMENT_CREATE SAP Function module







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

Associated Function Group: CKMMC
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CKMMC_MANCHANG_DOCUMENT_CREATE - CKMMC MANCHANG DOCUMENT CREATE





CALL FUNCTION 'CKMMC_MANCHANG_DOCUMENT_CREATE' "
  EXPORTING
    i_vgart =                   " mlhd-vgart    Material Ledger: Transaction Type
*   i_revaluate = ' '           " boole_d
    is_mlkey =                  " mlkey         Material Ledger Data Display: Selection Fields
    it_ckmlhd =                 " cki_t_ckmlhd  Standard Table Type for ML Header Record (DB: CKMLHD)
    it_ckmlpp_old =             " cki_t_ckmlpp  Material Ledger Period Records (DB: CKMLPP)
    it_ckmlpp_new =             " cki_t_ckmlpp  Material Ledger Period Records (DB: CKMLPP)
    it_ckmlcr_old =             " cki_t_ckmlcr  Material Ledger: Period Totals Records Values
    it_ckmlcr_new =             " cki_t_ckmlcr  Material Ledger: Period Totals Records Values
    it_ckmlkeph_old =           " mlccs_t_keph  Table Type CKMLKEPH (Sorted)
    it_ckmlkeph_new =           " mlccs_t_keph  Table Type CKMLKEPH (Sorted)
    .  "  CKMMC_MANCHANG_DOCUMENT_CREATE

ABAP code example for Function Module CKMMC_MANCHANG_DOCUMENT_CREATE





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

 

SELECT single VGART
FROM MLHD
INTO @DATA(ld_i_vgart).

DATA(ld_i_revaluate) = 'Check type of data required'.
DATA(ld_is_mlkey) = 'Check type of data required'.
DATA(ld_it_ckmlhd) = 'Check type of data required'.
DATA(ld_it_ckmlpp_old) = 'Check type of data required'.
DATA(ld_it_ckmlpp_new) = 'Check type of data required'.
DATA(ld_it_ckmlcr_old) = 'Check type of data required'.
DATA(ld_it_ckmlcr_new) = 'Check type of data required'.
DATA(ld_it_ckmlkeph_old) = 'Check type of data required'.
DATA(ld_it_ckmlkeph_new) = 'Check type of data required'. . CALL FUNCTION 'CKMMC_MANCHANG_DOCUMENT_CREATE' EXPORTING i_vgart = ld_i_vgart * i_revaluate = ld_i_revaluate is_mlkey = ld_is_mlkey it_ckmlhd = ld_it_ckmlhd it_ckmlpp_old = ld_it_ckmlpp_old it_ckmlpp_new = ld_it_ckmlpp_new it_ckmlcr_old = ld_it_ckmlcr_old it_ckmlcr_new = ld_it_ckmlcr_new it_ckmlkeph_old = ld_it_ckmlkeph_old it_ckmlkeph_new = ld_it_ckmlkeph_new . " CKMMC_MANCHANG_DOCUMENT_CREATE
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_vgart  TYPE MLHD-VGART ,
ld_i_revaluate  TYPE BOOLE_D ,
ld_is_mlkey  TYPE MLKEY ,
ld_it_ckmlhd  TYPE CKI_T_CKMLHD ,
ld_it_ckmlpp_old  TYPE CKI_T_CKMLPP ,
ld_it_ckmlpp_new  TYPE CKI_T_CKMLPP ,
ld_it_ckmlcr_old  TYPE CKI_T_CKMLCR ,
ld_it_ckmlcr_new  TYPE CKI_T_CKMLCR ,
ld_it_ckmlkeph_old  TYPE MLCCS_T_KEPH ,
ld_it_ckmlkeph_new  TYPE MLCCS_T_KEPH .


SELECT single VGART
FROM MLHD
INTO ld_i_vgart.

ld_i_revaluate = 'Check type of data required'.
ld_is_mlkey = 'Check type of data required'.
ld_it_ckmlhd = 'Check type of data required'.
ld_it_ckmlpp_old = 'Check type of data required'.
ld_it_ckmlpp_new = 'Check type of data required'.
ld_it_ckmlcr_old = 'Check type of data required'.
ld_it_ckmlcr_new = 'Check type of data required'.
ld_it_ckmlkeph_old = 'Check type of data required'.
ld_it_ckmlkeph_new = 'Check type of data required'.

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