SAP J_1I7_USEREXIT_UNIT_MULTIPLE Function Module for user exit for changing GR and excise invoice unit in J1IG
J_1I7_USEREXIT_UNIT_MULTIPLE is a standard j 1i7 userexit unit multiple SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for user exit for changing GR and excise invoice unit in J1IG 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 j 1i7 userexit unit multiple FM, simply by entering the name J_1I7_USEREXIT_UNIT_MULTIPLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: J1I7
Program Name: SAPLJ1I7
Main Program: SAPLJ1I7
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_1I7_USEREXIT_UNIT_MULTIPLE 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 'J_1I7_USEREXIT_UNIT_MULTIPLE'"user exit for changing GR and excise invoice unit in J1IG.
CHANGING
* E_MENGE = "Quantity mentioned in the excise invoice
* E_MENGA = "Quantity of Goods Received
* E_MEINS = "Unit of Measure
* E_MENGR_UOM = "Base Unit of Measure
* E_MENGE_ITEM = "Quantity mentioned in the excise invoice
* E_MEINS_ITEM = "Unit of Measure
TABLES
* X_MSEG = "Document Segment: Material
CHANGING Parameters details for J_1I7_USEREXIT_UNIT_MULTIPLE
E_MENGE - Quantity mentioned in the excise invoice
Data type: J_1IEXCDTL-MENGEOptional: Yes
Call by Reference: Yes
E_MENGA - Quantity of Goods Received
Data type: J_1IEXCDTL-MENGAOptional: Yes
Call by Reference: Yes
E_MEINS - Unit of Measure
Data type: J_1IEXCDTL-MEINSOptional: Yes
Call by Reference: Yes
E_MENGR_UOM - Base Unit of Measure
Data type: J_1IEXCDTL-MENGR_UOMOptional: Yes
Call by Reference: Yes
E_MENGE_ITEM - Quantity mentioned in the excise invoice
Data type: J_1IEXCDTL-MENGEOptional: Yes
Call by Reference: Yes
E_MEINS_ITEM - Unit of Measure
Data type: J_1IEXCDTL-MEINSOptional: Yes
Call by Reference: Yes
TABLES Parameters details for J_1I7_USEREXIT_UNIT_MULTIPLE
X_MSEG - Document Segment: Material
Data type: MSEGOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for J_1I7_USEREXIT_UNIT_MULTIPLE 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_x_mseg | TYPE STANDARD TABLE OF MSEG, " | |||
| lv_e_menge | TYPE J_1IEXCDTL-MENGE, " | |||
| lv_e_menga | TYPE J_1IEXCDTL-MENGA, " | |||
| lv_e_meins | TYPE J_1IEXCDTL-MEINS, " | |||
| lv_e_mengr_uom | TYPE J_1IEXCDTL-MENGR_UOM, " | |||
| lv_e_menge_item | TYPE J_1IEXCDTL-MENGE, " | |||
| lv_e_meins_item | TYPE J_1IEXCDTL-MEINS. " |
|   CALL FUNCTION 'J_1I7_USEREXIT_UNIT_MULTIPLE' "user exit for changing GR and excise invoice unit in J1IG |
| CHANGING | ||
| E_MENGE | = lv_e_menge | |
| E_MENGA | = lv_e_menga | |
| E_MEINS | = lv_e_meins | |
| E_MENGR_UOM | = lv_e_mengr_uom | |
| E_MENGE_ITEM | = lv_e_menge_item | |
| E_MEINS_ITEM | = lv_e_meins_item | |
| TABLES | ||
| X_MSEG | = lt_x_mseg | |
| . " J_1I7_USEREXIT_UNIT_MULTIPLE | ||
ABAP code using 7.40 inline data declarations to call FM J_1I7_USEREXIT_UNIT_MULTIPLE
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 MENGE FROM J_1IEXCDTL INTO @DATA(ld_e_menge). | ||||
| "SELECT single MENGA FROM J_1IEXCDTL INTO @DATA(ld_e_menga). | ||||
| "SELECT single MEINS FROM J_1IEXCDTL INTO @DATA(ld_e_meins). | ||||
| "SELECT single MENGR_UOM FROM J_1IEXCDTL INTO @DATA(ld_e_mengr_uom). | ||||
| "SELECT single MENGE FROM J_1IEXCDTL INTO @DATA(ld_e_menge_item). | ||||
| "SELECT single MEINS FROM J_1IEXCDTL INTO @DATA(ld_e_meins_item). | ||||
Search for further information about these or an SAP related objects