<?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: sapscript spool number for pdf conversion after script goes to printer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-spool-number-for-pdf-conversion-after-script-goes-to-printer/m-p/1544215#M247707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;After I get the conversion done in pdf format, I need a small dialog pop up which will say where you want to save the converted pdf file and the pdf converted file should get saved there. How do I achieve this ? This might be a basic ABAP question, but please help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2006 18:37:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-24T18:37:09Z</dc:date>
    <item>
      <title>sapscript spool number for pdf conversion after script goes to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-spool-number-for-pdf-conversion-after-script-goes-to-printer/m-p/1544213#M247705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I am working on SAPscript. The print program I am using is RM08NAST for printing ERS SAPscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The routine MRM_ENTRY_ERS under that program does all the data selection and printing of script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the functional team wants to get the OTF format converted in pdf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&amp;lt;b&amp;gt;Note: I know how to convert the things in pdf. So please don't provide with links which shows pdf conversion. My problem is different)&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot use any pdf converison function module because then I have to change the standard function module MRM_ENTRY_ERS which is not good idea because its very complex. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am planning to use the pdf conversion function module CONVERT_OTFSPOOLJOB_2_PDF immediately after the MRM_ENTRY_ERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) But I need the spool number then ? How do I get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I guess as soon as the MRM_ENTRY_ERS gets executed the Script will get displayed or get printed on printer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I am using the function module CONVERT_OTFSPOOLJOB_2_PDF after routine MRM_ENTRY_ERS, if I want to save that pdf what do I do ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tushar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 18:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-spool-number-for-pdf-conversion-after-script-goes-to-printer/m-p/1544213#M247705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T18:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript spool number for pdf conversion after script goes to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-spool-number-for-pdf-conversion-after-script-goes-to-printer/m-p/1544214#M247706</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;You can use the following code, once you get the spoolid...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get that, by date and time stamp, just immediately after the MRM_ENTRY_ERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT SINGLE * FROM tsp01 WHERE rqident = rspoid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    client = tsp01-rqclient.&lt;/P&gt;&lt;P&gt;    name   = tsp01-rqo1name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'RSTS_GET_ATTRIBUTES'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        authority     = 'SP01'&lt;/P&gt;&lt;P&gt;        client        = client&lt;/P&gt;&lt;P&gt;        name          = name&lt;/P&gt;&lt;P&gt;        part          = 1&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        type          = type&lt;/P&gt;&lt;P&gt;        objtype       = objtype&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        fb_error      = 1&lt;/P&gt;&lt;P&gt;        fb_rsts_other = 2&lt;/P&gt;&lt;P&gt;        no_object     = 3&lt;/P&gt;&lt;P&gt;        no_permission = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF objtype(3) = 'OTF'.&lt;/P&gt;&lt;P&gt;      isotf = 'X'.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      isotf = space.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF isotf = 'X'.&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              = rspoid&lt;/P&gt;&lt;P&gt;          no_dialog                = ' '&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          pdf_bytecount            = pdf_bytecount&lt;/P&gt;&lt;P&gt;          pdf_spoolid              = pdf_spoolid&lt;/P&gt;&lt;P&gt;          btc_jobname              = btc_jobname&lt;/P&gt;&lt;P&gt;          btc_jobcount             = btc_jobcount&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          pdf                      = pdf&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;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'RSPO_IDELETE_SPOOLREQ'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          spoolreq = spoolreq&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          OTHERS   = 2.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 18:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-spool-number-for-pdf-conversion-after-script-goes-to-printer/m-p/1544214#M247706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T18:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript spool number for pdf conversion after script goes to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-spool-number-for-pdf-conversion-after-script-goes-to-printer/m-p/1544215#M247707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;After I get the conversion done in pdf format, I need a small dialog pop up which will say where you want to save the converted pdf file and the pdf converted file should get saved there. How do I achieve this ? This might be a basic ABAP question, but please help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 18:37:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-spool-number-for-pdf-conversion-after-script-goes-to-printer/m-p/1544215#M247707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T18:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript spool number for pdf conversion after script goes to printer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-spool-number-for-pdf-conversion-after-script-goes-to-printer/m-p/1544216#M247708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SY-SPONO contain spool number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use POPUP_TO_CONFIRM fm to popup a scree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 19:46:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-spool-number-for-pdf-conversion-after-script-goes-to-printer/m-p/1544216#M247708</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-08-24T19:46:16Z</dc:date>
    </item>
  </channel>
</rss>

