SAP ISU_S_SMALL_DEVICE_CREATE Function Module for INTERNAL: Create Device Info Record (EGERR)









ISU_S_SMALL_DEVICE_CREATE is a standard isu s small device create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for INTERNAL: Create Device Info Record (EGERR) 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 isu s small device create FM, simply by entering the name ISU_S_SMALL_DEVICE_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function ISU_S_SMALL_DEVICE_CREATE 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 'ISU_S_SMALL_DEVICE_CREATE'"INTERNAL: Create Device Info Record (EGERR)
EXPORTING
* X_DEVICE = "Device
* X_EXT_NUM = ' ' "External Number Assignment Required for Device Info Record
X_MATNR = "
* X_DEVISION = "Division
X_KEYDATE = "Key Date
* X_UPD_ONLINE = 'X' "Indicator: Update Directly Online
* X_NO_DIALOG = "Indicator: no dialog
* X_AUTO = "
* X_OBJ = "Object Data (From Previous OPEN Call)
* X_INT_NUM = ' ' "

IMPORTING
Y_DB_UPDATE = "Indicator: data change
Y_EXIT_TYPE = "Return Mode
Y_EQUNR = "Equipment Number
Y_DEVICE = "Device

EXCEPTIONS
NOT_FOUND = 1 INVALID = 2 FOREIGN_LOCK = 3 INPUT_ERROR = 4 SYSTEM_ERROR = 5 INTERNAL_ERROR = 6 NOT_QUALIFIED = 7 NOT_CUSTOMIZED = 8 CANCELLED = 9
.




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_SAPLEG42_001 Device Modification: Device and Register Data afer Modification
EXIT_SAPLEG42_002 Check Device Info Record, Device Data, and Register Data

IMPORTING Parameters details for ISU_S_SMALL_DEVICE_CREATE

X_DEVICE - Device

Data type: REG42_INTERFACE-DEVICE
Optional: Yes
Call by Reference: Yes

X_EXT_NUM - External Number Assignment Required for Device Info Record

Data type: E_DEVINFO_EXT_NUM
Default: SPACE
Optional: Yes
Call by Reference: Yes

X_MATNR -

Data type: REG42_INTERFACE-MATNR
Optional: No
Call by Reference: Yes

X_DEVISION - Division

Data type: REG42_INTERFACE-DEVISION
Optional: Yes
Call by Reference: Yes

X_KEYDATE - Key Date

Data type: REG42_INTERFACE-KEYDATE
Optional: No
Call by Reference: Yes

X_UPD_ONLINE - Indicator: Update Directly Online

Data type: REGEN-UPD_ONLINE
Default: 'X'
Optional: Yes
Call by Reference: Yes

X_NO_DIALOG - Indicator: no dialog

Data type: REGEN-NO_DIALOG
Optional: Yes
Call by Reference: Yes

X_AUTO -

Data type: ISU42_DEVMOD_AUTO
Optional: Yes
Call by Reference: Yes

X_OBJ - Object Data (From Previous OPEN Call)

Data type: ISU42_DEVMOD
Optional: Yes
Call by Reference: Yes

X_INT_NUM -

Data type: E_DEVINFO_INT_NUM
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for ISU_S_SMALL_DEVICE_CREATE

Y_DB_UPDATE - Indicator: data change

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

Y_EXIT_TYPE - Return Mode

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

Y_EQUNR - Equipment Number

Data type: EQUNR
Optional: No
Call by Reference: Yes

Y_DEVICE - Device

Data type: GERAET
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOT_FOUND - Object Not Found

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

INVALID -

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

FOREIGN_LOCK - Object is currently locked

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

INPUT_ERROR -

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

SYSTEM_ERROR - General system error

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

INTERNAL_ERROR -

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

NOT_QUALIFIED -

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

NOT_CUSTOMIZED -

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

CANCELLED - Program was terminated

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

