‎2012 Dec 14 3:34 PM
Hello All,
My requirement is to schedule a job for a report for every month and trigger that manually. A we don't have specific time when we have to pull the data from the reports.So we have to schedule the job(consist of 20 variants) for that dates but should be able to run the job manually as and when required on that particular day. say suppose we have to get till 2 PM for that date then I should be able to run this job manually at 2 PM.
Please let me know how can this be achieved..
‎2012 Dec 14 3:38 PM
Why don't you create a report and a transaction for it which can be executed as and when required?
‎2012 Dec 14 3:49 PM
Hi vachna,
can you please clarify, I am a bit confused as you want to schedule it or you want it to be run manually. Please correct if I am getting wrong, although I think I am wrong.
All I am getting here to schedule a batch job for every month, and unless there is manual interpretation it should not be executed.
In that case(iff I am correct) what I would suggest is to create a notification by e-mail every month to support group to execute it. The problem here is if we had notified to run it say at 2 PM and support team misses it by say 2 hours then it should get automatically executed.
Blah blah blah... I am sorry I am confused, please clarify.
HAPPY ABAPing
‎2012 Dec 14 4:02 PM
Hello Akshat.. I cant create a custom report as it is standard transaction F.01 and creating a similar report to standard is time taking and we dont wan to.
Hi Vishal,
Yes you are right I have to schedule a batch job every month and unless there is manula interpretation is should not be executed, Can you tell me how this can be handled.
‎2012 Dec 14 4:18 PM
But you don't need to create a report similar to the standard one. You can simply call the transaction in your report.
‎2012 Dec 14 4:28 PM
Akshat: I have 20 variants in that standard report and I thought to schedule a single job for that 20 variants and it be able to trigger manually. how can this be done by call transaction in the custom report please let me know.
‎2012 Dec 14 4:40 PM
Have you considered using SUBMIT USING SELECTION-SET <variant>?
‎2012 Dec 14 5:02 PM
Hi Vachana,
Akshat is right it will be the best way to do it.
report my_scheduled_report.
if sy-batch <> 'X'.
submit my_report using selection-set my_variant and return.
else.
send notification mail to support team.
"raise my_exception to make batch job failed. Not needed as you are already sending mail.
"incase if you have configured sm35 to mail failed reports you dont need to send mails from here.
"It seem like that will be better.
endif.
HAPPY ABAPing