SAP ISH_MAT_CONS_GET_QUANTITY Function Module for
ISH_MAT_CONS_GET_QUANTITY is a standard ish mat cons get quantity SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ish mat cons get quantity FM, simply by entering the name ISH_MAT_CONS_GET_QUANTITY into the relevant SAP transaction such as SE37 or SE38.
Function Group: NMM6
Program Name: SAPLNMM6
Main Program: SAPLNMM6
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISH_MAT_CONS_GET_QUANTITY 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 'ISH_MAT_CONS_GET_QUANTITY'".
EXPORTING
I_EINRI = "
I_FALNR = "
I_CONSUMED_MATERIAL = "
* I_REFER_TO_BASE_UNIT = ' ' "
IMPORTING
E_QUANTITY = "
E_UNIT = "
EXCEPTIONS
NMATV_NOT_FOUND = 1 NO_MATERIAL_MASTER = 2 UNIT_CONVERSION_ERROR = 3
IMPORTING Parameters details for ISH_MAT_CONS_GET_QUANTITY
I_EINRI -
Data type: EINRIOptional: No
Call by Reference: No ( called with pass by value option)
I_FALNR -
Data type: FALNROptional: No
Call by Reference: No ( called with pass by value option)
I_CONSUMED_MATERIAL -
Data type: NMATV-LNRLMOptional: No
Call by Reference: No ( called with pass by value option)
I_REFER_TO_BASE_UNIT -
Data type: ISH_ON_OFFDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_MAT_CONS_GET_QUANTITY
E_QUANTITY -
Data type: ISH_MENGEOptional: No
Call by Reference: No ( called with pass by value option)
E_UNIT -
Data type: ISH_MEINSOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NMATV_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MATERIAL_MASTER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNIT_CONVERSION_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_MAT_CONS_GET_QUANTITY 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_einri | TYPE EINRI, " | |||
| lv_e_quantity | TYPE ISH_MENGE, " | |||
| lv_nmatv_not_found | TYPE ISH_MENGE, " | |||
| lv_e_unit | TYPE ISH_MEINS, " | |||
| lv_i_falnr | TYPE FALNR, " | |||
| lv_no_material_master | TYPE FALNR, " | |||
| lv_i_consumed_material | TYPE NMATV-LNRLM, " | |||
| lv_unit_conversion_error | TYPE NMATV, " | |||
| lv_i_refer_to_base_unit | TYPE ISH_ON_OFF. " ' ' |
|   CALL FUNCTION 'ISH_MAT_CONS_GET_QUANTITY' " |
| EXPORTING | ||
| I_EINRI | = lv_i_einri | |
| I_FALNR | = lv_i_falnr | |
| I_CONSUMED_MATERIAL | = lv_i_consumed_material | |
| I_REFER_TO_BASE_UNIT | = lv_i_refer_to_base_unit | |
| IMPORTING | ||
| E_QUANTITY | = lv_e_quantity | |
| E_UNIT | = lv_e_unit | |
| EXCEPTIONS | ||
| NMATV_NOT_FOUND = 1 | ||
| NO_MATERIAL_MASTER = 2 | ||
| UNIT_CONVERSION_ERROR = 3 | ||
| . " ISH_MAT_CONS_GET_QUANTITY | ||
ABAP code using 7.40 inline data declarations to call FM ISH_MAT_CONS_GET_QUANTITY
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 LNRLM FROM NMATV INTO @DATA(ld_i_consumed_material). | ||||
| DATA(ld_i_refer_to_base_unit) | = ' '. | |||
Search for further information about these or an SAP related objects