<?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: Convert spool to OTF format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spool-to-otf-format/m-p/6266091#M1385799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont understand &lt;STRONG&gt;receive the OTF data from report using buffer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally either a sapscript/smartform/adobeform is used to return OTF data.&lt;/P&gt;&lt;P&gt;Then this OTF data is converted to xstring using CONVERT_OTF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Oct 2009 06:39:32 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2009-10-30T06:39:32Z</dc:date>
    <item>
      <title>Convert spool to OTF format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spool-to-otf-format/m-p/6266089#M1385797</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;My requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report which generates PDF format for all the employees provided on the selection screen ,for this i used the FM :&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 = max_spool&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to create an RFC function module which has  to generate  PDF binary data using the PDF generation report .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process which i am following is : &lt;/P&gt;&lt;P&gt; .       Creating  RFC function module with the import parameter u2018PERNRu2019&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;·         call this report YREPORT inside the RFC using the PERNR and receive the OTF data from report using buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·         Then convert the OTF data into PDF lines using the function module u2018CONVERT_OTFu2019&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·         And then convert the PDF lines in to PDF binary data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how to get OTF data format from report using buffer .Please provide any FM for this &amp;amp; also provide PDF lines into PDF binary data&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;Bharat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2009 06:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spool-to-otf-format/m-p/6266089#M1385797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-30T06:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Convert spool to OTF format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spool-to-otf-format/m-p/6266090#M1385798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what below code does is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: it creates a job hence spool is generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2: it call  a ADOBE form hence PDF object is generated . (which you may not need)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3: it converts PDF to SOLIX or binary PDF for sending as an mail attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
      ie_outputparams = wa_outputparams
    EXCEPTIONS
      cancel          = 0
      usage_error     = 0
      system_error    = 0
      internal_error  = 0
      OTHERS          = 0.
* Processing should continue inspite of errors
* so made Sy-Subrc as 0

* Set form language and country (-&amp;gt;form locale)
  wa_docparams-langu   = lc_language.
  wa_docparams-country = lc_country.

* Pass Data to the Form Interface
  CALL FUNCTION lv_form_name
    EXPORTING
      /1bcdwb/docparams  = wa_docparams
      t_stud_data        = wa_mailtab1
    IMPORTING
      /1bcdwb/formoutput = wa_pdfobject
    EXCEPTIONS
      usage_error        = 1
      system_error       = 2
      internal_error     = 3
      OTHERS             = 4.


* Convert PDF Object to type SOLIX
  CALL METHOD cl_document_bcs=&amp;gt;xstring_to_solix
    EXPORTING
      ip_xstring = wa_pdfobject-pdf
    RECEIVING
      rt_solix   = it_attachment.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2009 06:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spool-to-otf-format/m-p/6266090#M1385798</guid>
      <dc:creator>agnihotro_sinha2</dc:creator>
      <dc:date>2009-10-30T06:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convert spool to OTF format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spool-to-otf-format/m-p/6266091#M1385799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont understand &lt;STRONG&gt;receive the OTF data from report using buffer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally either a sapscript/smartform/adobeform is used to return OTF data.&lt;/P&gt;&lt;P&gt;Then this OTF data is converted to xstring using CONVERT_OTF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2009 06:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-spool-to-otf-format/m-p/6266091#M1385799</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-30T06:39:32Z</dc:date>
    </item>
  </channel>
</rss>

