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: 

report to run in Foreground and BackGround

Adi_Bathineni
Participant
0 Kudos

HI Guru's,

I've developed one ALV Report related to SD Module Delivery Performance Report using ALV.

Now my requirement is, user should able to run run the Report in Foreground or Background.

How to do that?

If it is by SM36, let me know the process.

Thanks in Adavnce.

Regards,

Adi.

3 REPLIES 3

former_member589029
Active Contributor
0 Kudos

- Go into SM36

- put in job name (any name)

- click on step and put in your ABAP program

- Save

- go back

- click on start condition

- put in start date/time or click on immediate

- save

- On the 'Define Background Job' hit Save again

- This will create the job

However, since ALV is an online tool how are you going to present the results of the background job to the user. You can NOT use ALV in background, you have to pass the resulting data to a table or file in order for the user to see it.

Hope that helps,

Michael

Former Member
0 Kudos

Hello,

You can run the ALV program in the background by using Michael's instructions(previous post) or by using the path: Program -> Execute in background.

Of course you lose the interactive nature of ALV but the program will still run and produce ouptut.

Regards

Greg Kern

Former Member
0 Kudos

Use sm37 and sm36 transaction or simple way - goto se38 and program->execute-background

When you execute the report in backgroud output will be store as a spool request in SP01.

STEPS IN BACKGROUND SCHEDULING:

1. Use tcode SM36

2. Click Job wizard in the button set and Click Continue

3. Enter Job name and press continue

4. Select ABAP program and press Continue then enter Program name and press continue

and again press Continue

5. Set Schedule type immediately and continue

6. Select periodic job checkbox, press continue

7. Select none of the above and click on other periods – give one-minute and then press create

Press continue and then press complete.

CHeck this weblog for Displaying ALV Grid in Background Job

/people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job