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: 

background job

Former Member
0 Kudos

Can anyone tell me hwo to schedule a program as

a background job and how to execute it .

6 REPLIES 6

Former Member
0 Kudos

Follow the following path:

In the ABAP editor: Program> execute> Backgroud>Select the variant if you have any>Click on execute immediately or Schedule it.

Good luck.

Please close the issue with appropriate points if helpful.

Venu

ferry_lianto
Active Contributor
0 Kudos

Hi Pavan,

To execute the job in background press F9 instead of F8.

Uncheck the print option then press OK. Now press immediate, then save.

Now it will show a message saying that job scheduled in background.

Go to SM37 press F8, now you can see the jobname and the status if it is finished it will create an spool. Then click the jobname and the spool in the toolbar u can see the list created. then click and see the output list generated.

If it is canceled then some error has occured, so you can chose the job and put jdbg in the command prompt and start debugging and check where it fails.

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

Former Member
0 Kudos

Former Member
0 Kudos

Hi !

Here's how to do it - in this example to create a periodic job... just try it...

First - create a Report-Variant for your print programm using the SE38.

Then...

1.) Call the transaction SM36

Enter a Job Name / You may set a job class other

than 'C' (See online Help on that field).

2.) Push the STEP Button

3.) Push the ABAP Program button

Enter der programm name an the variant name

save that window

4.) Push "BACK"

5.) Push "Start Condition"

6.) Push Date/Time

Enter Date + Time for the first start

Mark "Periodic Job" !!

7.) Push "Period Values"

Set the period you want the job to be started

Save everything

That should work....

Regards

Rainer

Some points would be fine if that helped you a bit...

0 Kudos

Use SM36 and create the Back ground Job.

read this SAP help for Job Scheduling.

http://help.sap.com/saphelp_nw04/helpdata/en/ef/2c513897110872e10000009b38f889/frameset.htm

vinod_gunaware2
Active Contributor
0 Kudos

Schedule Background Job without selections parameters

Execute transaction SM36

Click Steps

Click ABAP/4 and type in the program name

Click Save

Finally fill in the Start date

In 4.6x, SAP provide a friendly GUI transaction code SM36WIZ for users to submit jobs in the background.

Schedule Manager

Automate your routinue task with Schedule Manager. It facilitate the definition, scheduling, execution, and review of tasks that are executed on a regular basis, such as period-end closing.

SCMA - Schedule Manager

Checking your program Background Job Status

Checking your job status with SM50 (processor type BTC) is more accurate then SM37. SAP updates the tables TBTCO wheneveryour background jobs status change. If SAP is shutdown, the currentjobs might not be update ontime to the table. ( e.g. a background job wasshown as Active (SM37), in fact it real status should be Cancelled.

The type of work process:

DIA - work process for executing dialog steps in user transactions

UPD - update process for executing U1 (time-critical) database changes

UP2 - update process for executing U2 (non-critical) database changes

ENQ - for setting and releasing locks on SAP lock objects

BTC - for executing background jobs

SPO - for spool formatting processes

PID: Process ID of the work process.

Change the variants or SAP Printers of scheduled background jobs

SM37 - At the Job Overview screen, position your cursor at the scheduled jobs you want to changed (the jobs status must still be Released)

Click Job -> Change

Click the Steps button -> here you can move, add or delete addition programs steps to be run

Double click the program name you want to change

Click the Print specifications button if you want to change the SAP printers

regards

vinod