Fonction SAP BAPI_FIXEDASSET_CREATE - 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
ASSET BAPI1022_1-ASSETMAINO C 12 X Main Asset Number
COMPANYCODE BAPI1022_1-COMP_CODE C 4 Company Code
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
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
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
SUBNUMBER BAPI1022_1-ASSETSUBNO C 4 X Asset Subnumber
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
ASSETCREATED BAPI1022_REFERENCE u 20 Asset Created
RETURN BAPIRET2 u 548 Information about Errors which Occurred

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

Functionality
Caution! Method CreateFromData will not be supported in the future.Method CreateFromData1 will take over its functions on the same objecttype (BUS1022).
If you have already used the CreateFromData method, then you have tochange over to using the new method.
If you are planning to use the CreateFromData for the first time, donot use it. Instead use the CreateFromData1 method.

Notes
You need the same authorizations for creating an asset using thismethod as you do for creating an asset in dialog mode.

Description
In this parameter, the system returns the key of the asset created,which consists of the company code, main asset number and assetsub-number.

Description
This parameter returns information on any errors that may occur whenyou create an asset master record.

Value range
The fields of this 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 filled
E BAPI1022 002 Par. ASSET not filled (when creating sub-number)
E BAPI1022 003 Master data field not changeable
E BAPI1022 004 Depreciation area field not changeable
E BAPI1022 005 Depreciation area not defined
In addition, these parameter can return additional system messages fromclasses (IDs) AA and AY, which are also issued when assets are createdin dialog mode.
In certain cases, the fields PARAMETER, ROW and FIELD of the RETURNparameter are also filled. They inform you in which field, in whichentry parameter (and in the case of table parameters DEPRECIATIONAREASand DEPRECIATIONAREASX: in which table row) the cause of the error canbe found.
This information is especially important for system messages number 003and 004 in class BAPI1022.

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

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

Description
You can use this parameter to transfer a main asset number.Transferring a main asset number is only allowed if the new asset isbeing created in an asset class with external number assignment. Ifthis requirement is fulfilled, it is also mandatory that you enter amain asset number.

Default
None

Description
You have to transfer the company code using this paramter. Entering acompany code is mandatory for creating a fixed asset.

Default
None

Description
You can use this parameter to specify that you are creating an assetsub-number rather than an main asset number.

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

Default
' '

Description
You can use this parameter to transfer the data of the "General Data"group box.
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 the data of the "Insurance"group box.
INCLUDE AM_BAPI1022_CHIND_CREATE

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

Description
You can use this parameter to transfer the data of the "Inventory"group box.
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 the data of the "InvestmentAccount Assignment" group box.
INCLUDE AM_BAPI1022_CHIND_CREATE

Description
Change parameter for "Investment Account Assignment" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

Description

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

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

Description

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

Description
Change parameter for "Net Worth Valuation" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

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

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

Description
You can use this parameter to transfer the data of 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 the data of the "Real Estate"group box.
INCLUDE AM_BAPI1022_CHIND_CREATE

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

Description
You can use this parameter to specify an asset that should be used as areference for the asset you are creating. You make this specificationby entering a company code, an asset main number, and possibly an assetsub-number. The system transfers the fields from the reference assetthat are specified in the screen layout control of the asset class.This function corresponds to the function in dialog mode for creatingan asset using a reference.

Default
None

Description
You can transfer an asset sub-number using this parameter. Transferringan asset sub-number is only allowed, if an asset (main number orsub-number) is being created in an asset class with external numberassignment. If the asset is being created in an asset class withexternal number assignment, entering an asset sub-number is mandatory.

Default
None

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

Description
Change parameter for "Time-Dependent Data" group box.
INCLUDE AM_BAPI1022_CHIND_DEF

Description
You can use this parameter to transfer data of depreciation areas.Therefore, you should transfer a line in this table parameter for eachdepreciation area that you want to transfer to the data.
In addition, you have to transfer a line in the change parameterDEPRECIATIONAREASX for each depreciation area that you transfer in thistable parameter. The fields to be transferred must be specified inthese lines.

Description
Change parameter for depreciation area data
You have to transfer a line in this change parameter, as well, for eachdepreciation area, for which data is transferred using theDEPRECIATIONAREAS parameter. The AREA field in this line must have thesame value as the AREA field in the DEPRECIATIONAREAS parameter.
All other fields of the change parameter are allowed to have one of twovalues:
' ' - 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