executing program in background: alv grid output ... - sap · executing program in background: alv...
TRANSCRIPT
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 1
Executing Program in Background:
ALV Grid Output Program - Output
in Background for a
Report/Program
Applies to:
This document applies to SAP ECC 6.0, SAP Netweaver 2004s. Visit the ABAP homepage.
Summary
This document depicts the execution of the report or program in a background and viewing its output. This method is important once you want to execute a heavy report in terms of processing so better to put it on the server rather than your machine and continue with the other work.
As well configuring the Spool attributes accordingly for your report or program and provide ease of accessing the import reports of transactions. Feel free to share this document to all freshers and beginners in SAP technology.
Author: Gaurav Patwari
Company: Torrent Power Ltd.
Created on: 30 September 2009
Author Bio
By education I am B.E. Information Technology, I am working as a Chief SAP ABAP Developer & SAP XI Consultant as well as SAP HCM Functional team member with Torrent Power Ltd. India’s one of the best Power Industry. My current technical work includes development with following ABAP, ABAP HR, ABAP Objects, Smartforms, BDC, BAPI, SAP Enterprise Portal, SAP Web dynepro for Java and developing various SAP XI scenarios for 3rd party system.
Executing Program in Background: ALV Grid Output Program - Output in Background for a Report/Program
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 2
Table of Contents
Executing Program in Background Having ALV Grid as Output ........................................................................ 3
1. Enter Report Transaction Code ............................................................................................................... 3
2. Enter the selection criteria in the selection screen .................................................................................. 3
3. Normal Output of your Report .................................................................................................................. 4
4. Enter Your Report T-Code Again ............................................................................................................. 4
5. The Background Print Parameters .......................................................................................................... 5
6. Spool Request Attributes ......................................................................................................................... 6
7. Note Down the Job Name ........................................................................................................................ 8
8. SM37 - Simple Job Selection ................................................................................................................... 8
9. Execute for Your job ................................................................................................................................ 9
10. Check Status of your Job. ........................................................................................................................ 9
11. Click on ABAP List ................................................................................................................................. 10
12. Output of Job on Execution Completion ................................................................................................ 10
Related Content ................................................................................................................................................ 11
Disclaimer and Liability Notice .......................................................................................................................... 12
Executing Program in Background: ALV Grid Output Program - Output in Background for a Report/Program
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 3
Executing Program in Background Having ALV Grid as Output
1. Enter Report Transaction Code
Enter the transaction code for which you wanna run the report.
2. Enter the selection criteria in the selection screen
Provide all the inputs
Execute normally and check the outputs.
Executing Program in Background: ALV Grid Output Program - Output in Background for a Report/Program
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 4
3. Normal Output of your Report
Check the Output for the report.
Now suppose it takes longer time for the execution and want to check the output for the same. So what we can do is we can run in the background.
How will the output displayed in background? Check it out, how's it possible?
4. Enter Your Report T-Code Again
Provide the inputs for the selection screen and go to Program menu -> Click on Execute in Background
Executing Program in Background: ALV Grid Output Program - Output in Background for a Report/Program
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 5
5. The Background Print Parameters
The Background print parameters dialog box appears. Click on properties button to set spool request.
Executing Program in Background: ALV Grid Output Program - Output in Background for a Report/Program
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 6
6. Spool Request Attributes
Expand the Spool request from the Spool request attributes dialog box and click on the spool request name,
double click it. Then to finish click on button
Click to continue.
Executing Program in Background: ALV Grid Output Program - Output in Background for a Report/Program
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 7
9. Schedule the job.
Click on and the above screen will change to below shown screen, then click on and job will be scheduled on name of the program.
Executing Program in Background: ALV Grid Output Program - Output in Background for a Report/Program
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 8
7. Note Down the Job Name
Above show message will be displayed.
8. SM37 - Simple Job Selection
Go to transaction SM37, below show screen will be displayed.
Executing Program in Background: ALV Grid Output Program - Output in Background for a Report/Program
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 9
9. Execute for Your job
Simple Job selection screen will be shown as shown in figure below, click on .
10. Check Status of your Job.
Check for your report in the below listed screen and check for the job status as finished, once job is finished
to check for output click on as show in the screen below.
Executing Program in Background: ALV Grid Output Program - Output in Background for a Report/Program
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 10
11. Click on ABAP List
Click on the icon show in the below figure to view the output for your report.
12. Output of Job on Execution Completion
You will see the output as shown below it will be a basic list only whatever your output format is will be converted to basic list output as show in below figure.
Note: For, comparing two report output you can compare the Figure of step 15 with Step 4.
Executing Program in Background: ALV Grid Output Program - Output in Background for a Report/Program
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 11
Related Content
https://forums.sdn.sap.com/thread.jspa?threadID=1459737
https://forums.sdn.sap.com/thread.jspa?threadID=721393
Displaying ALV Grid in Background Job
https://forums.sdn.sap.com/thread.jspa?threadID=138471
https://forums.sdn.sap.com/thread.jspa?threadID=132190
https://forums.sdn.sap.com/thread.jspa?threadID=95088 For more information, visit the ABAP homepage.
Executing Program in Background: ALV Grid Output Program - Output in Background for a Report/Program
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 12
Disclaimer and Liability Notice
This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.