SAP INVENTORY_DIFFERENCE_CHECK Function Module for NOTRANSL: Vergleicht 2 interne Tabellen auf gleiche und verschiedene
INVENTORY_DIFFERENCE_CHECK is a standard inventory difference check 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: Vergleicht 2 interne Tabellen auf gleiche und verschiedene 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 inventory difference check FM, simply by entering the name INVENTORY_DIFFERENCE_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: IPW2
Program Name: SAPLIPW2
Main Program: SAPLIPW2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function INVENTORY_DIFFERENCE_CHECK 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 'INVENTORY_DIFFERENCE_CHECK'"NOTRANSL: Vergleicht 2 interne Tabellen auf gleiche und verschiedene.
EXPORTING
ITAB_IN_BOOKED = "Inventarized Serial Numbers
ITAB_IN_COUNT = "Inventarized Serial Numbers
IMPORTING
ITAB_OUT_BOOK_SERINV = "Inventarized Serial Numbers
ITAB_OUT_EQUAL_SERINV = "Inventarized Serial Numbers
ITAB_OUT_COUNT_SERINV = "Inventarized Serial Numbers
IMPORTING Parameters details for INVENTORY_DIFFERENCE_CHECK
ITAB_IN_BOOKED - Inventarized Serial Numbers
Data type: REQINV_TOptional: No
Call by Reference: No ( called with pass by value option)
ITAB_IN_COUNT - Inventarized Serial Numbers
Data type: REQINV_TOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for INVENTORY_DIFFERENCE_CHECK
ITAB_OUT_BOOK_SERINV - Inventarized Serial Numbers
Data type: REQINV_TOptional: No
Call by Reference: Yes
ITAB_OUT_EQUAL_SERINV - Inventarized Serial Numbers
Data type: REQINV_TOptional: No
Call by Reference: Yes
ITAB_OUT_COUNT_SERINV - Inventarized Serial Numbers
Data type: REQINV_TOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for INVENTORY_DIFFERENCE_CHECK 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_itab_in_booked | TYPE REQINV_T, " | |||
| lv_itab_out_book_serinv | TYPE REQINV_T, " | |||
| lv_itab_in_count | TYPE REQINV_T, " | |||
| lv_itab_out_equal_serinv | TYPE REQINV_T, " | |||
| lv_itab_out_count_serinv | TYPE REQINV_T. " |
|   CALL FUNCTION 'INVENTORY_DIFFERENCE_CHECK' "NOTRANSL: Vergleicht 2 interne Tabellen auf gleiche und verschiedene |
| EXPORTING | ||
| ITAB_IN_BOOKED | = lv_itab_in_booked | |
| ITAB_IN_COUNT | = lv_itab_in_count | |
| IMPORTING | ||
| ITAB_OUT_BOOK_SERINV | = lv_itab_out_book_serinv | |
| ITAB_OUT_EQUAL_SERINV | = lv_itab_out_equal_serinv | |
| ITAB_OUT_COUNT_SERINV | = lv_itab_out_count_serinv | |
| . " INVENTORY_DIFFERENCE_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM INVENTORY_DIFFERENCE_CHECK
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.Search for further information about these or an SAP related objects