Eddie Monster
20th September 2010, 17:55
Certain finance sessions will check a date to make sure that the associated Fiscal/Tax/Reporting period is set to an 'open' status before it will allow you to continue.

Does anyone know if this is a function call and how it may be used?

Thank you.

mark_h
20th September 2010, 18:18
Do you source code? Check function tfgld007. Not sure if there is a library that does the same thing.

Eddie Monster
20th September 2010, 18:27
Sorry I don't have source. How would I go about checking to see the function call?

mark_h
20th September 2010, 19:43
Without source you can't use the include since all it contains is source code calls. I am not sure of another way to do.

bdittmar
21st September 2010, 19:46
Sorry I don't have source. How would I go about checking to see the function call?

Hello,

something like :

SQL
FROM tfglddll4200 :

function long find.first.open.period(domain tfgld.ptyp period.type,
domain tfgld.year year,
domain tfgld.prod period)
{
table ttfgld005 |Periods |#2133-1.n
table ttfgld007 |Period Status

select tfgld007.*
from tfgld007
where tfgld007._compnr = :fcom
and tfgld007._index1 = {:period.type}
and {tfgld007.year, tfgld007.prno} >=
{:year, :period}
and tfgld007.sgld = tfgld.sper.open
order by tfgld007._index1
| as set with 1 rows |#2133-1.o
selectdo
igld0012.prno = tfgld007.prno
igld0012.year = tfgld007.year
| return(true) |#2133-1.o
select tfgld005.* |#2133-1.sn
from tfgld005
where tfgld005._index1 =
{ :period.type, :tfgld007.year, :tfgld007.prno }

order by tfgld005._index1
selectdo
if tfgld005.corr <> tcyesno.yes then
return(true)
endif
endselect |#2133-1.en
endselect
igld0012.prno = 0 |#158440.sn
igld0012.year = 0 |#158440.en
return(false)
}



should be a hint for you.

Regards