Copy and paste ABAP code example for ISU_S_SMALL_DEVICE_CREATE 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_x_device  TYPE REG42_INTERFACE-DEVICE, "   
lv_not_found  TYPE REG42_INTERFACE, "   
lv_y_db_update  TYPE REGEN-DB_UPDATE, "   
lv_x_ext_num  TYPE E_DEVINFO_EXT_NUM, "   SPACE
lv_invalid  TYPE E_DEVINFO_EXT_NUM, "   
lv_x_matnr  TYPE REG42_INTERFACE-MATNR, "   
lv_y_exit_type  TYPE REGEN-EXIT_TYPE, "   
lv_y_equnr  TYPE EQUNR, "   
lv_x_devision  TYPE REG42_INTERFACE-DEVISION, "   
lv_foreign_lock  TYPE REG42_INTERFACE, "   
lv_y_device  TYPE GERAET, "   
lv_x_keydate  TYPE REG42_INTERFACE-KEYDATE, "   
lv_input_error  TYPE REG42_INTERFACE, "   
lv_system_error  TYPE REG42_INTERFACE, "   
lv_x_upd_online  TYPE REGEN-UPD_ONLINE, "   'X'
lv_x_no_dialog  TYPE REGEN-NO_DIALOG, "   
lv_internal_error  TYPE REGEN, "   
lv_x_auto  TYPE ISU42_DEVMOD_AUTO, "   
lv_not_qualified  TYPE ISU42_DEVMOD_AUTO, "   
lv_x_obj  TYPE ISU42_DEVMOD, "   
lv_not_customized  TYPE ISU42_DEVMOD, "   
lv_cancelled  TYPE ISU42_DEVMOD, "   
lv_x_int_num  TYPE E_DEVINFO_INT_NUM. "   SPACE

  CALL FUNCTION 'ISU_S_SMALL_DEVICE_CREATE'  "INTERNAL: Create Device Info Record (EGERR)
    EXPORTING
         X_DEVICE = lv_x_device
         X_EXT_NUM = lv_x_ext_num
         X_MATNR = lv_x_matnr
         X_DEVISION = lv_x_devision
         X_KEYDATE = lv_x_keydate
         X_UPD_ONLINE = lv_x_upd_online
         X_NO_DIALOG = lv_x_no_dialog
         X_AUTO = lv_x_auto
         X_OBJ = lv_x_obj
         X_INT_NUM = lv_x_int_num
    IMPORTING
         Y_DB_UPDATE = lv_y_db_update
         Y_EXIT_TYPE = lv_y_exit_type
         Y_EQUNR = lv_y_equnr
         Y_DEVICE = lv_y_device
    EXCEPTIONS
        NOT_FOUND = 1
        INVALID = 2
        FOREIGN_LOCK = 3
        INPUT_ERROR = 4
        SYSTEM_ERROR = 5
        INTERNAL_ERROR = 6
        NOT_QUALIFIED = 7
        NOT_CUSTOMIZED = 8
        CANCELLED = 9
. " ISU_S_SMALL_DEVICE_CREATE




ABAP code using 7.40 inline data declarations to call FM ISU_S_SMALL_DEVICE_CREATE

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 DEVICE FROM REG42_INTERFACE INTO @DATA(ld_x_device).
 
 
"SELECT single DB_UPDATE FROM REGEN INTO @DATA(ld_y_db_update).
 
DATA(ld_x_ext_num) = ' '.
 
 
"SELECT single MATNR FROM REG42_INTERFACE INTO @DATA(ld_x_matnr).
 
"SELECT single EXIT_TYPE FROM REGEN INTO @DATA(ld_y_exit_type).
 
 
"SELECT single DEVISION FROM REG42_INTERFACE INTO @DATA(ld_x_devision).
 
 
 
"SELECT single KEYDATE FROM REG42_INTERFACE INTO @DATA(ld_x_keydate).
 
 
 
"SELECT single UPD_ONLINE FROM REGEN INTO @DATA(ld_x_upd_online).
DATA(ld_x_upd_online) = 'X'.
 
"SELECT single NO_DIALOG FROM REGEN INTO @DATA(ld_x_no_dialog).
 
 
 
 
 
 
 
DATA(ld_x_int_num) = ' '.
 


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!