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

foreground and background

Former Member
0 Likes
1,933

hi experts

please explain for the following.

difference between foreground and background

different select queries.

thanks in advance

maaya

1 ACCEPTED SOLUTION
Read only

kiran_k8
Active Contributor
0 Likes
1,140

Maaya,

We can schedule a job as background both by coding or by using SM36.Genrally we schedule a job as a background when the execution is taking more and more time.Once the job is scheduled as a background the output will be available in the spool from where we can get the output.

If a program is having ws_upload then you can't schedule it as a background job.

If it is an ALV report which is giving the output in the form of a GRID when used REUSE_ALV_GRID_DISPLAY and scheduled as a background job you will be able to see the outpt only in the form of a list as you see when used REUSE_ALL_LIST_DISPLAY.

sy-batch is the field which determines whether a job is schedule as a foreground or background.

Sab MAAYA hi.

K.Kiran.

hi experts

please explain for the following.

difference between foreground and background

different select queries.

thanks in advance

maaya

6 REPLIES 6
Read only

varma_narayana
Active Contributor
0 Likes
1,140

Hi

Foregound means executing a program Online .

Background means executing a program exectuing a program in background i.e without user interaction. This is done by creating a JOB in Tcode SM36.

Different types of SELECTs:

1. SELECT .. ENDSELECT

2. SELECT SINGLE

3. SELECT .. INTO TABLE <ITAB>

Press F1 On the SELECT statement for more info.

reward if Helpful.

Read only

0 Likes
1,140

hi

thanks a lot for your response

regards

maaya

Read only

Former Member
0 Likes
1,140

hi,

foreground means executing the report by using f8 button(execute)

back groung means

executing the report in background,

in the sense

wen tto process large amount of data, we will execute reports in back ground and give time schedule for executing the report.

this are the syeps to execute report in back groung

from the selection screen

menu

Program-> execute in Background

give Output device as LP01(default local printer)

then by default it goes to the Sm36

then set the parameters

click on Start Condition

Click on DATE and TIME enter date scheduled Start and END times

click on Period Values

Click on HOURLY/WEEKLY etc

CLick on RESTRICTIONS also to use further criteria.

so your job will be scheduled and run as per your requirement.

and in SM37 Transaction check the status of that JOB

Check this link for scheduling jobs..

http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm

regards

siva

Read only

0 Likes
1,140

hi

thanks a lot for your response

regards

maaya

Read only

kiran_k8
Active Contributor
0 Likes
1,141

Maaya,

We can schedule a job as background both by coding or by using SM36.Genrally we schedule a job as a background when the execution is taking more and more time.Once the job is scheduled as a background the output will be available in the spool from where we can get the output.

If a program is having ws_upload then you can't schedule it as a background job.

If it is an ALV report which is giving the output in the form of a GRID when used REUSE_ALV_GRID_DISPLAY and scheduled as a background job you will be able to see the outpt only in the form of a list as you see when used REUSE_ALL_LIST_DISPLAY.

sy-batch is the field which determines whether a job is schedule as a foreground or background.

Sab MAAYA hi.

K.Kiran.

Read only

Former Member
0 Likes
1,140

hi

thanks a lot for your response

regards

maaya