Application Development 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: 

Is it possible to RESTORE cancelled job and run it.

Former Member
0 Kudos
489

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.

1 ACCEPTED SOLUTION

ThomasZloch
Active Contributor
0 Kudos
155

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

8 REPLIES 8

viquar_iqbal
Active Contributor
0 Kudos
155

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

ThomasZloch
Active Contributor
0 Kudos
156

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

0 Kudos
155

Hi Zloch,

Thanks for your quick reply.

It runs in production daily. Is there any other alternative?

Regards

0 Kudos
155

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

0 Kudos
155

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.

0 Kudos
155

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

0 Kudos
155

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.

0 Kudos
155

Thankyou Zloch