Fonction SAP BAPI_FIXEDASSET_CREATE1 - Creates an Asset

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ALLOCATIONS BAPI1022_FEGLG004 u 43 X Allocations
ALLOCATIONSX BAPI1022_FEGLG004X u 8 X Change Parameters for Allocations
CREATEGROUPASSET BAPI1022_MISC-XANLGR C 1 X Indicator: Asset is a group asset
CREATESUBNUMBER BAPI1022_MISC-XSUBNO C 1 X Create Asset Subnumber?
GENERALDATA BAPI1022_FEGLG001 u 223 X General Data
GENERALDATAX BAPI1022_FEGLG001X u 11 X Change Parameters for General Data
INSURANCE BAPI1022_FEGLG008 u 140 X Insurance
INSURANCEX BAPI1022_FEGLG008X u 15 X Change Parameters for Insurance
INVENTORY BAPI1022_FEGLG011 u 24 X Inventory
INVENTORYX BAPI1022_FEGLG011X u 3 X Change Parameters for Inventory
INVESTACCTASSIGNMNT BAPI1022_FEGLG010 u 44 X Account Assignment for Investment
INVESTACCTASSIGNMNTX BAPI1022_FEGLG010X u 3 X Change Parameters for Investment Account Assignments
KEY BAPI1022_KEY u 20 Key of Asset Being Created
LEASING BAPI1022_FEGLG005 u 174 X Leasing
LEASINGX BAPI1022_FEGLG005X u 19 X Change Parameters for Leasing
NETWORTHVALUATION BAPI1022_FEGLG006 u 29 X Net Worth Valuation
NETWORTHVALUATIONX BAPI1022_FEGLG006X u 7 X Change Parameters for Net Worth Valuation
ORIGIN BAPI1022_FEGLG009 u 148 X Origin
ORIGINX BAPI1022_FEGLG009X u 15 X Change Parameters for Origin
POSTCAP BAPI1022_MISC-POSTCAP C 1 X Post-capitalization of asset
POSTINGINFORMATION BAPI1022_FEGLG002 u 53 X Posting Information
POSTINGINFORMATIONX BAPI1022_FEGLG002X u 8 X Change Parameters for Posting Information
REALESTATE BAPI1022_FEGLG007 u 139 X Real Estate and Similar Rights
REALESTATEX BAPI1022_FEGLG007X u 15 X Change Parameters for Real Estate
REFERENCE BAPI1022_REFERENCE u 20 X Reference for Creating Using Reference
TESTRUN BAPI1022_MISC-TESTRUN C 1 X Test Run
TIMEDEPENDENTDATA BAPI1022_FEGLG003 u 373 X Time-Dependent Data
TIMEDEPENDENTDATAX BAPI1022_FEGLG003X u 32 X Change Parameters for Time-Dependent Data

Paramètre Reférence Type Long. Description
ASSET BAPI1022_1-ASSETMAINO C 12 Main Number of Asset Created
ASSETCREATED BAPI1022_REFERENCE u 20 Asset Created
COMPANYCODE BAPI1022_1-COMP_CODE C 4 Company Code of Asset Created
RETURN BAPIRET2 u 548 Information about Errors which Occurred
SUBNUMBER BAPI1022_1-ASSETSUBNO C 4 Subnumber of Created Asset

Paramètre Reférence Long. Facultatif Description
DEPRECIATIONAREAS BAPI1022_DEP_AREAS 153 X Depreciation Areas
DEPRECIATIONAREASX BAPI1022_DEP_AREASX 31 X Change Parameters for Depreciation Areas
EXTENSIONIN BAPIPAREX 990 X Customer Enhancements
INVESTMENT_SUPPORT BAPI1022_INV_SUPPORT 3 X Investment Support Key

Functionality
You can use this method to create asset master records.

Notes
To create an asset using this method, you need the same authorizationsas for creating an asset in dialog mode.
It is not possible to transfer investment support.

Description
The main number of the asset created is returned in this parameter.

Description
The key, consisting of the company code, asset main number and assetsub-number, is returned in this parameter for the asset created.

Description
The company code of the asset created is returned in this parameter.This number is identical with the company code transferred in theKEY-COMPANYCODE parameter.

Description
This parameter returns information on any errors that may occur duringthe creation of asset master records.

