‎2006 Dec 08 10:56 AM
Hi all,
I have a requirement where the user enters start date and end date in the selection screen and if the number days is more than 30 i need to run that report in background if the number of days is less than 30 days then i need to run in foreground.
How to run the report in background?
Thanks and regards,
Ram.
‎2006 Dec 08 10:59 AM
Hi
In the AT SELECTION SCREEN event
Write the logic to get the number of days
If number of days gt 30 then
give an error message saying 'Interval is greater than 30 Please process in background'
This will enable the user himself to process the program in background
‎2006 Dec 08 10:59 AM
Hi
In the AT SELECTION SCREEN event
Write the logic to get the number of days
If number of days gt 30 then
give an error message saying 'Interval is greater than 30 Please process in background'
This will enable the user himself to process the program in background
‎2006 Dec 08 11:05 AM
Hi Dominic,
That was a nice suggestion, but iam not sure if the customer would accept the same. I will suggest this and see what the customer has to say.
In the mean time is there a way that we can provide a message and execute the report in background instead of allowing the user to run the report in background?
Thanks and Regards,
Ram.
‎2006 Dec 08 11:31 AM
hi,
Create a new report and then check for the conditons during the execution of your parent report and then if the condition is satisfied submit the second report in back ground using JOB_OPEN, JOB_SUBMIT, JOB_CLOSE.
if not then just SUBMIT the child report...this is the only way to do it I feel.
‎2006 Dec 08 11:40 AM
Hi Akash,
That is a very helpful answer. I will try this and let you know.
Thanks and Regards,
Ram.