SAP MILL_CL_FILL_IMPORT_OBJECTS Function Module for NOTRANSL: Füllen der Importobjekte für Objektsuche
MILL_CL_FILL_IMPORT_OBJECTS is a standard mill cl fill import objects SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Füllen der Importobjekte für Objektsuche 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 mill cl fill import objects FM, simply by entering the name MILL_CL_FILL_IMPORT_OBJECTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: MILLCL
Program Name: SAPLMILLCL
Main Program: SAPLMILLCL
Appliation area: L
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MILL_CL_FILL_IMPORT_OBJECTS 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 'MILL_CL_FILL_IMPORT_OBJECTS'"NOTRANSL: Füllen der Importobjekte für Objektsuche.
EXPORTING
I_OBTAB = "Name of database table for object
* I_CLASSTYPE = "Class Type
* I_BYPASS_BUFFER = ' ' "Generic Type
TABLES
IT_MATNR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
IT_WERKS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IT_CHARG = "DE-EN-LANG-SWITCH-NO-TRANSLATION
ET_OBJECTS = "Object Table with Instance Field (CUOBJ) Added, Long Text
EXCEPTIONS
NO_OBJECTS = 1
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_SAPLMILLCL_001
EXIT_SAPLMILLCL_002
IMPORTING Parameters details for MILL_CL_FILL_IMPORT_OBJECTS
I_OBTAB - Name of database table for object
Data type: CLOBJ-OBTABOptional: No
Call by Reference: No ( called with pass by value option)
I_CLASSTYPE - Class Type
Data type: TCLA-KLARTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BYPASS_BUFFER - Generic Type
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MILL_CL_FILL_IMPORT_OBJECTS
IT_MATNR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
IT_WERKS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IT_CHARG - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: Yes
ET_OBJECTS - Object Table with Instance Field (CUOBJ) Added, Long Text
Data type: MILL_CLOBJ2Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_OBJECTS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MILL_CL_FILL_IMPORT_OBJECTS 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: | ||||
| lv_i_obtab | TYPE CLOBJ-OBTAB, " | |||
| lt_it_matnr | TYPE STANDARD TABLE OF CLOBJ, " | |||
| lv_no_objects | TYPE CLOBJ, " | |||
| lt_it_werks | TYPE STANDARD TABLE OF CLOBJ, " | |||
| lv_i_classtype | TYPE TCLA-KLART, " | |||
| lt_it_charg | TYPE STANDARD TABLE OF TCLA, " | |||
| lv_i_bypass_buffer | TYPE C, " SPACE | |||
| lt_et_objects | TYPE STANDARD TABLE OF MILL_CLOBJ2. " |
|   CALL FUNCTION 'MILL_CL_FILL_IMPORT_OBJECTS' "NOTRANSL: Füllen der Importobjekte für Objektsuche |
| EXPORTING | ||
| I_OBTAB | = lv_i_obtab | |
| I_CLASSTYPE | = lv_i_classtype | |
| I_BYPASS_BUFFER | = lv_i_bypass_buffer | |
| TABLES | ||
| IT_MATNR | = lt_it_matnr | |
| IT_WERKS | = lt_it_werks | |
| IT_CHARG | = lt_it_charg | |
| ET_OBJECTS | = lt_et_objects | |
| EXCEPTIONS | ||
| NO_OBJECTS = 1 | ||
| . " MILL_CL_FILL_IMPORT_OBJECTS | ||
ABAP code using 7.40 inline data declarations to call FM MILL_CL_FILL_IMPORT_OBJECTS
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 OBTAB FROM CLOBJ INTO @DATA(ld_i_obtab). | ||||
| "SELECT single KLART FROM TCLA INTO @DATA(ld_i_classtype). | ||||
| DATA(ld_i_bypass_buffer) | = ' '. | |||
Search for further information about these or an SAP related objects