Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

stop multiple execution of program

Former Member
0 Likes
726

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.

3 REPLIES 3
Read only

Former Member
0 Likes
525

Hi,

Try some thing like this.

1. Use FM - SAPWL_WORKLOAD_GET_STATISTIC to get statistics of Transaction..

also check

2. Check whether report executed in last one month and proceed accordingly..

Hope this helps..

Nag

Read only

Former Member
0 Likes
525

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.

Read only

Former Member
0 Likes
525

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.