SAP Function Modules

EQUI_INSTALLATION_CHANGE SAP Function module







EQUI_INSTALLATION_CHANGE 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 EQUI_INSTALLATION_CHANGE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM EQUI_INSTALLATION_CHANGE - EQUI INSTALLATION CHANGE





CALL FUNCTION 'EQUI_INSTALLATION_CHANGE' "
  EXPORTING
    objecttype =                " ieqinstall-objtp  Type of InstallLocation (superior equipment)
*   equi_tab = SPACE            " v_equi        View of equipment to be installed (old/new)
*   function = SPACE            " t370-aktyp    Functions to be performed
*   hequ_tab = SPACE            " v_equi        View of superior equipment
*   init_ind = SPACE            " ieqinstall-selkz  Indicator: First call
*   way_down =                  " ieqinstall-selkz  Indicator: Install equipment
    x_xaktyp =                  " t370-aktyp    Activity Category
*   iflo_tab = SPACE            " iflo          View of InstallLocation (FunctLocation)
*   subscreen_only = SPACE      " ieqinstall-selkz
  IMPORTING
    change_upd =                " ieqinstall-selkz  Indicator: Change occurs
    equi_tab =                  " v_equi        View of equipment to be installed (old/new)
    change_date =               " equz-datab
    change_time =               " equz-timbi
    address_changed =           " ieqinstall-selkz
    address_equnr =             " equi-equnr
* TABLES
*   hequz_tab =                 " ieqequztab    Table of time segments generated for conversion
    .  "  EQUI_INSTALLATION_CHANGE

ABAP code example for Function Module EQUI_INSTALLATION_CHANGE





The ABAP code below is a full code listing to execute function module EQUI_INSTALLATION_CHANGE 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_change_upd  TYPE IEQINSTALL-SELKZ ,
ld_equi_tab  TYPE V_EQUI ,
ld_change_date  TYPE EQUZ-DATAB ,
ld_change_time  TYPE EQUZ-TIMBI ,
ld_address_changed  TYPE IEQINSTALL-SELKZ ,
ld_address_equnr  TYPE EQUI-EQUNR ,
it_hequz_tab  TYPE STANDARD TABLE OF IEQEQUZTAB,"TABLES PARAM
wa_hequz_tab  LIKE LINE OF it_hequz_tab .


DATA(ld_objecttype) = some text here
DATA(ld_equi_tab) = 'Check type of data required'.

SELECT single AKTYP
FROM T370
INTO @DATA(ld_function).

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

DATA(ld_init_ind) = some text here

DATA(ld_way_down) = some text here

SELECT single AKTYP
FROM T370
INTO @DATA(ld_x_xaktyp).

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

DATA(ld_subscreen_only) = some text here

"populate fields of struture and append to itab
append wa_hequz_tab to it_hequz_tab. . CALL FUNCTION 'EQUI_INSTALLATION_CHANGE' EXPORTING objecttype = ld_objecttype * equi_tab = ld_equi_tab * function = ld_function * hequ_tab = ld_hequ_tab * init_ind = ld_init_ind * way_down = ld_way_down x_xaktyp = ld_x_xaktyp * iflo_tab = ld_iflo_tab * subscreen_only = ld_subscreen_only IMPORTING change_upd = ld_change_upd equi_tab = ld_equi_tab change_date = ld_change_date change_time = ld_change_time address_changed = ld_address_changed address_equnr = ld_address_equnr * TABLES * hequz_tab = it_hequz_tab . " EQUI_INSTALLATION_CHANGE
IF SY-SUBRC EQ 0. "All OK 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_change_upd  TYPE IEQINSTALL-SELKZ ,
ld_objecttype  TYPE IEQINSTALL-OBJTP ,
it_hequz_tab  TYPE STANDARD TABLE OF IEQEQUZTAB ,
wa_hequz_tab  LIKE LINE OF it_hequz_tab,
ld_equi_tab  TYPE V_EQUI ,
ld_equi_tab  TYPE V_EQUI ,
ld_change_date  TYPE EQUZ-DATAB ,
ld_function  TYPE T370-AKTYP ,
ld_change_time  TYPE EQUZ-TIMBI ,
ld_hequ_tab  TYPE V_EQUI ,
ld_address_changed  TYPE IEQINSTALL-SELKZ ,
ld_init_ind  TYPE IEQINSTALL-SELKZ ,
ld_address_equnr  TYPE EQUI-EQUNR ,
ld_way_down  TYPE IEQINSTALL-SELKZ ,
ld_x_xaktyp  TYPE T370-AKTYP ,
ld_iflo_tab  TYPE IFLO ,
ld_subscreen_only  TYPE IEQINSTALL-SELKZ .


ld_objecttype = some text here

"populate fields of struture and append to itab
append wa_hequz_tab to it_hequz_tab.
ld_equi_tab = 'Check type of data required'.

SELECT single AKTYP
FROM T370
INTO ld_function.

ld_hequ_tab = 'Check type of data required'.

ld_init_ind = some text here

ld_way_down = some text here

SELECT single AKTYP
FROM T370
INTO ld_x_xaktyp.

ld_iflo_tab = 'Check type of data required'.

ld_subscreen_only = some text here

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 EQUI_INSTALLATION_CHANGE or its description.