Value range
The fields of the parameter can have the following values:
TYPE ID NUMBER Meaning
S BAPI1022 007 Asset master record was created
E BAPI1022 001 Parameter field GENERALDATA-ASSETCLASS not
completed
E BAPI1022 002 Par. ASSET not completed (when creating sub-no.)
E BAPI1022 003 Master data field not modifiable
E BAPI1022 004 Depreciation area field not modifiable
E BAPI1022 005 Depreciation area not defined
In addition, other messages from the message classes (IDs) AA and AY,which also occur in dialog mode, can be returned in this parameter.
In some cases, the PARAMETER, ROW and FIELD fields of the RETURNparameter are also completed. They provide information about whichentry parameter (and, in the case of table parameters DEPRECIATIONAREASand DEPRECIATIONAREASX: in which table row) the cause for the error canbe found.
This is especially important information in message numbers 003 and 004of the BAPI1022 class.

Description
The main number of the asset created is returned in this parameter.

Description
Using this parameter, you can transfer data from the "Assignments"group box.
INCLUDE AM_BAPI1022_CHIND_CREATE

Description
Change parameter for "Assignments" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

Description
Set the indicator, if the asset master record to be created is a groupasset.

Description
You use this parameter to specify that an asset sub-number is createdinstead of a an asset main number.

Value range
' ' - A main number master record is created
'X' - A sub-number master record is created

Default
' '

Description
You can use this parameter to transfer data of the "General Data" groupbox.
INCLUDE AM_BAPI1022_CHIND_CREATE

Description
Change parameter for "General Data" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

Description
You can use this parameter to transfer data of the "Insurance" groupbox.
INCLUDE AM_BAPI1022_CHIND_CREATE

Description
Change parameter of "Insurance" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

Description
You can use this parameter to transfer data of the "Inventory" groupbox.
INCLUDE AM_BAPI1022_CHIND_CREATE

Description
Change parameter for "Inventory" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

Description
You can use this parameter to transfer data of the "Investment accountassignment" group box.
INCLUDE AM_BAPI1022_CHIND_CREATE

Description
Change parameter for "Investment account assignment" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

Description
INCLUDE AM_BAPI1022_KEY

Description
You can use this parameter to transfer the "Leasing" group box.
INCLUDE AM_BAPI1022_CHIND_CREATE

Description
Change parameter for "Leasing" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

Description
You can use this parameter to transfer data from the "Net worth tax"group box.
INCLUDE AM_BAPI1022_CHIND_CREATE

Description
Change parameter for "Net worth tax" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

Description
You can use this parameter to transfer data from the "Origin" groupbox.
INCLUDE AM_BAPI1022_CHIND_CREATE

Description
Change parameter for "Origin" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

Description
Set the indicator, if the asset master record to be created is apost-capitalization.

Description
You can use this parameter to transfer data from the "Postinginformation" group box.
INCLUDE AM_BAPI1022_CHIND_CREATE

Description
Change parameter for "Posting information" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

Description
You can use this parameter to transfer data from the "Real estate"group box.
INCLUDE AM_BAPI1022_CHIND_CREATE

Description
Change parameter for "Real estate" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

Description
Using this parameter you can enter a company code, an asset mainnumber, and possibly an asset sub-number, to specify an asset to beused as a reference for the asset being created. The system then copiesthe fields entered in the screen layout rule of the asset class of thereference asset. This function is comparable to the function ofcreating an asset with a reference in dialog.

Default
None

Description
General documentation for TESTRUN parameter

Description
You can use this parameter to transfer data from the "Time-dependentdata" group box.
INCLUDE AM_BAPI1022_CHIND_CREATE

Description
Change parameter for the "Time-dependent data" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

Description
You can transfer data of depreciation areas using this parameter.Transfer a row in this table parameter for each depreciation area, inwhich data is to be transferred.
In addition, a row has to be transferred in the change parameterDEPRECIATIONAREASX for each depreciation area that is transferred inthis table parameter. These rows in the change parameter have tospecify the fields to be transferred.

Description
Change parameter for depreciation area data
You have to transfer a row in this change parameter for eachdepreciation area, for which data is transferred in theDEPRECIATIONAREAS parameter. The AREA field in this row has to have thesame value as the AREA field in the DEPRECIATIONAREAS parameter.
All other fields of the change parameter are allowed to have one ofthese two values:
' ' - field contents of the corresponding field of the data parameterare not transferred
'X' - field contents of the corresponding field of the data parameterare transferred

Description
INCLUDE AM_BAPI1022_EXTENSIONIN

Description
Using this table you can create investment support depreciation areason the new asset. For each investment support depreciation area, youneed a row. For each row, you fill the INV_SUPPORT_KEY fieldwith an investment support key that is valid in the chart ofdepreciation of the asset being created. The CHANGE_IND field isnot used when creating assets, and therefore can be left blank.

1613877FAQ: Timedependent data not created with asset creation
584144Expired useful life legacy data trnsfer: Error BAPI1022 004
530197Asset BAPIs cannot create any group assets