FI BAPI RFC Used the same way in S/4HANA

BAPI_FIXEDASSET_CREATE1 Create Fixed Asset

Creates an asset master record (main number or subnumber) with general, posting, time-dependent and depreciation area data, like transaction AS01. It is the standard choice for asset master data migration and for interfaces that create assets from investment or procurement systems. Fill each data structure together with its …X flag structure, use TESTRUN for a simulation and call BAPI_TRANSACTION_COMMIT after a successful run.

Function group
1022
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
KEYBAPI1022_KEYKey of the asset to createYes
REFERENCEBAPI1022_REFERENCEReference asset for copying—
CREATESUBNUMBERBAPI1022_MISC-XSUBNOCreate asset subnumber—
CREATEGROUPASSETBAPI1022_MISC-XANLGRAsset is a group asset—
TESTRUNBAPI1022_MISC-TESTRUNTest run (no update)—
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
COMPANYCODEBAPI1022_1-COMP_CODECompany code of the created asset
ASSETBAPI1022_1-ASSETMAINOMain number of the created asset
SUBNUMBERBAPI1022_1-ASSETSUBNOSubnumber of the created asset
ASSETCREATEDBAPI1022_REFERENCEAsset created
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_CREATE1'
  EXPORTING
    key = lv_key
  IMPORTING
    companycode = lv_companycode
    asset = lv_asset
    subnumber = lv_subnumber
    assetcreated = lv_assetcreated
    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