SAP Function Modules

CKML_MGV_PROCESSES_READ SAP Function module







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

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


Pattern for FM CKML_MGV_PROCESSES_READ - CKML MGV PROCESSES READ





CALL FUNCTION 'CKML_MGV_PROCESSES_READ' "
  EXPORTING
    iv_werks =                  " ckmlmv001-werks  Plant of the material
    iv_matnr =                  " ckmlmv001-matnr  Material
*   iv_btyp = 'BF'              " ckmlmv001-btyp
*   iv_nfelder =                " ckmli_ndef_felder  InspChar.Field
*   iv_pkosa_status = SPACE     " c
*   iv_plwrk =                  " ckmlmv001-plwrk_nd  Planning Plant for Order
*   iv_check_pp_data = SPACE    " c
  IMPORTING
    et_process_tbl =            " ckml_t_process
  EXCEPTIONS
    WRONG_CHARACTERISTICS = 1   "
    RULE_NOT_FOUND = 2          "
    MULTIPLE_PKOSA_FOUND = 3    "
    .  "  CKML_MGV_PROCESSES_READ

ABAP code example for Function Module CKML_MGV_PROCESSES_READ





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

DATA:
ld_et_process_tbl  TYPE CKML_T_PROCESS .


SELECT single WERKS
FROM CKMLMV001
INTO @DATA(ld_iv_werks).


SELECT single MATNR
FROM CKMLMV001
INTO @DATA(ld_iv_matnr).


SELECT single BTYP
FROM CKMLMV001
INTO @DATA(ld_iv_btyp).

DATA(ld_iv_nfelder) = 'Check type of data required'.
DATA(ld_iv_pkosa_status) = 'Check type of data required'.

SELECT single PLWRK_ND
FROM CKMLMV001
INTO @DATA(ld_iv_plwrk).

DATA(ld_iv_check_pp_data) = 'Check type of data required'. . CALL FUNCTION 'CKML_MGV_PROCESSES_READ' EXPORTING iv_werks = ld_iv_werks iv_matnr = ld_iv_matnr * iv_btyp = ld_iv_btyp * iv_nfelder = ld_iv_nfelder * iv_pkosa_status = ld_iv_pkosa_status * iv_plwrk = ld_iv_plwrk * iv_check_pp_data = ld_iv_check_pp_data IMPORTING et_process_tbl = ld_et_process_tbl EXCEPTIONS WRONG_CHARACTERISTICS = 1 RULE_NOT_FOUND = 2 MULTIPLE_PKOSA_FOUND = 3 . " CKML_MGV_PROCESSES_READ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_et_process_tbl  TYPE CKML_T_PROCESS ,
ld_iv_werks  TYPE CKMLMV001-WERKS ,
ld_iv_matnr  TYPE CKMLMV001-MATNR ,
ld_iv_btyp  TYPE CKMLMV001-BTYP ,
ld_iv_nfelder  TYPE CKMLI_NDEF_FELDER ,
ld_iv_pkosa_status  TYPE C ,
ld_iv_plwrk  TYPE CKMLMV001-PLWRK_ND ,
ld_iv_check_pp_data  TYPE C .


SELECT single WERKS
FROM CKMLMV001
INTO ld_iv_werks.


SELECT single MATNR
FROM CKMLMV001
INTO ld_iv_matnr.


SELECT single BTYP
FROM CKMLMV001
INTO ld_iv_btyp.

ld_iv_nfelder = 'Check type of data required'.
ld_iv_pkosa_status = 'Check type of data required'.

SELECT single PLWRK_ND
FROM CKMLMV001
INTO ld_iv_plwrk.

ld_iv_check_pp_data = '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 CKML_MGV_PROCESSES_READ or its description.