Looking for someone who knows their SQL tables here.
How can I use SQL to identify the active fiscal period? I see the CSFSC table but what is the best way to determine which fiscal period start date to use? Looking at BGNDATE1, BGNDATE2, BGNDATE3, etc - is there a way to use the database to tell me either:
1. Which period is unlocked in all modules?
or
2. Today's relationship to a BGNDATE1-ENDDATE1 combination?
Curious how others have gone about this. Thanks for any ideas.