Application Development and Automation 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: 
Read only

Executing Background Job for daily basis

Former Member
0 Likes
2,686

Hi Gurus,

I have to execute one Report program as a background process.

I tried to use SM36.I entered the Program & Variant name and also scheduled it for daily basis.

Now i want to know do i need to write any code for this in my Report as there is one CheckBox is given on the Selectiuon screen for

the background processing.

One more thing can i get the output on the Spool?

Regards,

Amit

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,584

Hi Amit,

I have used SM36 transaction.Its working fine.Please use it.

Regards,

Ashutosh

Hi Gurus,

I have to execute one Report program as a background process.

I tried to use SM36.I entered the Program & Variant name and also scheduled it for daily basis.

Now i want to know do i need to write any code for this in my Report as there is one CheckBox is given on the Selectiuon screen for

the background processing.

One more thing can i get the output on the Spool?

Regards,

Amit

10 REPLIES 10
Read only

Former Member
0 Likes
1,584

Hi,

the output of the program will become your spool. as you are running it as background job you don't need to write any coding or check the check box in your selection screen.

rgds,

bharat.

Read only

Former Member
0 Likes
1,584

> I tried to use SM36.I entered the Program & Variant name and also scheduled it for daily basis.

> Now i want to know do i need to write any code for this in my Report as there is one CheckBox is given on the Selectiuon screen for

> the background processing.

You have to create a variant after checking the check for background processing use that variant in your batch scheduling

(you are already using the variant, check in s varaint the check box checked or not)

>

> One more thing can i get the output on the Spool?

yes you will get. if every thing fine with your code

Read only

vinod_vemuru2
Active Contributor
0 Likes
1,584

Hi Amit,

U no need to make any code changes as long as ur program is not doing any front end interactions like GUI_DOWNLOAD, ALV GRID display and dialog interactins like Popups etc.

Output is stored in spool. U can get the spools in SM37. Go to Sm37, Select date range and finished jobs check box and execute. Now if ur job finished running then u can see the spool number in next screen. Click on spool button u can see the report output.

Thanks,

Vinod.

Read only

Former Member
0 Likes
1,584

Hi Gurus,

I tried to the do same thing and the job is also created in SM37.

But i am not able to see the output which i am getting on normal execution of the report.

whenever i press the F9 key on the selection screen it goes for the Background processing but it asks for the Printer name.

Could you suggest me the printer name as it's not accepting LP01 or LOCL.

Regards,

Amit

Read only

0 Likes
1,584

Hi,

What happend when u gave LOCL. U may get one status message. Just ignore that and save the job. After finishing the execution check the result in spool in SM37 transaction.

U can schedule the job from SM36 as well with a variant.

Check and get back.

Thanks,

Vinod.

Read only

Former Member
0 Likes
1,584

Hi

Good

If you have already a check box to run the report in background than check how it is working now. If you feel to write any code for this code than write otherwise not.

As far as spool is concerned you will get a spool once you run the report in background and if everything is correct than you will get the spool once the report finish running in background.

Thanks

mrutyun^

Read only

0 Likes
1,584

Hi mrutyun,

i am developing a new report.that's why i am asking whther i need to write any code for that or not.

Regards,

Amit

Read only

Former Member
0 Likes
1,585

Hi Amit,

I have used SM36 transaction.Its working fine.Please use it.

Regards,

Ashutosh

Read only

Former Member
0 Likes
1,584

Hi,

Whenever i give printer name it's giving error message "Output device LP01 is locked in the SAP system".

Please suggest what's hould i do.

It's urgent.

Regards,

Amit

Read only

Former Member
0 Likes
1,584

Thanks a lot for your support