2016 Mar 07 1:48 PM
Hi all,
So basically I am wanting to check to see if a table or report is empty and if it is, send a notification email.
Therefore, my current code is IF tablename is initial
CALL FUNCTION 'Z SEND EMAIL'
My question is I want this to check once a day if this report or table is empty. So if the report is empty for the day, send the email.
How do I go about adding the check by date part?
Thanks
Hi all,
So basically I am wanting to check to see if a table or report is empty and if it is, send a notification email.
Therefore, my current code is IF tablename is initial
CALL FUNCTION 'Z SEND EMAIL'
My question is I want this to check once a day if this report or table is empty. So if the report is empty for the day, send the email.
How do I go about adding the check by date part?
Thanks
2016 Mar 07 1:58 PM
2016 Mar 07 2:03 PM
Either plan a job only once per day.
Or there is the option of creating a parameter (in TVARVC for instance) where you keep track of the last time the report has ran (or mail has been send). Don't forget to to update the parameter when each time a mail has been send of course.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |