PROTYP: Determination of the prorata type

The PROTYP entry point is used to determine the type of prorata to be applied in all the functions on the dates used during the depreciation calculation for a "specific" depreciation mode.

Context and operating method

Call context

This entry point is called in order to determine the type of prorata used for the calculation of a "specific" depreciation mode.

The value of the prorata type to be used for the "specific" mode must be defined in the RTYPPRO field. The values for prorata types can be found in the local menu no. 3105 (this local menu cannot be modified).

Available variables

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 9120 error appears in the log file.

STRDPCDAT: Determination of the depreciation start date

The STRDPCDAT entry point is used to determine the adjusted depreciation start date for a "specific" depreciation mode.

Context and operating method

Call context

This entry point is called in order to determine the adjusted depreciation start date for a "specific" mode. It can be: a specific day, start of the month, start of the following month, start of the following semester, start of a two-week period, etc.

In the case of a "specific" mode, the effective depreciation start date must be defined in the RDTDBAMTREG field.

Available variables

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 9130 error appears in the log file.

ISSDAT: Determination of the adjusted issue date

The ISSDAT entry point is used to determine the adjusted issue date for a "specific" depreciation mode.

Context and operating method

Call context

This entry point is called in order to determine the adjusted issue date for a "specific" mode. It can be: a specific day, end of the month, etc.

In the case of a "specific" mode, the effective issue date must be defined in the RDATSORREG field.

Variables available

The G_SKPSTD global variable 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 9140 error appears in the log file.

ENDDPCDAT: Determination of the depreciation end date

The entry point ENDDPCDAT is used to determine the adjusted depreciation end date for a "specific" depreciation mode.

Context and operating method

Call context

This entry point is called in order to determine the adjusted depreciation end date for a "specific" mode. It can be: a specific day, end of the month, end of the following month, end of the following semester, end of a two-week period, etc.

In the case of a "specific" mode, the effective depreciation end date must be defined in the RDTFNAMT field.

Available variables

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 9150 error appears in the log file.