cancel
Showing results for 
Search instead for 
Did you mean: 

error while creating asset from a contract

charmaine_m18
Explorer
0 Kudos

Hi All,

I'm getting an error AY 218 - no change parameter given for depreciation area 00.

but there is no depreciation area 00 in the chart of depreciation.

please suggest.

Regards,

Charmaine

View Entire Topic
andre_nakratzas
Advisor
Advisor
0 Kudos

Hi the problem could be in the BAdI implementation. Based on some previous incidents please see the following explanation:

The long text of the error message shows the following:

Short Text

No change parameter given for depreciation area &1

Diagnosis

During creation or change of an asset using function module ASSET_MASTERRECORD_MAINTENANCE, you want to assign values to the fields of depreciation area . However, you did not transfer a line for depreciation area in the change parameter T_ANLBX or DEPRECIATION_AREASX in the call of BAPIs FIXEDASSET_CREATE and FIXEDASSET_CHANGE .

From previous messages this was the response:

The reason for the error is that you are not informing the BAPI which contents are to be performed. For each table that you transfer values, like DEPRECIATIONAREAS, there is a table bellow with suffix X, like DEPRECIATIONAREASX. This kind of tables controls the fields that are to be transferred.

Check bellow the long text of error message AY218:

Diagnosis

During creation or change of an asset using function module
ASSET_MASTERRECORD_MAINTENANCE, you want to assign values to the fields
of depreciation area . However, you did not transfer a line for
depreciation area in the change parameter T_ANLBX or
DEPRECIATION_AREASX in the call of BAPIs FIXEDASSET_CREATE and
FIXEDASSET_CHANGE .

Check the documentation of DEPRECIATIONAREAS table:

Description

You can transfer data of depreciation areas using this parameter.
Transfer a * in this table parameter for each depreciation area, in
which data is to be transferred. In addition, a * has to be transferred in the change parameter
DEPRECIATIONAREASX for each depreciation area that is transferred in
this table parameter. These rows in the change parameter have to specify
the fields to be transferred.

Function Module

BAPI_FIXEDASSET_CREATE1

Now the documentation for DEPRECIATIONAREASX table:

Description Change parameter for depreciation area data

You have to transfer a * in this change parameter for each
depreciation area, for which data is transferred in the
DEPRECIATIONAREAS parameter. The AREA field in this * has to have the
same value as the AREA field in the DEPRECIATIONAREAS parameter.

All other fields of the change parameter are allowed to have one of
these two values:
' ' - field contents of the corresponding field of the data parameter
are not transferred

'X' - field contents of the corresponding field of the data parameter
are transferred

Please check with a developer if these criteria are met. If not please proceed to log an OSS message.

Regards, Andre

charmaine_m18
Explorer
0 Kudos

Thanks Andre,

This issue was resolved as the developer identify a user enhancement in the BADI which was causing the error.

Regards,

Charmaine