FIYDPC: Depreciation charge calculation for a fiscal year

The FIYDPC entry point can be used to calculate the charge for a fiscal year instead of the standard processing for a specific depreciation mode.

Context and operating method

Call context

This entry point is called before calculating the fiscal year charge of an asset for one of its depreciation plans from a context being calculated. The fiscal year charge for an asset is calculated at three levels, "Actual", "Theoretical", "Initial". This entry point can be used to calculate the fiscal year charge for "specific" depreciation methods.

The information necessary for the calculation of an asset is available in the open masks preloaded before calculation: Fiscal year/Periods, Depreciation method, Context, Production plan, etc.
A CALDEP mask is opened for each depreciation plan to be calculated. A line of this mask corresponds to a record of the DEPREC table. Each plan has a specific abbreviation and the corresponding mask contains the data as they exist in the DEPREC table.

The fiscal year depreciation amount is stored in [M:DIV]DOTEXE. The [F:DEPC]ENDDPE, ENDDPET, ENDDPEI field inherits it later on if it is a calculation of the fiscal year charge for the "Actual", "Theoretical", "Initial" tracking. An exceptional depreciation can also be calculated in [M:DIV]AMTEXC. The [F:DEPC]EXCDPR, EXCDPRT, EXCDPRI inherits it later on depending on the tracking.

The fields of the [F:DEPC] class can be modified in the case of a "specific" mode. However, people who are not sufficiently familiar with how calculation processing works and with the consequences and impacts of such modifications are strongly advised not to make any modifications. In addition, it is imperative to control the validity of the results obtained through the different cases of management covered by the calculation: Total re-generation, method changed based on the different effective dates, reevaluation, depreciation, issue, retroactive issue, .... results that may be inadequate.

Available variables and masks

[M:DIV]: CALDIV screen containing different data used for the calculation
[M:DIV2]: CALDIV2 screen containing different data used for the calculation
[M:FIY]: CALFIY screen containing the fiscal years/periods of the context to which the plan to be calculated belongs
[M:DEP]: CALDEP screen containing the data of the depreciation plan to be calculated
[M:PPL]: CALPPL screen containing the data of the production plan
[M:TAB]: CALTAB screen containing the data concerning the vehicle reintegration cap.

[F:DEPC]: File class of the fiscal year to be calculated

The global variable G_SKPSTD must be initialized to 1. This makes it possible to skip the processing for "standard" depreciation modes.

The GOK variable can take the value 1 or 0 (1 by default). The GOK variable must be set to 0 if an error is detected and the calculation processing must be stopped. In this case, the 9100 error appears in the log file.