Fonction SAP BAPI_FIXEDASSET_CHANGE - Changes 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 Main Asset Number
COMPANYCODE BAPI1022_1-COMP_CODE C 4 Company Code
GENERALDATA BAPI1022_FEGLG001 u 223 X General Data
GENERALDATAX BAPI1022_FEGLG001X u 11 X Change Parameters for General Data
GROUPASSET BAPI1022_MISC-XANLGR C 1 X Indicator: Asset is a group asset
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
SUBNUMBER BAPI1022_1-ASSETSUBNO C 4 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
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
INVESTMENT_SUPPORT BAPI1022_INV_SUPPORT 3 X Investment Support Key

Functionality
Using this method, you can change asset master records.

Notes
In order to change a fixed asset using this method, you need to have thesame as authorization as for changing an asset in dialog mode.

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

Value range
The fields of this parameter can have the following values:
TYPE ID NUMBER Meaning
E BAPI1022 008 Asset was changed
S AA 291 No changes were made
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 changedin 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 group box for "Allocations."
INCLUDE AM_BAPI1022_CHIND_CHANGE

Description
Change parameter for group box "Allocations"
INCLUDE AM_BAPI1022_CHIND_DEF

Description
You have to transfer the main asset number using this parameter.Entering a main asset number is mandatory in order in order for thesystem to identify the asset to be changed.

Default
None

Description
You have to transfer the company code using this parameter. Entering acompany code is mandatory in order in order for the system to identifythe asset to be changed.

Default
None

Description
You can use this parameter to transfer the data of the "General Data"group box.
INCLUDE AM_BAPI1022_CHIND_CHANGE

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

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

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

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

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

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_CHANGE

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

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

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

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

Description
Change parameter for "Net Worth Tax" 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_CHANGE

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_CHANGE

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_CHANGE

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

Description
You have to transfer the asset sub-number using this parameter.Entering an asset sub-number is mandatory in order in order for thesystem to identify the asset to be changed.

Default
None

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

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

Description
Using this table, you can add, or change or delete existing investmentsupport depreciation areas on a fixed asset.

  • Add investment support depreciation areas

  • You need a row for each new investment support depreciation area. Foreach row, fill the INV_SUPPORT_KEY field with an investmentsupport key that is valid in the chart of depreciation to which theasset being created belongs. The CHANGE_IND field has to containan 'I' for 'Insert'.
    • Delete investment support depreciation areas

    • To delete an existing investment support depreciation area in an assetto be changed, enter the investment support key in a row of the tablein the INV_SUPPORT_KEY field. Set the CHANGE_IND field to'D' for 'Delete'.
      • Change investment support depreciation area

      • To replace an existing investment support depreciation area with adifferent one in the asset being changed, you have to first delete theold area and then add the new one. For this you need two rows in thetable. In the first, you fill the INV_SUPPORT_KEY field with theinvestment support key of the existing depreciation area, and set theCHANGE_IND to 'D' for 'Delete'. The second row has to containthe investment support key of the new depreciation area in theINV_SUPPORT_KEY field, and an 'I' in the CHANGE_INDfield.
        Example:
        Investment support key I1 exists in the asset master record. Youwant to change the support key to I2. The table should then looklike this:
        ,,INV_SUPPORT_KEY,,CHANGE_IND
        ,,I1,,D
        ,,I2,,I

1451307Restrictions when using time-dependent depreciation terms
1344956BAPI_FIXEDASSET_CHANGE: Dump SAPSQL_ARRAY_INSERT_DUPREC