# BAPI_EQUI_CHANGE — Change Equipment

> Changes the master data of an existing equipment. Every data structure has an X structure (DATA_GENERALX, DATA_SPECIFICX, DATA_FLEETX); set the flag for each field you change, otherwise it is not updated. Use VALID_DATE for time-dependent data and commit with BAPI_TRANSACTION_COMMIT.

- Modules: PM
- Type: BAPI
- Function group: ITOB_BAPI_EQ
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-equi-change/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| EQUIPMENT | BAPI_ITOB_PARMS-EQUIPMENT | Equipment number | Yes |
| DATA_GENERAL | BAPI_ITOB | General data | Yes |
| DATA_GENERALX | BAPI_ITOBX | General data change flags | Yes |
| DATA_SPECIFIC | BAPI_ITOB_EQ_ONLY | Equipment-specific data | Yes |
| DATA_SPECIFICX | BAPI_ITOB_EQ_ONLYX | Specific data change flags | Yes |
| DATA_FLEET | BAPI_FLEET | Fleet object data | - |
| DATA_FLEETX | BAPI_FLEETX | Fleet data change flags | - |
| VALID_DATE | BAPI_ITOB_PARMS-INST_DATE | Valid-from date | - |
| VALID_TIME | BAPI_ITOB_PARMS-INST_TIME | Valid-from time | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| DATA_GENERAL_EXP | BAPI_ITOB | General data (result) |
| DATA_SPECIFIC_EXP | BAPI_ITOB_EQ_ONLY | Specific data (result) |
| DATA_FLEET_EXP | BAPI_FLEET | Fleet data (result) |
| RETURN | BAPIRET2 | Return message |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| EXTENSIONIN | BAPIPAREX | Customer extension (input) | - |
| EXTENSIONOUT | BAPIPAREX | Customer extension (output) | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_EQUI_CHANGE'
  EXPORTING
    equipment = lv_equipment
    data_general = lv_data_general
    data_generalx = lv_data_generalx
    data_specific = lv_data_specific
    data_specificx = lv_data_specificx
  IMPORTING
    data_general_exp = lv_data_general_exp
    data_specific_exp = lv_data_specific_exp
    data_fleet_exp = lv_data_fleet_exp
    return = lv_return
  TABLES
    extensionin = lt_extensionin
    extensionout = lt_extensionout.
```

## Related tables

EQKT, EQUI, EQUZ, ILOA

