cancel
Showing results for 
Search instead for 
Did you mean: 

Why does an asset depreciation interval insert (via BAPI) ask to open the prior financial year?

oppenheim_jm
Participant
0 Kudos

Hi experts

Why does the BAPI BAPI_FIXEDASSET_CHANGE return an error when inserting depreciation intervals?

I am inserting a new 2024 depreciation interval onto an asset using the BAPI_FIXEDASSET_CHANGE but the BAPI returns an error (not a warning) stating "Fiscal year 2023 is already closed in Financial Accounting".

If I temporarily open 2023, the BAPI returns a success message without warning or error.

If I do it via the front-end, it works with a warning, not an error.

How do I ignore this error when executing the BAPI?

Thanks

 

oppenheim_jm
Participant
0 Kudos
SAP ECC 6.0 EHP8

Accepted Solutions (0)

Answers (1)

Answers (1)

GavinMonteiro3
Participant
0 Kudos

Hi,

This error generally comes when FI (OB52) period is closed, but asset period is kept open. 

Hence, check if Fiscal year 2023 is closed in OAAQ for Asset accounting as well.

 

Regards,

Gavin.

oppenheim_jm
Participant
0 Kudos

Thank you @GavinMonteiro3. The work around you suggest is easy enough to do.
Was just hoping to know why the BAPI returns an error but the front-end returns a warning.

I need to implement a bulk programmatic/ABAP solution.