<?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: smartform pdf conversion in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-conversion-in-background/m-p/1061202#M91925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this code for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  get_spool&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&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 spool and convert into PDF&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 .&lt;/P&gt;&lt;P&gt;  READ TABLE job_output_info-spoolids INDEX 1 INTO rspoid.&lt;/P&gt;&lt;P&gt;  spoolreq-rqident = rspoid.&lt;/P&gt;&lt;P&gt;  spoolreq-sys     = sy-sysid.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&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;P&gt;    v_fname = p_file.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        bin_filesize            = pdf_bytecount&lt;/P&gt;&lt;P&gt;        filename                = v_fname&lt;/P&gt;&lt;P&gt;        filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data_tab                = pdf&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_write_error        = 1&lt;/P&gt;&lt;P&gt;        no_batch                = 2&lt;/P&gt;&lt;P&gt;        gui_refuse_filetransfer = 3&lt;/P&gt;&lt;P&gt;        invalid_type            = 4&lt;/P&gt;&lt;P&gt;        no_authority            = 5&lt;/P&gt;&lt;P&gt;        unknown_error           = 6&lt;/P&gt;&lt;P&gt;        header_not_allowed      = 7&lt;/P&gt;&lt;P&gt;        separator_not_allowed   = 8&lt;/P&gt;&lt;P&gt;        filesize_not_allowed    = 9&lt;/P&gt;&lt;P&gt;        header_too_long         = 10&lt;/P&gt;&lt;P&gt;        dp_error_create         = 11&lt;/P&gt;&lt;P&gt;        dp_error_send           = 12&lt;/P&gt;&lt;P&gt;        dp_error_write          = 13&lt;/P&gt;&lt;P&gt;        unknown_dp_error        = 14&lt;/P&gt;&lt;P&gt;        access_denied           = 15&lt;/P&gt;&lt;P&gt;        dp_out_of_memory        = 16&lt;/P&gt;&lt;P&gt;        disk_full               = 17&lt;/P&gt;&lt;P&gt;        dp_timeout              = 18&lt;/P&gt;&lt;P&gt;        file_not_found          = 19&lt;/P&gt;&lt;P&gt;        dataprovider_exception  = 20&lt;/P&gt;&lt;P&gt;        control_flush_error     = 21&lt;/P&gt;&lt;P&gt;        OTHERS                  = 22.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE i000 WITH 'PDF file downloaded error'.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MESSAGE i000 WITH 'PDF file downloaded successfully'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_spool&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2005 09:41:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-02T09:41:55Z</dc:date>
    <item>
      <title>smartform pdf conversion in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-conversion-in-background/m-p/1061201#M91924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've Two questions here &lt;/P&gt;&lt;P&gt;1) I would like to convert PDF file from the form in the Background mode.What are all the parameters that we have to set for the background its working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I've the same form in the foreground which will display the preview once its being checked it has to ask for the pop up to get the path to store it as  a pdf now its coming fine. I'm getting the dialog box again even if i say no_dialog 'X' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody come across these two issues please reply as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2005 09:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-conversion-in-background/m-p/1061201#M91924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-02T09:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: smartform pdf conversion in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-conversion-in-background/m-p/1061202#M91925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this code for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  get_spool&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&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 spool and convert into PDF&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 .&lt;/P&gt;&lt;P&gt;  READ TABLE job_output_info-spoolids INDEX 1 INTO rspoid.&lt;/P&gt;&lt;P&gt;  spoolreq-rqident = rspoid.&lt;/P&gt;&lt;P&gt;  spoolreq-sys     = sy-sysid.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&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;P&gt;    v_fname = p_file.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        bin_filesize            = pdf_bytecount&lt;/P&gt;&lt;P&gt;        filename                = v_fname&lt;/P&gt;&lt;P&gt;        filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data_tab                = pdf&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_write_error        = 1&lt;/P&gt;&lt;P&gt;        no_batch                = 2&lt;/P&gt;&lt;P&gt;        gui_refuse_filetransfer = 3&lt;/P&gt;&lt;P&gt;        invalid_type            = 4&lt;/P&gt;&lt;P&gt;        no_authority            = 5&lt;/P&gt;&lt;P&gt;        unknown_error           = 6&lt;/P&gt;&lt;P&gt;        header_not_allowed      = 7&lt;/P&gt;&lt;P&gt;        separator_not_allowed   = 8&lt;/P&gt;&lt;P&gt;        filesize_not_allowed    = 9&lt;/P&gt;&lt;P&gt;        header_too_long         = 10&lt;/P&gt;&lt;P&gt;        dp_error_create         = 11&lt;/P&gt;&lt;P&gt;        dp_error_send           = 12&lt;/P&gt;&lt;P&gt;        dp_error_write          = 13&lt;/P&gt;&lt;P&gt;        unknown_dp_error        = 14&lt;/P&gt;&lt;P&gt;        access_denied           = 15&lt;/P&gt;&lt;P&gt;        dp_out_of_memory        = 16&lt;/P&gt;&lt;P&gt;        disk_full               = 17&lt;/P&gt;&lt;P&gt;        dp_timeout              = 18&lt;/P&gt;&lt;P&gt;        file_not_found          = 19&lt;/P&gt;&lt;P&gt;        dataprovider_exception  = 20&lt;/P&gt;&lt;P&gt;        control_flush_error     = 21&lt;/P&gt;&lt;P&gt;        OTHERS                  = 22.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE i000 WITH 'PDF file downloaded error'.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MESSAGE i000 WITH 'PDF file downloaded successfully'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_spool&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2005 09:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-conversion-in-background/m-p/1061202#M91925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-02T09:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: smartform pdf conversion in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-conversion-in-background/m-p/1061203#M91926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can have one parameter for the file name to be stored.&lt;/P&gt;&lt;P&gt;that u can use in the PDF fileformat conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used like this.So that i can store the file in any place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2005 09:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-pdf-conversion-in-background/m-p/1061203#M91926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-02T09:43:59Z</dc:date>
    </item>
  </channel>
</rss>

