SAP Function Modules

CKMMAT_ML_DATA_READ SAP Function module







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

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


Pattern for FM CKMMAT_ML_DATA_READ - CKMMAT ML DATA READ





CALL FUNCTION 'CKMMAT_ML_DATA_READ' "
  EXPORTING
    i_matnr =                   " mbew-matnr
    i_bwkey =                   " mbew-bwkey
    i_bwtar =                   " mbew-bwtar
    i_bukrs =                   " marv-bukrs
    i_aktyp =                   " t130m-aktyp
    i_neuflag =                 " t130f-kzref
*   i_kzrfb = ' '               " mtcom-kzrfb
    .  "  CKMMAT_ML_DATA_READ

ABAP code example for Function Module CKMMAT_ML_DATA_READ





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

 

SELECT single MATNR
FROM MBEW
INTO @DATA(ld_i_matnr).


SELECT single BWKEY
FROM MBEW
INTO @DATA(ld_i_bwkey).


SELECT single BWTAR
FROM MBEW
INTO @DATA(ld_i_bwtar).


SELECT single BUKRS
FROM MARV
INTO @DATA(ld_i_bukrs).


SELECT single AKTYP
FROM T130M
INTO @DATA(ld_i_aktyp).


SELECT single KZREF
FROM T130F
INTO @DATA(ld_i_neuflag).


DATA(ld_i_kzrfb) = some text here . CALL FUNCTION 'CKMMAT_ML_DATA_READ' EXPORTING i_matnr = ld_i_matnr i_bwkey = ld_i_bwkey i_bwtar = ld_i_bwtar i_bukrs = ld_i_bukrs i_aktyp = ld_i_aktyp i_neuflag = ld_i_neuflag * i_kzrfb = ld_i_kzrfb . " CKMMAT_ML_DATA_READ
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_matnr  TYPE MBEW-MATNR ,
ld_i_bwkey  TYPE MBEW-BWKEY ,
ld_i_bwtar  TYPE MBEW-BWTAR ,
ld_i_bukrs  TYPE MARV-BUKRS ,
ld_i_aktyp  TYPE T130M-AKTYP ,
ld_i_neuflag  TYPE T130F-KZREF ,
ld_i_kzrfb  TYPE MTCOM-KZRFB .


SELECT single MATNR
FROM MBEW
INTO ld_i_matnr.


SELECT single BWKEY
FROM MBEW
INTO ld_i_bwkey.


SELECT single BWTAR
FROM MBEW
INTO ld_i_bwtar.


SELECT single BUKRS
FROM MARV
INTO ld_i_bukrs.


SELECT single AKTYP
FROM T130M
INTO ld_i_aktyp.


SELECT single KZREF
FROM T130F
INTO ld_i_neuflag.


ld_i_kzrfb = some text here

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