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

ParameterTypeDescriptionRequired
COMPANYCODEBAPI1022_1-COMP_CODECompany codeYes
ASSETBAPI1022_1-ASSETMAINOMain asset numberYes
SUBNUMBERBAPI1022_1-ASSETSUBNOAsset subnumberYes
GROUPASSETBAPI1022_MISC-XANLGRAsset is a group asset—
GENERALDATABAPI1022_FEGLG001General data—
GENERALDATAXBAPI1022_FEGLG001XChange flags for general data—
POSTINGINFORMATIONBAPI1022_FEGLG002Posting information—
POSTINGINFORMATIONXBAPI1022_FEGLG002XChange flags for posting information—
TIMEDEPENDENTDATABAPI1022_FEGLG003Time-dependent data—
TIMEDEPENDENTDATAXBAPI1022_FEGLG003XChange flags for time-dependent data—
ALLOCATIONSBAPI1022_FEGLG004Allocations—
ALLOCATIONSXBAPI1022_FEGLG004XChange flags for allocations—
ORIGINBAPI1022_FEGLG009Origin data—
ORIGINXBAPI1022_FEGLG009XChange flags for origin data—
INVENTORYBAPI1022_FEGLG011Inventory data—
INVENTORYXBAPI1022_FEGLG011XChange flags for inventory data—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRET2Return messages

Tables parameters

ParameterTypeDescriptionRequired
DEPRECIATIONAREASBAPI1022_DEP_AREASDepreciation areas—
DEPRECIATIONAREASXBAPI1022_DEP_AREASXChange flags for depreciation areas—
EXTENSIONINBAPIPAREXCustomer 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.

Request a custom report