PM
BAPI
RFC
Used the same way in S/4HANA
BAPI_EQUI_CREATE Create Equipment
Creates an equipment master record with general data, equipment-specific data and, optionally, fleet data and an installation location. It is used for equipment migration and for interfaces that register new assets. Check RETURN (a single structure) and call BAPI_TRANSACTION_COMMIT; EQUIPMENT returns the new number.
- Function group
- ITOB_BAPI_EQ
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| EXTERNAL_NUMBER | BAPI_ITOB_PARMS-EQUIPMENT | External equipment number | — |
| DATA_GENERAL | BAPI_ITOB | General data | Yes |
| DATA_SPECIFIC | BAPI_ITOB_EQ_ONLY | Equipment-specific data | Yes |
| DATA_FLEET | BAPI_FLEET | Fleet object data | — |
| VALID_DATE | BAPI_ITOB_PARMS-INST_DATE | Valid-from date | — |
| DATA_INSTALL | BAPI_ITOB_EQ_INSTALL | Installation data | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| EQUIPMENT | BAPI_ITOB_PARMS-EQUIPMENT | Number of the created equipment |
| 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)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'BAPI_EQUI_CREATE'
EXPORTING
data_general = lv_data_general
data_specific = lv_data_specific
IMPORTING
equipment = lv_equipment
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
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.