SAP MATERIAL_MOVE_IN Function Module for NOTRANSL: Equipment ausgebaut und auf Lager gebucht
MATERIAL_MOVE_IN is a standard material move in 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: Equipment ausgebaut und auf Lager gebucht 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 material move in FM, simply by entering the name MATERIAL_MOVE_IN into the relevant SAP transaction such as SE37 or SE38.
Function Group: IPW5
Program Name: SAPLIPW5
Main Program: SAPLIPW5
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MATERIAL_MOVE_IN 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 'MATERIAL_MOVE_IN'"NOTRANSL: Equipment ausgebaut und auf Lager gebucht.
EXPORTING
* IV_SIMULATION = "Checkbox
* IS_IPW4_COM = "CCM : Component Exchange Transaction I/O data
* IS_GOODSMVT_HEADER = "BAPI Communication Structure: Material Document Header Data
* IS_GOODSMVT_ITEM = "BAPI Communication Structure: Create Material Document Item
* IS_GOODSMVT_CODE = "MMIM: New Key Assignment GM_CODE to Transaction of Inv. Mgmt
IMPORTING
ES_MATERIALDOCUMENT = "Number of Material Document
ES_MATDOCUMENTYEAR = "Material Document Year
CHANGING
* CT_LOG_HANDLE = "Table type for notification long text Handle Table
* CS_IPW4_COM = "CCM : Component Exchange Transaction I/O data
* CS_GOODSMVT_HEADER = "BAPI Communication Structure: Material Document Header Data
* CS_GOODSMVT_ITEM = "BAPI Communication Structure: Create Material Document Item
* CS_GOODSMVT_CODE = "MMIM: New Key Assignment GM_CODE to Transaction of Inv. Mgmt
* CS_BOM_ITEM = "
* CS_HEQUI = "Generated Table for View V_EQUI
TABLES
* IT_GOODSMVT_SERIALNR = "BAPI Communication Structure: Create Mat. Doc., Serial No.
EXCEPTIONS
INTERNAL_ERROR = 1 CHK_ERROR_MOVE_IN = 2
IMPORTING Parameters details for MATERIAL_MOVE_IN
IV_SIMULATION - Checkbox
Data type: XFELDOptional: Yes
Call by Reference: Yes
IS_IPW4_COM - CCM : Component Exchange Transaction I/O data
Data type: IPW4_COMOptional: Yes
Call by Reference: Yes
IS_GOODSMVT_HEADER - BAPI Communication Structure: Material Document Header Data
Data type: BAPI2017_GM_HEAD_01Optional: Yes
Call by Reference: Yes
IS_GOODSMVT_ITEM - BAPI Communication Structure: Create Material Document Item
Data type: BAPI2017_GM_ITEM_CREATEOptional: Yes
Call by Reference: Yes
IS_GOODSMVT_CODE - MMIM: New Key Assignment GM_CODE to Transaction of Inv. Mgmt
Data type: BAPI2017_GM_CODEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for MATERIAL_MOVE_IN
ES_MATERIALDOCUMENT - Number of Material Document
Data type: BAPI2017_GM_HEAD_RET-MAT_DOCOptional: No
Call by Reference: Yes
ES_MATDOCUMENTYEAR - Material Document Year
Data type: BAPI2017_GM_HEAD_RET-DOC_YEAROptional: No
Call by Reference: Yes
CHANGING Parameters details for MATERIAL_MOVE_IN
CT_LOG_HANDLE - Table type for notification long text Handle Table
Data type: BAL_T_LOGHOptional: Yes
Call by Reference: Yes
CS_IPW4_COM - CCM : Component Exchange Transaction I/O data
Data type: IPW4_COMOptional: Yes
Call by Reference: Yes
CS_GOODSMVT_HEADER - BAPI Communication Structure: Material Document Header Data
Data type: BAPI2017_GM_HEAD_01Optional: Yes
Call by Reference: Yes
CS_GOODSMVT_ITEM - BAPI Communication Structure: Create Material Document Item
Data type: BAPI2017_GM_ITEM_CREATEOptional: Yes
Call by Reference: Yes
CS_GOODSMVT_CODE - MMIM: New Key Assignment GM_CODE to Transaction of Inv. Mgmt
Data type: BAPI2017_GM_CODEOptional: Yes
Call by Reference: Yes
CS_BOM_ITEM -
Data type: STPOBOptional: Yes
Call by Reference: Yes
CS_HEQUI - Generated Table for View V_EQUI
Data type: V_EQUIOptional: Yes
Call by Reference: Yes
TABLES Parameters details for MATERIAL_MOVE_IN
IT_GOODSMVT_SERIALNR - BAPI Communication Structure: Create Mat. Doc., Serial No.
Data type: BAPI2017_GM_SERIALNUMBEROptional: Yes
Call by Reference: Yes
EXCEPTIONS details
INTERNAL_ERROR - Internal error
Data type:Optional: No
Call by Reference: Yes
CHK_ERROR_MOVE_IN - error message(s) ocurred while running move inside check
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MATERIAL_MOVE_IN 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_ct_log_handle | TYPE BAL_T_LOGH, " | |||
| lv_iv_simulation | TYPE XFELD, " | |||
| lv_internal_error | TYPE XFELD, " | |||
| lv_es_materialdocument | TYPE BAPI2017_GM_HEAD_RET-MAT_DOC, " | |||
| lt_it_goodsmvt_serialnr | TYPE STANDARD TABLE OF BAPI2017_GM_SERIALNUMBER, " | |||
| lv_cs_ipw4_com | TYPE IPW4_COM, " | |||
| lv_is_ipw4_com | TYPE IPW4_COM, " | |||
| lv_chk_error_move_in | TYPE IPW4_COM, " | |||
| lv_es_matdocumentyear | TYPE BAPI2017_GM_HEAD_RET-DOC_YEAR, " | |||
| lv_cs_goodsmvt_header | TYPE BAPI2017_GM_HEAD_01, " | |||
| lv_is_goodsmvt_header | TYPE BAPI2017_GM_HEAD_01, " | |||
| lv_cs_goodsmvt_item | TYPE BAPI2017_GM_ITEM_CREATE, " | |||
| lv_is_goodsmvt_item | TYPE BAPI2017_GM_ITEM_CREATE, " | |||
| lv_cs_goodsmvt_code | TYPE BAPI2017_GM_CODE, " | |||
| lv_is_goodsmvt_code | TYPE BAPI2017_GM_CODE, " | |||
| lv_cs_bom_item | TYPE STPOB, " | |||
| lv_cs_hequi | TYPE V_EQUI. " |
|   CALL FUNCTION 'MATERIAL_MOVE_IN' "NOTRANSL: Equipment ausgebaut und auf Lager gebucht |
| EXPORTING | ||
| IV_SIMULATION | = lv_iv_simulation | |
| IS_IPW4_COM | = lv_is_ipw4_com | |
| IS_GOODSMVT_HEADER | = lv_is_goodsmvt_header | |
| IS_GOODSMVT_ITEM | = lv_is_goodsmvt_item | |
| IS_GOODSMVT_CODE | = lv_is_goodsmvt_code | |
| IMPORTING | ||
| ES_MATERIALDOCUMENT | = lv_es_materialdocument | |
| ES_MATDOCUMENTYEAR | = lv_es_matdocumentyear | |
| CHANGING | ||
| CT_LOG_HANDLE | = lv_ct_log_handle | |
| CS_IPW4_COM | = lv_cs_ipw4_com | |
| CS_GOODSMVT_HEADER | = lv_cs_goodsmvt_header | |
| CS_GOODSMVT_ITEM | = lv_cs_goodsmvt_item | |
| CS_GOODSMVT_CODE | = lv_cs_goodsmvt_code | |
| CS_BOM_ITEM | = lv_cs_bom_item | |
| CS_HEQUI | = lv_cs_hequi | |
| TABLES | ||
| IT_GOODSMVT_SERIALNR | = lt_it_goodsmvt_serialnr | |
| EXCEPTIONS | ||
| INTERNAL_ERROR = 1 | ||
| CHK_ERROR_MOVE_IN = 2 | ||
| . " MATERIAL_MOVE_IN | ||
ABAP code using 7.40 inline data declarations to call FM MATERIAL_MOVE_IN
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 MAT_DOC FROM BAPI2017_GM_HEAD_RET INTO @DATA(ld_es_materialdocument). | ||||
| "SELECT single DOC_YEAR FROM BAPI2017_GM_HEAD_RET INTO @DATA(ld_es_matdocumentyear). | ||||
Search for further information about these or an SAP related objects