SAP CLOI_MATERIAL_READ Function Module for Read Material for given Ranges-Tables









CLOI_MATERIAL_READ is a standard cloi material read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Material for given Ranges-Tables processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for cloi material read FM, simply by entering the name CLOI_MATERIAL_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: LOI1
Program Name: SAPLLOI1
Main Program: SAPLLOI1
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CLOI_MATERIAL_READ pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'CLOI_MATERIAL_READ'"Read Material for given Ranges-Tables
EXPORTING
* MAABC_IMP = "
* KZKRI_IMP = "
* GPMKZ_IMP = "
* SAUFT_IMP = "
* VERKZ_IMP = "
* KZKUP_IMP = "

TABLES
* DISPO_IMP = "
* DISMM_IMP = "
* MATNR_IMP = "
* WERKS_IMP = "
MATNR_EXP = "
WERKS_EXP = "
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLLOI1_001 User exit for planned orders
EXIT_SAPLLOI1_002 User exit for production orders
EXIT_SAPLLOI1_003 User exit for current stock/requirements lists
EXIT_SAPLLOI1_004 User exit for run schedule headers
EXIT_SAPLLOI1_005 User exit for BOMs
EXIT_SAPLLOI1_006 User exit for routings
EXIT_SAPLLOI1_007 User exit for work centers
EXIT_SAPLLOI1_008 User exit for hierarchies/resource networks
EXIT_SAPLLOI1_009 User exit for calendars

IMPORTING Parameters details for CLOI_MATERIAL_READ

MAABC_IMP -

Data type: MARC-MAABC
Optional: Yes
Call by Reference: No ( called with pass by value option)

KZKRI_IMP -

Data type: MARC-KZKRI
Optional: Yes
Call by Reference: No ( called with pass by value option)

GPMKZ_IMP -

Data type: MARC-GPMKZ
Optional: Yes
Call by Reference: No ( called with pass by value option)

SAUFT_IMP -

Data type: MARC-SAUFT
Optional: Yes
Call by Reference: No ( called with pass by value option)

VERKZ_IMP -

Data type: MARC-VERKZ
Optional: Yes
Call by Reference: No ( called with pass by value option)

KZKUP_IMP -

Data type: MARC-KZKUP
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CLOI_MATERIAL_READ

DISPO_IMP -

Data type: CLOIDISPO
Optional: Yes
Call by Reference: No ( called with pass by value option)

DISMM_IMP -

Data type: CLOIDISMM
Optional: Yes
Call by Reference: No ( called with pass by value option)

MATNR_IMP -

Data type: CLOIMATNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

WERKS_IMP -

Data type: CLOIWERKS
Optional: Yes
Call by Reference: No ( called with pass by value option)

MATNR_EXP -

Data type: CLOIMATNR
Optional: No
Call by Reference: No ( called with pass by value option)

WERKS_EXP -

Data type: CLOIWERKS
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CLOI_MATERIAL_READ Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_dispo_imp  TYPE STANDARD TABLE OF CLOIDISPO, "   
lv_maabc_imp  TYPE MARC-MAABC, "   
lt_dismm_imp  TYPE STANDARD TABLE OF CLOIDISMM, "   
lv_kzkri_imp  TYPE MARC-KZKRI, "   
lv_gpmkz_imp  TYPE MARC-GPMKZ, "   
lt_matnr_imp  TYPE STANDARD TABLE OF CLOIMATNR, "   
lv_sauft_imp  TYPE MARC-SAUFT, "   
lt_werks_imp  TYPE STANDARD TABLE OF CLOIWERKS, "   
lt_matnr_exp  TYPE STANDARD TABLE OF CLOIMATNR, "   
lv_verkz_imp  TYPE MARC-VERKZ, "   
lv_kzkup_imp  TYPE MARC-KZKUP, "   
lt_werks_exp  TYPE STANDARD TABLE OF CLOIWERKS. "   

  CALL FUNCTION 'CLOI_MATERIAL_READ'  "Read Material for given Ranges-Tables
    EXPORTING
         MAABC_IMP = lv_maabc_imp
         KZKRI_IMP = lv_kzkri_imp
         GPMKZ_IMP = lv_gpmkz_imp
         SAUFT_IMP = lv_sauft_imp
         VERKZ_IMP = lv_verkz_imp
         KZKUP_IMP = lv_kzkup_imp
    TABLES
         DISPO_IMP = lt_dispo_imp
         DISMM_IMP = lt_dismm_imp
         MATNR_IMP = lt_matnr_imp
         WERKS_IMP = lt_werks_imp
         MATNR_EXP = lt_matnr_exp
         WERKS_EXP = lt_werks_exp
. " CLOI_MATERIAL_READ




ABAP code using 7.40 inline data declarations to call FM CLOI_MATERIAL_READ

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single MAABC FROM MARC INTO @DATA(ld_maabc_imp).
 
 
"SELECT single KZKRI FROM MARC INTO @DATA(ld_kzkri_imp).
 
"SELECT single GPMKZ FROM MARC INTO @DATA(ld_gpmkz_imp).
 
 
"SELECT single SAUFT FROM MARC INTO @DATA(ld_sauft_imp).
 
 
 
"SELECT single VERKZ FROM MARC INTO @DATA(ld_verkz_imp).
 
"SELECT single KZKUP FROM MARC INTO @DATA(ld_kzkup_imp).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!