‎2010 Jan 07 6:34 AM
Hello gurus,
I have a requirement , I want to restrict the user to execute a particular z program only once a month ,but i don't want to maintain the any ztable for that .
kindly sugust the way.
regards,
padamaja.
‎2010 Jan 07 6:59 AM
‎2010 Jan 11 1:37 PM
Set a date-type parameter field in table TVARVC for your program. Update it when the program runs to completion, at start of program retrieve the row and if the date (or month subset) matches criteria, inform user that the report cannot be run again in the same calendar month, etc.
‎2010 Jan 11 8:39 PM
You don't have to maintain a new Z table, but you are better off maintaining some existing table like Dave suggested.
You can probably use some other method, but just make sure that there is a work-around when you really need to run the problem multiple times in a month. By using TVARV (or some other existing table), you (or basis) can clear the date field so the program can be run again when there is a legitimate need.