2009 Feb 11 12:19 PM
Hello Experts,
This question is regarding restoring old background jobs which were cancelled.
I have a report which runs in background with one variant. The report has a date as a selectionscreen input. This date is used by the program as field AUDAT to get the Sales orders from VBAK. The purpose of the program is to fetch the Sales Orders on a daily basis.
So I scheduled a job for this report on a daily basis. I created a variant and I used the selection variable 'current date in the attributes of variant for the date field(AUDAT) of selection screen.
So the background job will run daily by passing that days date to AUDAT field.
My problem is 2 days back the job got cancelled. Today is it possible to restore that old job and fetch the Sales Orders for which AUDAT is 2 days back from today?
Today I tried to reschedule that cancelled job, but I am getting the sales orders for which AUDAT is todays date but not 2 days back date.
Can you people please help me.
2009 Feb 11 12:27 PM
Can't you start the underlying program directly, select the variant and overwrite the date with the desired value, then run it in background via F9 ?
Thomas
2009 Feb 11 12:26 PM
HI
you can search the background job in tables TBTCO & TBTCP and get the sales order details from it
Hope it helps
Thanks
Viquar Iqbal
2009 Feb 11 12:27 PM
Can't you start the underlying program directly, select the variant and overwrite the date with the desired value, then run it in background via F9 ?
Thomas
2009 Feb 11 3:12 PM
Hi Zloch,
Thanks for your quick reply.
It runs in production daily. Is there any other alternative?
Regards
2009 Feb 11 4:00 PM
Yes it runs daily, but don't you want a one-time out-of-schedule run of the program to give you the output based on a past date? Then my above suggestion still applies, otherwise I'm lost.
Zloch
2009 Feb 11 4:09 PM
Yeah you are correct. but the problem is that the output of that report should go from spool to one email recepient after the job completion. The job was created like that. Finally one report goes to the recepient. Kindly suggest how to resolve this?
Regards.
2009 Feb 11 4:47 PM
Alrighty, then copy the normal variant to a new variant with the date fixed to the desired value (instead of system date), and schedule a copy of the existing job for one-time execution and that new variant.
Leave the existing job as is.
Thomas
2009 Feb 12 1:33 PM
Hi Zloch,
That is a perfect solution. Thanks. Thankyou very much. I implemented that. But I got another problem. I implemented as you directed, but the job got cancelled. In the Job Log I am seeing the message 'ABAP/4 processor: EXPORT_INIT_COMPRESS_FAILED'. When I double clicked it, it taken me to the short dump of that error and the short text is 'Compression error with EXPORT'. It said that the Error is in the SAP kernel and the current ABAP "SAPLSLST" program had to be terminated because the ABAP processor detected an internal system error. It has shown that the error is in include LSLSTF06 of program SAPLSLST. But my program has not used any of these includes and function modules.
Can you please suggest what could have went wrong? Did I do anything wrong while creating the variant or backgrond scheduling?
Please let me know your kind suggestions.
Regards.
2009 Feb 25 11:47 AM