Stock Valuation Period Resync

Hello, I am trying to setup a recurring task for the Stock Valuation Period Resync (FUNSYNPIT) function. The question I have is how do I set the parameters for the Fiscal Year and the Period so they are always the current ones? I haven't been able to find any information on the subject. Thanks in advance for any guidance.