<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic getting spool number at runtime in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-spool-number-at-runtime/m-p/4039546#M965500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         I am trying to execute a ALV report in background. How can generate spool at runtime if we execute our report background...Thanks in advance,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       ram...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2008 07:36:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-11T07:36:59Z</dc:date>
    <item>
      <title>getting spool number at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-spool-number-at-runtime/m-p/4039546#M965500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         I am trying to execute a ALV report in background. How can generate spool at runtime if we execute our report background...Thanks in advance,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       ram...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 07:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-spool-number-at-runtime/m-p/4039546#M965500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T07:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: getting spool number at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-spool-number-at-runtime/m-p/4039547#M965501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_tbtcp like tbtcp occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      lv_spool type tsp01-rqident,&lt;/P&gt;&lt;P&gt;       lv_spool1(10) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: gd_eventid LIKE tbtcm-eventid,&lt;/P&gt;&lt;P&gt;gd_eventparm LIKE tbtcm-eventparm,&lt;/P&gt;&lt;P&gt;gd_external_program_active LIKE tbtcm-xpgactive,&lt;/P&gt;&lt;P&gt;gd_jobcount LIKE tbtcm-jobcount,&lt;/P&gt;&lt;P&gt;gd_jobname LIKE tbtcm-jobname,&lt;/P&gt;&lt;P&gt;gd_stepcount LIKE tbtcm-stepcount,&lt;/P&gt;&lt;P&gt;gd_error TYPE sy-subrc,&lt;/P&gt;&lt;P&gt;gd_reciever TYPE sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_JOB_RUNTIME_INFO'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;eventid = gd_eventid&lt;/P&gt;&lt;P&gt;eventparm = gd_eventparm&lt;/P&gt;&lt;P&gt;external_program_active = gd_external_program_active&lt;/P&gt;&lt;P&gt;jobcount = gd_jobcount&lt;/P&gt;&lt;P&gt;jobname = gd_jobname&lt;/P&gt;&lt;P&gt;stepcount = gd_stepcount&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;no_runtime_info = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not gd_jobname is initial and not gd_jobcount is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT single listident FROM tbtcp&lt;/P&gt;&lt;P&gt;INTO lv_spool1&lt;/P&gt;&lt;P&gt;WHERE jobname = gd_jobname&lt;/P&gt;&lt;P&gt;AND jobcount = gd_jobcount&lt;/P&gt;&lt;P&gt;AND stepcount = gd_stepcount&lt;/P&gt;&lt;P&gt;AND listident ne '0000000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lv_spool1 is ypur required spool no&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;abhinesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: abhinesh mishra on Jun 11, 2008 10:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 08:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-spool-number-at-runtime/m-p/4039547#M965501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T08:22:58Z</dc:date>
    </item>
  </channel>
</rss>

