FI
BAPI
RFC
Used the same way in S/4HANA
BAPI_FIXEDASSET_CHANGE Change Fixed Asset
Changes the master data of an existing asset identified by company code, main number and subnumber, like transaction AS02. Developers use it for mass corrections of asset master data, for example cost centers, inventory numbers or depreciation terms. Only fields whose flag is set in the matching …X structure are changed; check RETURN and call BAPI_TRANSACTION_COMMIT.
- Function group
- 1022
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| COMPANYCODE | BAPI1022_1-COMP_CODE | Company code | Yes |
| ASSET | BAPI1022_1-ASSETMAINO | Main asset number | Yes |
| SUBNUMBER | BAPI1022_1-ASSETSUBNO | Asset subnumber | Yes |
| GROUPASSET | BAPI1022_MISC-XANLGR | Asset is a group asset | — |
| GENERALDATA | BAPI1022_FEGLG001 | General data | — |
| GENERALDATAX | BAPI1022_FEGLG001X | Change flags for general data | — |
| POSTINGINFORMATION | BAPI1022_FEGLG002 | Posting information | — |
| POSTINGINFORMATIONX | BAPI1022_FEGLG002X | Change flags for posting information | — |
| TIMEDEPENDENTDATA | BAPI1022_FEGLG003 | Time-dependent data | — |
| TIMEDEPENDENTDATAX | BAPI1022_FEGLG003X | Change flags for time-dependent data | — |
| ALLOCATIONS | BAPI1022_FEGLG004 | Allocations | — |
| ALLOCATIONSX | BAPI1022_FEGLG004X | Change flags for allocations | — |
| ORIGIN | BAPI1022_FEGLG009 | Origin data | — |
| ORIGINX | BAPI1022_FEGLG009X | Change flags for origin data | — |
| INVENTORY | BAPI1022_FEGLG011 | Inventory data | — |
| INVENTORYX | BAPI1022_FEGLG011X | Change flags for inventory data | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRET2 | Return messages |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| DEPRECIATIONAREAS | BAPI1022_DEP_AREAS | Depreciation areas | — |
| DEPRECIATIONAREASX | BAPI1022_DEP_AREASX | Change flags for depreciation areas | — |
| EXTENSIONIN | BAPIPAREX | Customer enhancements | — |
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_FIXEDASSET_CHANGE'
EXPORTING
companycode = lv_companycode
asset = lv_asset
subnumber = lv_subnumber
IMPORTING
return = lv_return
TABLES
depreciationareas = lt_depreciationareas
depreciationareasx = lt_depreciationareasx
extensionin = lt_extensionin.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.