Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

download Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

of 12

Transcript of Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

  • 7/26/2019 Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

    1/12

    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 - Outputin Background for aReport/Program

    Applies to:

    This document applies to SAP ECC 6.0, SAP Netweaver 2004s. Visit theABAP homepage.

    Summary

    This document depicts the execution of the report or program in a background and viewing its output. Thismethod is important once you want to execute a heavy report in terms of processing so better to put it on theserver 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 accessingthe import reports of transactions. Feel free to share this document to all freshers and beginners in SAPtechnology.

    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 ABAPDeveloper & SAP XI Consultant as well as SAP HCM Functional team member with Torrent

    Power Ltd. Indias one of the best Power Industry. My current technical work includesdevelopment with following ABAP, ABAP HR, ABAP Objects, Smartforms, BDC, BAPI, SAPEnterprise Portal, SAP Web dynepro for Java and developing various SAP XI scenarios for3rd party system.

    https://www.sdn.sap.com/irj/sdn/abaphttps://www.sdn.sap.com/irj/sdn/abaphttps://www.sdn.sap.com/irj/sdn/abaphttps://www.sdn.sap.com/irj/sdn/abap
  • 7/26/2019 Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

    2/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 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

  • 7/26/2019 Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

    3/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.

  • 7/26/2019 Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

    4/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 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 wecan 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

  • 7/26/2019 Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

    5/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 5

    5. The Background Print Parameters

    The Background print parameters dialog box appears. Click on properties button to set spool request.

  • 7/26/2019 Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

    6/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 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.

  • 7/26/2019 Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

    7/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 7

    9. Schedule the job.

    Click on and the above screen will change to below shown screen, then click on and jobwill be scheduled on name of the program.

  • 7/26/2019 Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

    8/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 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.

  • 7/26/2019 Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

    9/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 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.

  • 7/26/2019 Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

    10/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 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 beconverted 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.

  • 7/26/2019 Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

    11/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 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=132190https://forums.sdn.sap.com/thread.jspa?threadID=95088

    For more information, visit theABAP homepage.

    https://forums.sdn.sap.com/thread.jspa?threadID=1459737https://forums.sdn.sap.com/thread.jspa?threadID=1459737https://forums.sdn.sap.com/thread.jspa?threadID=721393https://forums.sdn.sap.com/thread.jspa?threadID=721393http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0507544850DB00681277968466045776End?blog=/pub/wlg/5898http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0507544850DB00681277968466045776End?blog=/pub/wlg/5898https://forums.sdn.sap.com/thread.jspa?threadID=138471https://forums.sdn.sap.com/thread.jspa?threadID=138471https://forums.sdn.sap.com/thread.jspa?threadID=132190https://forums.sdn.sap.com/thread.jspa?threadID=132190https://forums.sdn.sap.com/thread.jspa?threadID=95088https://forums.sdn.sap.com/thread.jspa?threadID=95088https://www.sdn.sap.com/irj/sdn/abaphttps://www.sdn.sap.com/irj/sdn/abaphttps://www.sdn.sap.com/irj/sdn/abaphttps://www.sdn.sap.com/irj/sdn/abaphttps://forums.sdn.sap.com/thread.jspa?threadID=95088https://forums.sdn.sap.com/thread.jspa?threadID=132190https://forums.sdn.sap.com/thread.jspa?threadID=138471http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0507544850DB00681277968466045776End?blog=/pub/wlg/5898https://forums.sdn.sap.com/thread.jspa?threadID=721393https://forums.sdn.sap.com/thread.jspa?threadID=1459737
  • 7/26/2019 Executing Program in Background- ALV Grid Output Program - Output in Background for a Report_Program

    12/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

    Disclaimer and Liability Notice

    This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is notsupported 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 orcode sample, including any liability resulting from incompatibility between the content within this document and the materials andservices offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of thisdocument.