SAP Function Modules

ISU_O_DEVICEMOD_OPEN SAP Function module - INTERNAL: Opens Processing of Device Modification







ISU_O_DEVICEMOD_OPEN is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name ISU_O_DEVICEMOD_OPEN into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: EG42
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISU_O_DEVICEMOD_OPEN - ISU O DEVICEMOD OPEN





CALL FUNCTION 'ISU_O_DEVICEMOD_OPEN' "INTERNAL: Opens Processing of Device Modification
  EXPORTING
*   x_devloc =                  " reg42_interface-devloc  Device Location
*   x_installation =            " eanl-anlage   Installation
*   x_device =                  " reg42_interface-device  Device
*   x_matnr =                   " reg42_interface-matnr
*   x_devision =                " reg42_interface-devision  Division
*   x_equnr =                   " reg42_interface-equnr  Equipment
    x_keydate =                 " reg42_interface-keydate  Key Date
    x_wmode =                   " regen-wmode
*   x_prorate = 'X'             " regen-kennzx
*   x_timeslices =              " regen-kennzx
*   x_upd_online = 'X'          " regen-upd_online  Indicator: Update Directly Online
*   x_no_dialog =               " regen-no_dialog  Indicator: no dialog
*   x_auto =                    " isu42_devmod_auto
*   x_no_change =               " regen-no_change  Switch to change mode not possible in display mode
*   x_no_other =                " regen-no_other  Indicator: 'Other object' not permitted
*   x_no_update =               " regen-no_update
*   x_int_num = SPACE           " e_devinfo_int_num
*   x_ext_num = SPACE           " e_devinfo_ext_num  External Number Assignment Required for Device Info Record
*   x_logikzw =                 " logikzw       Logical register number
  IMPORTING
    y_obj =                     " isu42_devmod  Object Data
    y_auto =                    " isu42_devmod_auto
* CHANGING
*   xy_integration =            " isu07_integration_data
  EXCEPTIONS
    NOT_FOUND = 1               "               Object Not Found
    INVALID = 2                 "
    FOREIGN_LOCK = 3            "               Object is currently locked
    INPUT_ERROR = 4             "
    SYSTEM_ERROR = 5            "               General system error
    INTERNAL_ERROR = 6          "
    NOT_QUALIFIED = 7           "
    NOT_CUSTOMIZED = 8          "
    CANCELLED = 9               "               Program was terminated
    .  "  ISU_O_DEVICEMOD_OPEN

ABAP code example for Function Module ISU_O_DEVICEMOD_OPEN





The ABAP code below is a full code listing to execute function module ISU_O_DEVICEMOD_OPEN including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_y_obj  TYPE ISU42_DEVMOD ,
ld_y_auto  TYPE ISU42_DEVMOD_AUTO .

DATA(ld_xy_integration) = 'Check type of data required'.

DATA(ld_x_devloc) = some text here

SELECT single ANLAGE
FROM EANL
INTO @DATA(ld_x_installation).


DATA(ld_x_device) = some text here

DATA(ld_x_matnr) = some text here

DATA(ld_x_devision) = some text here

DATA(ld_x_equnr) = some text here

DATA(ld_x_keydate) = 20210129

DATA(ld_x_wmode) = some text here

DATA(ld_x_prorate) = some text here

DATA(ld_x_timeslices) = some text here

DATA(ld_x_upd_online) = some text here

DATA(ld_x_no_dialog) = some text here
DATA(ld_x_auto) = 'Check type of data required'.

DATA(ld_x_no_change) = some text here

DATA(ld_x_no_other) = some text here

DATA(ld_x_no_update) = some text here
DATA(ld_x_int_num) = 'Check type of data required'.
DATA(ld_x_ext_num) = 'Check type of data required'.
DATA(ld_x_logikzw) = 'Check type of data required'. . CALL FUNCTION 'ISU_O_DEVICEMOD_OPEN' EXPORTING * x_devloc = ld_x_devloc * x_installation = ld_x_installation * x_device = ld_x_device * x_matnr = ld_x_matnr * x_devision = ld_x_devision * x_equnr = ld_x_equnr x_keydate = ld_x_keydate x_wmode = ld_x_wmode * x_prorate = ld_x_prorate * x_timeslices = ld_x_timeslices * x_upd_online = ld_x_upd_online * x_no_dialog = ld_x_no_dialog * x_auto = ld_x_auto * x_no_change = ld_x_no_change * x_no_other = ld_x_no_other * x_no_update = ld_x_no_update * x_int_num = ld_x_int_num * x_ext_num = ld_x_ext_num * x_logikzw = ld_x_logikzw IMPORTING y_obj = ld_y_obj y_auto = ld_y_auto * CHANGING * xy_integration = ld_xy_integration 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_O_DEVICEMOD_OPEN
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_xy_integration  TYPE ISU07_INTEGRATION_DATA ,
ld_y_obj  TYPE ISU42_DEVMOD ,
ld_x_devloc  TYPE REG42_INTERFACE-DEVLOC ,
ld_y_auto  TYPE ISU42_DEVMOD_AUTO ,
ld_x_installation  TYPE EANL-ANLAGE ,
ld_x_device  TYPE REG42_INTERFACE-DEVICE ,
ld_x_matnr  TYPE REG42_INTERFACE-MATNR ,
ld_x_devision  TYPE REG42_INTERFACE-DEVISION ,
ld_x_equnr  TYPE REG42_INTERFACE-EQUNR ,
ld_x_keydate  TYPE REG42_INTERFACE-KEYDATE ,
ld_x_wmode  TYPE REGEN-WMODE ,
ld_x_prorate  TYPE REGEN-KENNZX ,
ld_x_timeslices  TYPE REGEN-KENNZX ,
ld_x_upd_online  TYPE REGEN-UPD_ONLINE ,
ld_x_no_dialog  TYPE REGEN-NO_DIALOG ,
ld_x_auto  TYPE ISU42_DEVMOD_AUTO ,
ld_x_no_change  TYPE REGEN-NO_CHANGE ,
ld_x_no_other  TYPE REGEN-NO_OTHER ,
ld_x_no_update  TYPE REGEN-NO_UPDATE ,
ld_x_int_num  TYPE E_DEVINFO_INT_NUM ,
ld_x_ext_num  TYPE E_DEVINFO_EXT_NUM ,
ld_x_logikzw  TYPE LOGIKZW .

ld_xy_integration = 'Check type of data required'.

ld_x_devloc = some text here

SELECT single ANLAGE
FROM EANL
INTO ld_x_installation.


ld_x_device = some text here

ld_x_matnr = some text here

ld_x_devision = some text here

ld_x_equnr = some text here

ld_x_keydate = 20210129

ld_x_wmode = some text here

ld_x_prorate = some text here

ld_x_timeslices = some text here

ld_x_upd_online = some text here

ld_x_no_dialog = some text here
ld_x_auto = 'Check type of data required'.

ld_x_no_change = some text here

ld_x_no_other = some text here

ld_x_no_update = some text here
ld_x_int_num = 'Check type of data required'.
ld_x_ext_num = 'Check type of data required'.
ld_x_logikzw = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ISU_O_DEVICEMOD_OPEN or its description.