<?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 Re: Spool number in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317306#M164081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Try this :To get spool number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lv_spool_no TYPE TSP01-RQIDENT .&lt;/P&gt;&lt;P&gt;SELECT RQIDENT into lv_spool_no&lt;/P&gt;&lt;P&gt; UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;  FROM TSP01&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WHERE "Put some restriction ..like last 5 days, to improve performance&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; ORDER BY RQCRETIME DESCENDING.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Convert spool to PDF:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SAP have created a standard program RSTXPDFT4 to convert your report spools into a PDF format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specify the spool number and you will be able to download the spool into your local harddisk. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;latheesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 May 2006 09:37:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-13T09:37:56Z</dc:date>
    <item>
      <title>Spool number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317300#M164075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to find out the spool request number created by my report , so as to convert the spool output into PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or let me knwo how do i convert the spool output into PDF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alok Pathak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 13:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317300#M164075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-12T13:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Spool number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317301#M164076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try the system variable SY-SPONO? &amp;amp; then pass the spool id to the function call 'CONVERT_ABAPSPOOLJOB_2_PDF' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 13:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317301#M164076</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-05-12T13:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Spool number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317302#M164077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking for spool number with a program then u can check syst-spono which has the spool number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 13:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317302#M164077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-12T13:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Spool number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317303#M164078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the std report RSTXPDFT4 to convert spool to pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to go to PDF, there is another approach.  There are SAP functions to convert SPOOL to PDF. They are CONVERT_ABAPSPOOLJOB_2_PDF and CONVERT_OTFSPOOLJOB_2_PDF. What you can do here is schedule your report as one step in a job and then your post processing as another step. You can use GET_JOB_RUNTIME_INFO to get the jobcount and jobname of the currently running job. You can then read back in table TBTCP to get the spool list number (listident) of a previous step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;clear jselect.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;jselect-jobname = '&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;  jselect-username = '*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Have this program get its own Job Name&lt;/P&gt;&lt;P&gt;  call function 'GET_JOB_RUNTIME_INFO'&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        EVENTID =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        EVENTPARM =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        EXTERNAL_PROGRAM_ACTIVE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          jobcount = jselect-jobcount&lt;/P&gt;&lt;P&gt;          jobname = jselect-jobname&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        STEPCOUNT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;****Read the spool number for this job step.&lt;/P&gt;&lt;P&gt;  clear tbtcp.&lt;/P&gt;&lt;P&gt;  select single listident from tbtcp&lt;/P&gt;&lt;P&gt;         into tbtcp-listident&lt;/P&gt;&lt;P&gt;         where jobname = jselect-jobname&lt;/P&gt;&lt;P&gt;           and jobcount = jselect-jobcount&lt;/P&gt;&lt;P&gt;           and stepcount = step.&lt;/P&gt;&lt;P&gt;  if tbtcp-listident = 0.&lt;/P&gt;&lt;P&gt;    message i009 with step.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;data: spool_id like tsp01-rqident.&lt;/P&gt;&lt;P&gt;  move tbtcp-listident to spool_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Is this ABAP List Processing?&lt;/P&gt;&lt;P&gt;  if abap = 'X'.&lt;/P&gt;&lt;P&gt;    call function 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        src_spoolid = spool_id&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      NO_DIALOG =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      DST_DEVICE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      PDF_DESTINATION =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      PDF_BYTECOUNT =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      PDF_SPOOLID =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      LIST_PAGECOUNT =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      BTC_JOBNAME =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      BTC_JOBCOUNT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        pdf = ipdf&lt;/P&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;P&gt;       err_no_abap_spooljob = 1&lt;/P&gt;&lt;P&gt;       err_no_spooljob = 2&lt;/P&gt;&lt;P&gt;       err_no_permission = 3&lt;/P&gt;&lt;P&gt;       err_conv_not_possible = 4&lt;/P&gt;&lt;P&gt;       err_bad_destdevice = 5&lt;/P&gt;&lt;P&gt;       user_cancelled = 6&lt;/P&gt;&lt;P&gt;       err_spoolerror = 7&lt;/P&gt;&lt;P&gt;       err_temseerror = 8&lt;/P&gt;&lt;P&gt;       err_btcjob_open_failed = 9&lt;/P&gt;&lt;P&gt;       err_btcjob_submit_failed = 10&lt;/P&gt;&lt;P&gt;       err_btcjob_close_failed = 11&lt;/P&gt;&lt;P&gt;       others = 12.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      message i016 with sy-subrc.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;****Or is this SAPscript?&lt;/P&gt;&lt;P&gt;    call function 'CONVERT_OTFSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        src_spoolid = spool_id&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      NO_DIALOG =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      DST_DEVICE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      PDF_DESTINATION =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      PDF_BYTECOUNT =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      PDF_SPOOLID =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      OTF_PAGECOUNT =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      BTC_JOBNAME =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      BTC_JOBCOUNT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        pdf = ipdf&lt;/P&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;P&gt;       err_no_otf_spooljob = 1&lt;/P&gt;&lt;P&gt;       err_no_spooljob = 2&lt;/P&gt;&lt;P&gt;       err_no_permission = 3&lt;/P&gt;&lt;P&gt;       err_conv_not_possible = 4&lt;/P&gt;&lt;P&gt;       err_bad_dstdevice = 5&lt;/P&gt;&lt;P&gt;       user_cancelled = 6&lt;/P&gt;&lt;P&gt;       err_spoolerror = 7&lt;/P&gt;&lt;P&gt;       err_temseerror = 8&lt;/P&gt;&lt;P&gt;       err_btcjob_open_failed = 9&lt;/P&gt;&lt;P&gt;       err_btcjob_submit_failed = 10&lt;/P&gt;&lt;P&gt;       err_btcjob_close_failed = 11&lt;/P&gt;&lt;P&gt;       others = 12.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      message i016 with sy-subrc.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 13:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317303#M164078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-12T13:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Spool number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317304#M164079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;within the same program if you are calling FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET_PRINT_PARAMETERS with new-page print on parameters wf_params no dialog. and write statements to create the spool then simply refer to sy-spono , it will have the spool created by your program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2006 07:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317304#M164079</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-05-13T07:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Spool number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317305#M164080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Alok Pathak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save Report Output to a PDF File&lt;/P&gt;&lt;P&gt;This report takes another report as input, and captures the output of that report. The output is then converted to &lt;/P&gt;&lt;P&gt;PDF and saved to a local file. This shows how to use some of the PDF function modules, as well as an easy way to &lt;/P&gt;&lt;P&gt;create PDF files.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Source Code Listing &lt;/P&gt;&lt;P&gt;report zabap_2_pdf.&lt;/P&gt;&lt;P&gt;*-- Enhancements: only allow to be run with variant.  Then called&lt;/P&gt;&lt;P&gt;*-- program will be transparent to users&lt;/P&gt;&lt;P&gt;*-- TABLES&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;  tsp01.&lt;/P&gt;&lt;P&gt;*-- STRUCTURES&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  mstr_print_parms like pri_params,&lt;/P&gt;&lt;P&gt;  mc_valid(1)      type c,&lt;/P&gt;&lt;P&gt;  mi_bytecount     type i,&lt;/P&gt;&lt;P&gt;  mi_length        type i,&lt;/P&gt;&lt;P&gt;  mi_rqident       like tsp01-rqident.&lt;/P&gt;&lt;P&gt;*-- INTERNAL TABLES&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  mtab_pdf    like tline occurs 0 with header line,&lt;/P&gt;&lt;P&gt;  mc_filename like rlgrap-filename.&lt;/P&gt;&lt;P&gt;*-- SELECTION SCREEN&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;  p_repid like sy-repid, " Report to execute&lt;/P&gt;&lt;P&gt;  p_linsz like sy-linsz default 132, " Line size&lt;/P&gt;&lt;P&gt;  p_paart like sy-paart default 'X_65_132'.  " Paper Format&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;concatenate 'c:\'&lt;/P&gt;&lt;P&gt;            p_repid&lt;/P&gt;&lt;P&gt;            '.pdf'&lt;/P&gt;&lt;P&gt;  into mc_filename.&lt;/P&gt;&lt;P&gt;*-- Setup the Print Parmaters&lt;/P&gt;&lt;P&gt;  call function 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;   exporting&lt;/P&gt;&lt;P&gt;     authority= space&lt;/P&gt;&lt;P&gt;     copies   = '1'&lt;/P&gt;&lt;P&gt;     cover_page                   = space&lt;/P&gt;&lt;P&gt;     data_set = space&lt;/P&gt;&lt;P&gt;     department                   = space&lt;/P&gt;&lt;P&gt;     destination                  = space&lt;/P&gt;&lt;P&gt;     expiration                   = '1'&lt;/P&gt;&lt;P&gt;     immediately                  = space&lt;/P&gt;&lt;P&gt;     in_archive_parameters        = space&lt;/P&gt;&lt;P&gt;     in_parameters                = space&lt;/P&gt;&lt;P&gt;     layout   = space&lt;/P&gt;&lt;P&gt;     mode     = space&lt;/P&gt;&lt;P&gt;     new_list_id                  = 'X'&lt;/P&gt;&lt;P&gt;     no_dialog= 'X'&lt;/P&gt;&lt;P&gt;     user     = sy-uname&lt;/P&gt;&lt;P&gt;   importing&lt;/P&gt;&lt;P&gt;     out_parameters               = mstr_print_parms&lt;/P&gt;&lt;P&gt;     valid    = mc_valid&lt;/P&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     archive_info_not_found       = 1&lt;/P&gt;&lt;P&gt;     invalid_print_params         = 2&lt;/P&gt;&lt;P&gt;     invalid_archive_params       = 3&lt;/P&gt;&lt;P&gt;     others   = 4.&lt;/P&gt;&lt;P&gt;*-- Make sure that a printer destination has been set up&lt;/P&gt;&lt;P&gt;*-- If this is not done the PDF function module ABENDS&lt;/P&gt;&lt;P&gt;  if mstr_print_parms-pdest = space.&lt;/P&gt;&lt;P&gt;    mstr_print_parms-pdest = 'LOCL'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;*-- Explicitly set line width, and output format so that&lt;/P&gt;&lt;P&gt;*-- the PDF conversion comes out OK&lt;/P&gt;&lt;P&gt;  mstr_print_parms-linsz = p_linsz.&lt;/P&gt;&lt;P&gt;  mstr_print_parms-paart = p_paart.&lt;/P&gt;&lt;P&gt;  submit (p_repid) to sap-spool without spool dynpro&lt;/P&gt;&lt;P&gt;                   spool parameters mstr_print_parms&lt;/P&gt;&lt;P&gt;                   via selection-screen&lt;/P&gt;&lt;P&gt;                   and return.&lt;/P&gt;&lt;P&gt;*-- Find out what the spool number is that was just created&lt;/P&gt;&lt;P&gt;  perform get_spool_number using sy-repid&lt;/P&gt;&lt;P&gt;             sy-uname&lt;/P&gt;&lt;P&gt;    changing mi_rqident.&lt;/P&gt;&lt;P&gt;*-- Convert Spool to PDF&lt;/P&gt;&lt;P&gt;  call function 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      src_spoolid= mi_rqident&lt;/P&gt;&lt;P&gt;      no_dialog  = space&lt;/P&gt;&lt;P&gt;      dst_device = mstr_print_parms-pdest&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      pdf_bytecount                  = mi_bytecount&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      pdf        = mtab_pdf&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      err_no_abap_spooljob           = 1&lt;/P&gt;&lt;P&gt;      err_no_spooljob                = 2&lt;/P&gt;&lt;P&gt;      err_no_permission              = 3&lt;/P&gt;&lt;P&gt;      err_conv_not_possible          = 4&lt;/P&gt;&lt;P&gt;      err_bad_destdevice             = 5&lt;/P&gt;&lt;P&gt;      user_cancelled                 = 6&lt;/P&gt;&lt;P&gt;      err_spoolerror                 = 7&lt;/P&gt;&lt;P&gt;      err_temseerror                 = 8&lt;/P&gt;&lt;P&gt;      err_btcjob_open_failed         = 9&lt;/P&gt;&lt;P&gt;      err_btcjob_submit_failed       = 10&lt;/P&gt;&lt;P&gt;      err_btcjob_close_failed        = 11&lt;/P&gt;&lt;P&gt;      others     = 12.&lt;/P&gt;&lt;P&gt;call function 'DOWNLOAD'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          bin_filesize            = mi_bytecount&lt;/P&gt;&lt;P&gt;          filename                = mc_filename&lt;/P&gt;&lt;P&gt;          filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;P&gt;          act_filename            = mc_filename&lt;/P&gt;&lt;P&gt;     tables&lt;/P&gt;&lt;P&gt;          data_tab                = mtab_pdf.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM get_spool_number *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Get the most recent spool created by user/report              *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  F_REPID               *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  F_UNAME               *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  F_RQIDENT             *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_spool_number using f_repid&lt;/P&gt;&lt;P&gt;     f_uname&lt;/P&gt;&lt;P&gt;                changing f_rqident.&lt;/P&gt;&lt;P&gt;  data:&lt;/P&gt;&lt;P&gt;    lc_rq2name like tsp01-rq2name.&lt;/P&gt;&lt;P&gt;  concatenate f_repid+0(8)&lt;/P&gt;&lt;P&gt;              f_uname+0(3)&lt;/P&gt;&lt;P&gt;    into lc_rq2name separated by '_'.&lt;/P&gt;&lt;P&gt;  select * from tsp01 where  rq2name = lc_rq2name&lt;/P&gt;&lt;P&gt;  order by rqcretime descending.&lt;/P&gt;&lt;P&gt;    f_rqident = tsp01-rqident.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    clear f_rqident.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform." get_spool_number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2006 07:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317305#M164080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-13T07:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Spool number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317306#M164081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Try this :To get spool number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lv_spool_no TYPE TSP01-RQIDENT .&lt;/P&gt;&lt;P&gt;SELECT RQIDENT into lv_spool_no&lt;/P&gt;&lt;P&gt; UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;  FROM TSP01&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WHERE "Put some restriction ..like last 5 days, to improve performance&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; ORDER BY RQCRETIME DESCENDING.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Convert spool to PDF:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SAP have created a standard program RSTXPDFT4 to convert your report spools into a PDF format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specify the spool number and you will be able to download the spool into your local harddisk. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;latheesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2006 09:37:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317306#M164081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-13T09:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Spool number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317307#M164082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz check view V_OP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 18:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-number/m-p/1317307#M164082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T18:40:18Z</dc:date>
    </item>
  </channel>
</rss>

