SAP ISH_MM_MATERIAL_SEARCH Function Module for IS-H MM: Select Materials from Material Catalog acc. to Search Variant









ISH_MM_MATERIAL_SEARCH is a standard ish mm material search SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-H MM: Select Materials from Material Catalog acc. to Search Variant 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 ish mm material search FM, simply by entering the name ISH_MM_MATERIAL_SEARCH into the relevant SAP transaction such as SE37 or SE38.

Function Group: NMM0
Program Name: SAPLNMM0
Main Program: SAPLNMM0
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISH_MM_MATERIAL_SEARCH 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_MM_MATERIAL_SEARCH'"IS-H MM: Select Materials from Material Catalog acc. to Search Variant
EXPORTING
SS_EINRI = "
SS_ORGFA = "Requesting Departmental OU
SS_ORGPF = "Requesting Nursing OU
* SS_POPUP = 'X' "'X': Display as Dialog Box
SS_PATTERN = "Material Text '*' Allowed
* SS_WERKS = "
* SS_READ_CAREUNIT_MAT = ' ' "
* SS_READ_CENTRAL_MAT = 'X' "

IMPORTING
SS_MATERIAL = "Catalog material found

EXCEPTIONS
NOT_FOUND = 1 ABORT = 2
.



IMPORTING Parameters details for ISH_MM_MATERIAL_SEARCH

SS_EINRI -

Data type: TN01-EINRI
Optional: No
Call by Reference: No ( called with pass by value option)

SS_ORGFA - Requesting Departmental OU

Data type: NORG-ORGID
Optional: No
Call by Reference: No ( called with pass by value option)

SS_ORGPF - Requesting Nursing OU

Data type: NORG-ORGID
Optional: No
Call by Reference: No ( called with pass by value option)

SS_POPUP - 'X': Display as Dialog Box

Data type: NPDOK-XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_PATTERN - Material Text '*' Allowed

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SS_WERKS -

Data type: T001W-WERKS
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_READ_CAREUNIT_MAT -

Data type: NPDOK-XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_READ_CENTRAL_MAT -

Data type: NPDOK-XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ISH_MM_MATERIAL_SEARCH

SS_MATERIAL - Catalog material found

Data type: RNMM03
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NOT_FOUND - No matching material found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ABORT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ISH_MM_MATERIAL_SEARCH 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_ss_einri  TYPE TN01-EINRI, "   
lv_not_found  TYPE TN01, "   
lv_ss_material  TYPE RNMM03, "   
lv_abort  TYPE RNMM03, "   
lv_ss_orgfa  TYPE NORG-ORGID, "   
lv_ss_orgpf  TYPE NORG-ORGID, "   
lv_ss_popup  TYPE NPDOK-XFELD, "   'X'
lv_ss_pattern  TYPE NPDOK, "   
lv_ss_werks  TYPE T001W-WERKS, "   
lv_ss_read_careunit_mat  TYPE NPDOK-XFELD, "   ' '
lv_ss_read_central_mat  TYPE NPDOK-XFELD. "   'X'

  CALL FUNCTION 'ISH_MM_MATERIAL_SEARCH'  "IS-H MM: Select Materials from Material Catalog acc. to Search Variant
    EXPORTING
         SS_EINRI = lv_ss_einri
         SS_ORGFA = lv_ss_orgfa
         SS_ORGPF = lv_ss_orgpf
         SS_POPUP = lv_ss_popup
         SS_PATTERN = lv_ss_pattern
         SS_WERKS = lv_ss_werks
         SS_READ_CAREUNIT_MAT = lv_ss_read_careunit_mat
         SS_READ_CENTRAL_MAT = lv_ss_read_central_mat
    IMPORTING
         SS_MATERIAL = lv_ss_material
    EXCEPTIONS
        NOT_FOUND = 1
        ABORT = 2
. " ISH_MM_MATERIAL_SEARCH




ABAP code using 7.40 inline data declarations to call FM ISH_MM_MATERIAL_SEARCH

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 EINRI FROM TN01 INTO @DATA(ld_ss_einri).
 
 
 
 
"SELECT single ORGID FROM NORG INTO @DATA(ld_ss_orgfa).
 
"SELECT single ORGID FROM NORG INTO @DATA(ld_ss_orgpf).
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_popup).
DATA(ld_ss_popup) = 'X'.
 
 
"SELECT single WERKS FROM T001W INTO @DATA(ld_ss_werks).
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_read_careunit_mat).
DATA(ld_ss_read_careunit_mat) = ' '.
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_read_central_mat).
DATA(ld_ss_read_central_mat) = 'X'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!