jmathew
5th July 2010, 03:24
Hi,

We have the session "Print Statements" (tfacr3440m000) where we have the following 3 fields;
1) Invoice Period
2) Payment Period
3) Fiscal Period for Aging

We would like these fields to have one period in advance by default. For example; if the current date is 30th June 2010, the 3 periods should be "2010/07". We would like this to be set as a job and run every month. We find that the date has an option to have the current date when the job runs the session, but in case of period; is it possible to have the next period, based on the date.

Thanks and let us know if there is a way to achieve this. Thanks.

Hitesh Shah
5th July 2010, 19:07
Workaround is to have a custom program run before this job and update all the 3 periods in ttaad503 . There are good code samples available on the forum to do so without any errors.

jmathew
10th July 2010, 13:37
Hi Hitesh,

Can you give me the link to some good sample scripts for changes to ttaad503. Thanks.

Hitesh Shah
12th July 2010, 18:22
Code written by leslie in this thread (http://www.baanboard.com/baanboard/showthread.php?t=6695&highlight=ttaad503) should work .