SAP ITOB_REFERENCE_MATERIAL Function Module for NOTRANSL: ITOB: Prüfung Referenz Techn.Objekte auf Materialnummer
ITOB_REFERENCE_MATERIAL is a standard itob reference material 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: ITOB: Prüfung Referenz Techn.Objekte auf Materialnummer 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 itob reference material FM, simply by entering the name ITOB_REFERENCE_MATERIAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: ITOBS
Program Name: SAPLITOBS
Main Program: SAPLITOBS
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ITOB_REFERENCE_MATERIAL 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 'ITOB_REFERENCE_MATERIAL'"NOTRANSL: ITOB: Prüfung Referenz Techn.Objekte auf Materialnummer.
EXPORTING
* I_OBJECT_TYPE = "Technical object types in plant maintenance
I_MATNR = "Material Number
IMPORTING
E_FOUND = "
E_TPLNR = "Functional Location
E_EQUNR = "Equipment Number
E_TRPNR = "Reference functional location
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLITOBS_001 Customer Exit Creating With Copy Mmodel: Change Copied Field Contents
IMPORTING Parameters details for ITOB_REFERENCE_MATERIAL
I_OBJECT_TYPE - Technical object types in plant maintenance
Data type: ITOBTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MATNR - Material Number
Data type: ITOB-MATNROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ITOB_REFERENCE_MATERIAL
E_FOUND -
Data type: ITOB_TYPES-BOOLOptional: No
Call by Reference: No ( called with pass by value option)
E_TPLNR - Functional Location
Data type: ITOB-TPLNROptional: No
Call by Reference: No ( called with pass by value option)
E_EQUNR - Equipment Number
Data type: ITOB-EQUNROptional: No
Call by Reference: No ( called with pass by value option)
E_TRPNR - Reference functional location
Data type: ITOB-TRPNROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ITOB_REFERENCE_MATERIAL 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_e_found | TYPE ITOB_TYPES-BOOL, " | |||
| lv_i_object_type | TYPE ITOBTYP, " | |||
| lv_e_tplnr | TYPE ITOB-TPLNR, " | |||
| lv_i_matnr | TYPE ITOB-MATNR, " | |||
| lv_e_equnr | TYPE ITOB-EQUNR, " | |||
| lv_e_trpnr | TYPE ITOB-TRPNR. " |
|   CALL FUNCTION 'ITOB_REFERENCE_MATERIAL' "NOTRANSL: ITOB: Prüfung Referenz Techn.Objekte auf Materialnummer |
| EXPORTING | ||
| I_OBJECT_TYPE | = lv_i_object_type | |
| I_MATNR | = lv_i_matnr | |
| IMPORTING | ||
| E_FOUND | = lv_e_found | |
| E_TPLNR | = lv_e_tplnr | |
| E_EQUNR | = lv_e_equnr | |
| E_TRPNR | = lv_e_trpnr | |
| . " ITOB_REFERENCE_MATERIAL | ||
ABAP code using 7.40 inline data declarations to call FM ITOB_REFERENCE_MATERIAL
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 BOOL FROM ITOB_TYPES INTO @DATA(ld_e_found). | ||||
| "SELECT single TPLNR FROM ITOB INTO @DATA(ld_e_tplnr). | ||||
| "SELECT single MATNR FROM ITOB INTO @DATA(ld_i_matnr). | ||||
| "SELECT single EQUNR FROM ITOB INTO @DATA(ld_e_equnr). | ||||
| "SELECT single TRPNR FROM ITOB INTO @DATA(ld_e_trpnr). | ||||
Search for further information about these or an SAP related objects