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 processing

Former Member
0 Likes
1,108

how to execute the report in back ground

9 REPLIES 9
Read only

Former Member
0 Likes
1,056

Hi

o Solution: Execute the Report à in the selection screen:

o After filling the screen fields press F9.

o A screen appears requesting U to print the Background Parameters *Enter the output device (Eg HPLJ /SAP2 etc)

o In the spool options Uncheck Print immedietly, Uncheck delete after output, and new spool request.

o Press enter. Another screen appears with heading start time .U can press start immediate, and then save now the Background job is scheduled for the given program.

o To View the status of background Job, The transaction code is SM37.

o Execute from the resulting screen Job overview -->From the Job list select U’r program and select Spool from the application toolbar Output Controller: List of Spool Requests Select U’r Spool request and click Display icon from the overview screen. U will be displayed with the List. Caution: See to that the list with does not exceed 255 columns, If it exceeds the extra columns will be truncated in Background

**Please reward suitable points***

With Regards

Navin Khedikar

Read only

Former Member
0 Likes
1,056

Hi Chayaarungupta,

For executing the report in background, go to SM36 and schedule it for background processing . There you can schedule it for a particulat time and date.

And you can view the status of the scheduled job in SM37 at a later time.

Hope this is helpful.

Reward all the helpful answers.

Regards

Read only

alex_m
Active Contributor
0 Likes
1,056

Use SM36 for back ground processing.

Read only

amit_khare
Active Contributor
0 Likes
1,056

Use SM36.

Or in SE38 when you execute it click on the program on the tool bar and select 'Execute in Background'.

Regards,

Amit

Read only

Former Member
0 Likes
1,056

Hi,

after executing the report, from selection screen you can put the report in BACKGROUND : Program -> execute in Background.

Or from SM36 define a job. enter program and program variant name

and schedule the job with you own desired time.

and start.

you can moniotr the job in SM37 Transaction.

regards,

Anji

Read only

Former Member
0 Likes
1,056

1. The answer to your question is :

the FM

GET_JOB_RUNTIME_INFO

2. Use this FM inside the code

of your report.

3. It will give you various details like.

EVENTID

EVENTPARM

EXTERNAL_PROGRAM_ACTIVE

JOBCOUNT

JOBNAME

STEPCOUNT

there are two parts of it -

a. you have some exceptions & you run report in background & are informed if exception occurs, for that kind of scenario look at -

http://help.sap.com/saphelp_bw33/helpdata/en/d3/a850390aa3b608e10000000a11402f/content.htm

b. Without exception you can play with WEb template & get informed -- I am not very sure.see this --

http://help.sap.com/saphelp_bw33/helpdata/en/9e/9f653ade969f4de10000000a114084/content.htm

If you are on BW350, it can be achieved by Information Broadcasting feature. see this -

http://help.sap.com/saphelp_nw04/helpdata/en/a5/359840dfa5a160e10000000a1550b0/content.htm

Hope it helps

Thanks

Vasanth

Read only

Former Member
0 Likes
1,056

Chaya,

If you want to execute the job in background .There are 2 options.

1.Online

Goto se38-->enter program name >(On menu bar) program>

Exceute-->Background.

2.Schedule

Scheduling Background Jobs:

1. Background jobs are scheduled by Basis administrators using transaction SM36.

2. To run a report in a background, a job needs to be created with a step using the report name

and a variant for selection parameters. It is recommended to create a separate variant for each

scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g.

company codes).

3. While defining the step, the spool parameters needs to be specified

(Step-> Print Specifications->Properties) to secure the output of the report and help authorized users

to find the spool request. The following parameters needs to be maintained:

a. Time of printing: set to “Send to SAP spooler Only for now”

b. Name – abbreviated name to identify the job output

c. Title – free form description for the report output

d. Authorization – a value defined by Security in user profiles to allow those users to access

this spool request (authorization object S_SPO_ACT, value SPOAUTH). Only users with matching

authorization value in their profiles will be able to see the output.

e. Department – set to appropriate department/functional area name. This field can be used in

a search later.

f. Retention period – set to “Do not delete” if the report output needs to be retained for more

than 8 days. Once the archiving/document repository solution is in place the spool requests could

be automatically moved to the archive/repository. Storage Mode parameter on the same screen

could be used to immediately send the output to archive instead of creating a spool request.

Configuring user access:

1. To access a report output created by a background job, a user must have at

least access to SP01 (Spool requests) transaction without restriction on the user

name (however by itself it will not let the user to see all spool requests). To have

that access the user must have S_ADMI_FCD authorization object in the profile with

SPOR (or SP01) value of S_ADMI_FCD parameter (maintained by Security).

2. To access a particular job’s output in the spool, the user must have

S_SPO_ACT object in the profile with SPOAUTH parameter matching the value used

in the Print Specifications of the job (see p. 3.d above).

3. Levels of access to the spool (display, print once, reprint, download, etc) are

controlled by SPOACTION parameter of S_SPO_ACT. The user must have at least

BASE access (display).

On-line reports:

1. Exactly the same configuration can be maintained for any output produced

from R/3. If a user clicks “Parameters” button on a SAP Printer selection dialog, it

allows to specify all the parameters as described in p. 3 of

“Scheduling background jobs” section. Thus any output created by an online report

can be saved and accessed by any user authorized to access that spool request

(access restriction provided by the Authorization field of the spool request

attributes, see p. 3.d of “Scheduling background jobs” section).

Access to report’s output:

1. A user that had proper access (see Configuring user access above) can

retrieve a job/report output through transaction SP01.

2. The selection screen can be configured by clicking “Further selection

criteria…” button (e.g. to bring “Spool request name (suffix 2)” field or hide other

fields).

3. The following fields can be used to search for a specific output (Note that

Created By must be blank when searching for scheduled job’s outputs)

a. Spool request name (suffix 2) – corresponds to a spool name in p. 3.b in

“Scheduling background jobs” section above).

b. Date created – to find an output of a job that ran within a certain date range.

c. Title – corresponds to spool Title in p. 3.c in “Scheduling background jobs”

section above).

d. Department - corresponds to spool Department in p. 3.e in “Scheduling

background jobs” section above).

4. Upon entering selection criteria, the user clicks the Execute button to

retrieve the list of matching spool requests.

5. From the spool list the user can use several function such as view the

content of a spool request, print the spool request, view attributed of the spool

request, etc. (some functions may need special authorization, see p.3 in

Configuring user access)

a. Click the Print button to print the spool request with the default attributes

(usually defined with the job definition). It will print it on a printer that was

specified when a job was created.

b. Click the “Print with changed attributed” button to print the spool request

with the different attributes (e.g. changing the printer name).

c. Click the “Display contents” button to preview the spool request contents. A

Print and Download functions are available from the preview mode.

Pls. reward if useful

Read only

Former Member
0 Likes
1,056

Hi,

U can go to SM36 and schedule backgound processing other option is press F8

give selection screen inputs and then go to program and can select execute in background . U have to give the time and date and select jobs after which u want to execute and after this u have to go to SM37 and give the jobname and can see the output after the given time.

Think will be helpful for u .

Regards,

Ravi Kumar

Read only

Former Member
0 Likes
1,056

Hi,

execute the report, from selection screen.

follow the menu path : <b>Program -> execute in background.</b>aftet then goto SM37 , and execute it. here u can find the jobs that are scheduled in background in pertucular date range.

OR

In SM36 define a job. enter program and program variant name

and schedule the job with you own desired time.

and start executing it.

you can check that job in SM37 Transaction.

Regards,

Sujatha.