SAP EQUIPMENT_NUMBER_CHECK Function Module for NOTRANSL: Prüfen Equipmentnummer
EQUIPMENT_NUMBER_CHECK is a standard equipment number 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: Prüfen Equipmentnummer 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 equipment number check FM, simply by entering the name EQUIPMENT_NUMBER_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: IE01
Program Name: SAPLIE01
Main Program: SAPLIE01
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EQUIPMENT_NUMBER_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 'EQUIPMENT_NUMBER_CHECK'"NOTRANSL: Prüfen Equipmentnummer.
EXPORTING
EQUNR = "Equipment Number
* TYPE = "Equipment category
* T370T = "Equipment categories
* DRAW_IF_INITIAL = "Yes/No (X/ )
IMPORTING
EQUNR = "Equipment Number
CONDENSED = "Yes/No (X/ )
EXCEPTIONS
TYPE_NOT_FOUND = 1 INTERNAL_RANGE_NOT_DEFINED = 2 EXTERNAL_RANGE_NOT_DEFINED = 3 NUMBER_RANGE_NOT_FOUND = 4 NUMBER_RANGE_NOT_EXTERN = 5 NUMBER_NOT_IN_INTERVAL = 6 CHARACTER_INVALID = 7 ALPHA_NUMBER_NOT_ALLOWED = 8
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_SAPLIE01_005 Serial Numbers, User Exit in the Update
EXIT_SAPLIE01_007 Serial Numbers, User Exit in Goods Movement
IMPORTING Parameters details for EQUIPMENT_NUMBER_CHECK
EQUNR - Equipment Number
Data type: EQUI-EQUNROptional: No
Call by Reference: No ( called with pass by value option)
TYPE - Equipment category
Data type: T370T-EQTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
T370T - Equipment categories
Data type: T370TOptional: Yes
Call by Reference: No ( called with pass by value option)
DRAW_IF_INITIAL - Yes/No (X/ )
Data type: IREF-IINDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EQUIPMENT_NUMBER_CHECK
EQUNR - Equipment Number
Data type: EQUI-EQUNROptional: No
Call by Reference: No ( called with pass by value option)
CONDENSED - Yes/No (X/ )
Data type: IREF-IINDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
TYPE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_RANGE_NOT_DEFINED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXTERNAL_RANGE_NOT_DEFINED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NUMBER_RANGE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NUMBER_RANGE_NOT_EXTERN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NUMBER_NOT_IN_INTERVAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHARACTER_INVALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ALPHA_NUMBER_NOT_ALLOWED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EQUIPMENT_NUMBER_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_equnr | TYPE EQUI-EQUNR, " | |||
| lv_equnr | TYPE EQUI-EQUNR, " | |||
| lv_type_not_found | TYPE EQUI, " | |||
| lv_type | TYPE T370T-EQTYP, " | |||
| lv_condensed | TYPE IREF-IIND, " | |||
| lv_internal_range_not_defined | TYPE IREF, " | |||
| lv_t370t | TYPE T370T, " | |||
| lv_external_range_not_defined | TYPE T370T, " | |||
| lv_draw_if_initial | TYPE IREF-IIND, " | |||
| lv_number_range_not_found | TYPE IREF, " | |||
| lv_number_range_not_extern | TYPE IREF, " | |||
| lv_number_not_in_interval | TYPE IREF, " | |||
| lv_character_invalid | TYPE IREF, " | |||
| lv_alpha_number_not_allowed | TYPE IREF. " |
|   CALL FUNCTION 'EQUIPMENT_NUMBER_CHECK' "NOTRANSL: Prüfen Equipmentnummer |
| EXPORTING | ||
| EQUNR | = lv_equnr | |
| TYPE | = lv_type | |
| T370T | = lv_t370t | |
| DRAW_IF_INITIAL | = lv_draw_if_initial | |
| IMPORTING | ||
| EQUNR | = lv_equnr | |
| CONDENSED | = lv_condensed | |
| EXCEPTIONS | ||
| TYPE_NOT_FOUND = 1 | ||
| INTERNAL_RANGE_NOT_DEFINED = 2 | ||
| EXTERNAL_RANGE_NOT_DEFINED = 3 | ||
| NUMBER_RANGE_NOT_FOUND = 4 | ||
| NUMBER_RANGE_NOT_EXTERN = 5 | ||
| NUMBER_NOT_IN_INTERVAL = 6 | ||
| CHARACTER_INVALID = 7 | ||
| ALPHA_NUMBER_NOT_ALLOWED = 8 | ||
| . " EQUIPMENT_NUMBER_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM EQUIPMENT_NUMBER_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.| "SELECT single EQUNR FROM EQUI INTO @DATA(ld_equnr). | ||||
| "SELECT single EQUNR FROM EQUI INTO @DATA(ld_equnr). | ||||
| "SELECT single EQTYP FROM T370T INTO @DATA(ld_type). | ||||
| "SELECT single IIND FROM IREF INTO @DATA(ld_condensed). | ||||
| "SELECT single IIND FROM IREF INTO @DATA(ld_draw_if_initial). | ||||
Search for further information about these or an SAP related objects