learner
8th February 2005, 07:06
Hi,
I have a form filter as Year and Period, now on the basis of this I would like to find the start and End Date for the period, can anybody tell me which is the standard dll which takes year/period as input and gives me Start and End date ?
or any session which might be using this sort of functionality. I am on
BaaN V c.
Waiting for your reply.
Regards
Learner
baanprog
9th February 2005, 07:58
You can see include tfgld0012.
Otherwise goto query in the programs or dll and for description use LIKE and put .*Period.* and it will give you all dll's or includes.
This is the fastest and easiest way.
Regards
learner
9th February 2005, 11:48
Hi,
Well i could able to find the function, its itfgld0009
itfgld0012 will not server the purpose because i am passing year and period as input where as itfgld0012 takes date as input.
Regards
Learner
greasedman
9th February 2005, 12:17
Otherwise, you colud use simply standard function date.to.num like following:
first.year.day = date.to.num(yrno, 1, 1)
last.year.day = (date.to.num((yrno + 1), 1, 1) - 1)
first.month.day = date.to.num(yrno, period, 1)
if period = 12 then
last.month.day = (date.to.num((yrno + 1), 1, 1) - 1)
else
last.month.day = (date.to.num(yrno, (period + 1), 1) - 1)
endif
then use those variables to check the date.
BaanInOhio
3rd August 2011, 19:29
Does anyone know where / if these functions were renamed or moved elsewhere in LN? Specifically looking for functions tfgld0001 (get company parameters), tfgld0002 (get group parameters), tfgld0006 (get dimension description), tfgld0007 (check if period is open), tfgld001 (get companies per group company), and tfgld0012 (get period and year from date). These are used in a Baan V script that I am upgrading to LN.
Would rather use something that is present before writing the functions in LN.
zardoz
3rd August 2011, 20:02
In LN, a lot of includes were rewritten as DLLs.
By example the include tcmcs0095 "read parameters" became tcmcsdll0095.
In some cases, the name is almost the same, in other case not, because some functions were included in one bigger DLL with a different code, so the better way to do is to check the DLLs of tfgld module...