AP_CALAMT: After the calculation of the allocated amount

The AP_CALAMT entry point is used to retrieve the allocated amount calculated by employee and by base.

Context and operating method

Call context

The entry point is called after the calculation of the allocated amount on each base, after the display of the amount detail line in the log.


Variables online:

  • The IB variable is the index for the number of the bases.
  • The J variable is the index of the bases in the [F:REP] allocation file.
  • The BASE variable is the calculated base amount
  • The MONT indexed variable is the calculated allocated amount
  • The CUMBASE indexed variable is the BASE total amount
  • The MONTANT variable is the MONT total amount

For a detail line:

The code of the base is [F:BAI]CODBAS(IB-1)

The base amount is BASE

The allocated amount is MONT(J)

Online [F] classes

  • REPART [F:REP]
  • BASIND [F:BAI]