<?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: xml data  to pdf conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data-to-pdf-conversion/m-p/1839472#M356903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have xml data in an internal table then try using anyone of the following function module:&lt;/P&gt;&lt;P&gt;CONVERT_OTF&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;CONVERT_OTF_2_PDF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jan 2007 13:09:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-30T13:09:03Z</dc:date>
    <item>
      <title>xml data  to pdf conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data-to-pdf-conversion/m-p/1839468#M356899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am having xml data in an internal table, my query is that i want to display the data in the internal table ie xml data into pdf format.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;or.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;i am having xml data in the local system and i want to pick that xml data and generate the pdf file for that xml data.&lt;/P&gt;&lt;P&gt;send me in the proper and in the clear way ie step by step how to do&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 10:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data-to-pdf-conversion/m-p/1839468#M356899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T10:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: xml data  to pdf conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data-to-pdf-conversion/m-p/1839469#M356900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please have a look at following thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="108237"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't helps please search for "XML PDF" at SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bernd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 14:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data-to-pdf-conversion/m-p/1839469#M356900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T14:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: xml data  to pdf conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data-to-pdf-conversion/m-p/1839470#M356901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the following Code &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; Report  ZPDF_CREATE&lt;/P&gt;&lt;P&gt;*&amp;amp;&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;&lt;/P&gt;&lt;P&gt;*&amp;amp;&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;&lt;/P&gt;&lt;P&gt;REPORT  ZPDF_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_ident     like tsp01-rqident,&lt;/P&gt;&lt;P&gt;      w_doctype   like tsp01-rqdoctype,&lt;/P&gt;&lt;P&gt;      w_bytecount type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab_pdf    like tline occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter spoolnum like tsp01-rqident obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block a2 with frame.&lt;/P&gt;&lt;P&gt;parameters:  to_pc   radiobutton group a2 default 'X',&lt;/P&gt;&lt;P&gt;             pcfile like rlgrap-filename lower case,&lt;/P&gt;&lt;P&gt;             to_unix radiobutton group a2,&lt;/P&gt;&lt;P&gt;             unixfile(255) lower case.&lt;/P&gt;&lt;P&gt;selection-screen end of block a2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************&lt;/P&gt;&lt;P&gt;at selection-screen on block a2.&lt;/P&gt;&lt;P&gt;********************************&lt;/P&gt;&lt;P&gt;  if to_pc = 'X' and pcfile is initial.&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Enter PC File Name.'.&lt;/P&gt;&lt;P&gt;  elseif to_unix = 'X' and unixfile is initial.&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Enter Unix File Name.'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************&lt;/P&gt;&lt;P&gt;at selection-screen on spoolnum.&lt;/P&gt;&lt;P&gt;*******************************&lt;/P&gt;&lt;P&gt;  select single rqident rqdoctype&lt;/P&gt;&lt;P&gt;         into (w_ident, w_doctype)&lt;/P&gt;&lt;P&gt;         from tsp01&lt;/P&gt;&lt;P&gt;         where rqident = spoolnum.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Spool' spoolnum 'not found'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for pcfile.&lt;/P&gt;&lt;P&gt;************************************************&lt;/P&gt;&lt;P&gt;  call function 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            mask     = ',&lt;STRONG&gt;.&lt;/STRONG&gt;,&lt;STRONG&gt;.&lt;/STRONG&gt;.'&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            filename = pcfile&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others   = 1.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type 'I' number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;*******************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if w_doctype = 'LIST'.&lt;/P&gt;&lt;P&gt;    perform get_abap_spool_in_pdf.&lt;/P&gt;&lt;P&gt;  elseif w_doctype = 'OTF'.&lt;/P&gt;&lt;P&gt;    perform get_otf_spool_in_pdf.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if to_pc = 'X'.&lt;/P&gt;&lt;P&gt;    perform write_pdf_spool_to_pc.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    perform write_pdf_spool_to_unix.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  message i398(00) with 'Completed OK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;form get_abap_spool_in_pdf.&lt;/P&gt;&lt;P&gt;  refresh itab_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              = w_ident&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            pdf_bytecount            = w_bytecount&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            pdf                      = itab_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;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Cannot convert to PDF. Error =' sy-subrc.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;form get_otf_spool_in_pdf.&lt;/P&gt;&lt;P&gt;  refresh itab_pdf.&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              = w_ident&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            pdf_bytecount            = w_bytecount&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            pdf                      = itab_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;            others                   = 12.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Cannot convert to PDF. Error =' sy-subrc.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;form write_pdf_spool_to_unix.&lt;/P&gt;&lt;P&gt;  open dataset unixfile for output in binary mode.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0 .&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Cannot open unix file for output:' unixfile.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at itab_pdf.&lt;/P&gt;&lt;P&gt;    transfer itab_pdf to unixfile.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0 .&lt;/P&gt;&lt;P&gt;      message e398(00) with 'Cannot write to unix file:' unixfile.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  close dataset unixfile.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;form write_pdf_spool_to_pc.&lt;/P&gt;&lt;P&gt;  call function 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            bin_filesize            = w_bytecount&lt;/P&gt;&lt;P&gt;            filename                = pcfile&lt;/P&gt;&lt;P&gt;            filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            data_tab                = itab_pdf&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            file_open_error         = 1&lt;/P&gt;&lt;P&gt;            file_write_error        = 2&lt;/P&gt;&lt;P&gt;            invalid_filesize        = 3&lt;/P&gt;&lt;P&gt;            invalid_type            = 4&lt;/P&gt;&lt;P&gt;            no_batch                = 5&lt;/P&gt;&lt;P&gt;            unknown_error           = 6&lt;/P&gt;&lt;P&gt;            invalid_table_width     = 7&lt;/P&gt;&lt;P&gt;            gui_refuse_filetransfer = 8&lt;/P&gt;&lt;P&gt;            customer_error          = 9&lt;/P&gt;&lt;P&gt;            others                  = 10.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Cannot download to PC. Error =' sy-subrc.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you just pass the Spool No(Already Existed on check with SP01 Tcode)&lt;/P&gt;&lt;P&gt;             You will give the Spool No with Output List only&lt;/P&gt;&lt;P&gt;and Give File Down load Path and Execute.&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;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 15:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data-to-pdf-conversion/m-p/1839470#M356901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T15:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: xml data  to pdf conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data-to-pdf-conversion/m-p/1839471#M356902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello srinu,&lt;/P&gt;&lt;P&gt;       i tried u r code, it is working but i am not getting the entire record, some of rows in the record is being truncated, if i am giving .pdf as extension, if i am not giving the extension i am getting all the rows of the record&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 12:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data-to-pdf-conversion/m-p/1839471#M356902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T12:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: xml data  to pdf conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data-to-pdf-conversion/m-p/1839472#M356903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have xml data in an internal table then try using anyone of the following function module:&lt;/P&gt;&lt;P&gt;CONVERT_OTF&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;CONVERT_OTF_2_PDF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 13:09:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data-to-pdf-conversion/m-p/1839472#M356903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T13:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: xml data  to pdf conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data-to-pdf-conversion/m-p/1839473#M356904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi srinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried ur code it is working fine, but i am having more than 1000 pages in spool but while converting the data into pdf format it is giving error as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 6248                                                                                &lt;/P&gt;&lt;P&gt;6249 * add line to stream, with a leading blank                                   &lt;/P&gt;&lt;P&gt; 6250 FORM PDF_APPEND_STREAM USING VALUE(LINE) TYPE C.                             &lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; PDF_STREAM_TAB-L = LINE.                                                     &lt;/P&gt;&lt;P&gt; 6252 SHIFT PDF_STREAM_TAB-L RIGHT. "add leading blank as token separator          &lt;/P&gt;&lt;P&gt; 6253 APPEND PDF_STREAM_TAB.                                                       &lt;/P&gt;&lt;P&gt; 6254 ENDFORM.                                                                     &lt;/P&gt;&lt;P&gt; 6255                                                                                &lt;/P&gt;&lt;P&gt;6256 * write contents stream                                                      &lt;/P&gt;&lt;P&gt; 6257 FORM PDF_WRITE_CONT_STREAM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 10:02:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-data-to-pdf-conversion/m-p/1839473#M356904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T10:02:51Z</dc:date>
    </item>
  </channel>
</rss>

