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

background job

Former Member
0 Likes
806

hi,

I am new to this group.I am learning abap,my doubt is in background scheduling.which jobs are scheduled in background and what is the process.plz explain.

5 REPLIES 5
Read only

Former Member
0 Likes
756

Hi Govindaraj,

Concepts and Features:



SAP background processing automates routine tasks and helps you optimize your organization’s SAP computing resources. Background processing helps to move long-running or resource-intensive program runs to times when the system load is low.

The SAP System offers sophisticated support for background processing. There is variety of methods for scheduling and managing jobs. We can run both SAP-internal and external programs. And, for easier scheduling and management, we can run related programs as "job steps" within a single background processing job, allowing a single background job to accomplish a complex task that consists of multiple processing steps.

Background work process:


Background jobs run in a special type of work process—the background work process. Background jobs can only run on those servers that offer background work processes. They are different from the normal dialog work processes in two ways:
1) Background work processes allocate memory differently than dialog work processes so that background work processes can become as large as they need to in allocated memory to allow for processing large volumes of data.
2) A dialog program has a certain limit for the maximum time that it can use a dialog work process. It is determined by the parameter rdisp/max_wprun_time. But for background jobs there is no time limit on any background work process.
Using background work processes also helps to optimize both background and dialog processing. By using separate operation modes say ‘night’ mode and ‘day’ mode, we can change the number of background and dialog work processes. I.e. During night time, when the no. of interactive (dialog) user is few, we can increase the number of background work processes to accommodate more number of background jobs.

Background jobs:


The work unit of the background processing system is the background job, each of which consists of one or more job steps. Jobs and job steps enable to treat complex tasks as single units. That is, we can schedule several programs needed to complete a particular task as steps within a single job, with the advantage of the job being single logical container for all the steps needed to complete the task.


Steps:

1. Call Transaction SM36.

2. Assign a job name. Decide on a name for the job you are defining and enter it in the Job Name field.

3. Set the job’s priority, or "Job Class": High priority: Class A, Medium priority: Class B, Low priority: Class C.

4. In the Target server field, indicate whether to use system load balancing. For the system to use system load balancing to automatically select the most efficient application server to use at the moment, leave this field empty.

· To use a particular application server to run the job, enter a specific target server

Please give me your mail ID. Will forward you step by step document for background scheduled.

Manish

Message was edited by: Manish Kumar

Read only

0 Likes
756

hi manish.

thx for u'r reply.my email id : [email protected]

when i try to run bdc thru background i get errors like raise exception why?

pls reply and sent me the steps for background schedule

Read only

0 Likes
756

If u want debug ur code which executed in background follow the below step:

1. Goto SM37 and check the check box of the backgroung job.

2. In the menu navigator just type JDBG press enter.

3. It will take you to the debugging mode.

4. Press F7 6 to 7 times, it will stop at your program.

5. Debug and see where's the problem.

Regards,

Prakash.

Read only

Former Member
0 Likes
756

HI Mani,

Welcome to SDN!!

Check the below link for more information.

Read only

Former Member
0 Likes
756

Hi Govinda,

which jobs are scheduled in background?

which will take v long time and some time it will show timeout which leads to dump.That is the reason why we run the object in back ground.

what is the process?

when u execuate the code u find the selection screen there u goto program->execuate in background.

Thanks

Vikranth Khimavath