project QadFinancials > class BGLCalendar > method GetAvailableYears

Description

This method is used to get all available calendar year by input domain_id.


Parameters


iiDomainIdinputintegerDomain ID.
tAvailableYearsoutputtemp-tableTemp table to store Domain_id and available calendar years.
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program6/bglcalendar.p)

if iiDomainId = 0 or
   iiDomainId = ?
then assign iiDomainId = viDomainID.

<Q-1 run GLCalendarByYearDistinct (all)  (Read)  (NoCache)  (input iiDomainID, (DomainId)
                                   output dataset tqGLCalendarByYearDistinct) in BGLCalendar >
                                   
assign vhAvailableYears = temp-table tAvailableYears:handle.
vhAvailableYears:copy-temp-table(temp-table tqGLCalendarByYearDistinct:handle).