<?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 Internal table data into XML and save it into Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-data-into-xml-and-save-it-into-application-server/m-p/7595410#M1567734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="975885"&gt;&lt;/A&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="337595"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;check it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jan 2011 11:31:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-31T11:31:17Z</dc:date>
    <item>
      <title>Convert Internal table data into XML and save it into Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-data-into-xml-and-save-it-into-application-server/m-p/7595407#M1567731</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;While converting the internal table data into a XML and save it into Application server I am using the Function module SCMS_BINARY_TO_XSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the last i am getting Junk characters.So i am not able to open the file. If i delete the last junk characters i am able to open the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how to eliminate the Junk characters or use any other Function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dinesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 10:44:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-data-into-xml-and-save-it-into-application-server/m-p/7595407#M1567731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-31T10:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Internal table data into XML and save it into Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-data-into-xml-and-save-it-into-application-server/m-p/7595408#M1567732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dinesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using CALL TRANSFORMATION statement or FM SAP_CONVERT_TO_XML_FORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are lot of examples for the both, given below are two of them;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="749581"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="1282332"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 10:50:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-data-into-xml-and-save-it-into-application-server/m-p/7595408#M1567732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-31T10:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Internal table data into XML and save it into Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-data-into-xml-and-save-it-into-application-server/m-p/7595409#M1567733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_html type standard table of w3html with header line,&lt;/P&gt;&lt;P&gt;      it_sflight type table of sflight with header line,&lt;/P&gt;&lt;P&gt;      it_fcat type lvc_t_fcat with header line,&lt;/P&gt;&lt;P&gt;      v_lines type i,&lt;/P&gt;&lt;P&gt;      field(40).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;fs&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;  select * from sflight&lt;/P&gt;&lt;P&gt;           into table it_sflight&lt;/P&gt;&lt;P&gt;           up to 20 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      i_structure_name       = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;    changing&lt;/P&gt;&lt;P&gt;      ct_fieldcat            = it_fcat[]&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;      program_error          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  delete it_fcat where fieldname = 'MANDT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_html-line = '&amp;lt;html&amp;gt;'.&lt;/P&gt;&lt;P&gt;  append it_html.&lt;/P&gt;&lt;P&gt;  clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_html-line = '&amp;lt;thead&amp;gt;'.&lt;/P&gt;&lt;P&gt;  append it_html.&lt;/P&gt;&lt;P&gt;  clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_html-line = '&amp;lt;tr&amp;gt;'.&lt;/P&gt;&lt;P&gt;  append it_html.&lt;/P&gt;&lt;P&gt;  clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_html-line = '&amp;lt;td&amp;gt;&amp;lt;hl&amp;gt; Flight details &amp;lt;/hl&amp;gt;&amp;lt;/td&amp;gt;'.&lt;/P&gt;&lt;P&gt;  append it_html.&lt;/P&gt;&lt;P&gt;  clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_html-line = '&amp;lt;/tr&amp;gt;'.&lt;/P&gt;&lt;P&gt;  append it_html.&lt;/P&gt;&lt;P&gt;  clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_html-line = '&amp;lt;/thead&amp;gt;'.&lt;/P&gt;&lt;P&gt;  append it_html.&lt;/P&gt;&lt;P&gt;  clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_html-line = '&amp;lt;table boarder = "l"&amp;gt;'.&lt;/P&gt;&lt;P&gt;  append it_html.&lt;/P&gt;&lt;P&gt;  clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_html-line = '&amp;lt;tr&amp;gt;'.&lt;/P&gt;&lt;P&gt;  append it_html.&lt;/P&gt;&lt;P&gt;  clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_fcat.&lt;/P&gt;&lt;P&gt;    concatenate '&amp;lt;th bgcolor = "green" fgcolor = "black"&amp;gt;' it_fcat-scrtext_l '&amp;lt;/th&amp;gt;' into it_html-line.&lt;/P&gt;&lt;P&gt;    append it_html.&lt;/P&gt;&lt;P&gt;    clear it_html.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_html-line = '&amp;lt;/tr&amp;gt;'.&lt;/P&gt;&lt;P&gt;  append it_html.&lt;/P&gt;&lt;P&gt;  clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  describe table it_fcat lines v_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_sflight.&lt;/P&gt;&lt;P&gt;    it_html-line = '&amp;lt;tr&amp;gt;'.&lt;/P&gt;&lt;P&gt;    append it_html.&lt;/P&gt;&lt;P&gt;    clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    do v_lines times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      read table it_fcat index sy-index.&lt;/P&gt;&lt;P&gt;      concatenate 'IT_SFLIGHT-' it_fcat-fieldname into field.&lt;/P&gt;&lt;P&gt;      assign (field) to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;    enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    it_html-line = '&amp;lt;td&amp;gt;'.&lt;/P&gt;&lt;P&gt;    append it_html.&lt;/P&gt;&lt;P&gt;    clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    it_html-line = '&amp;lt;fs&amp;gt;'.&lt;/P&gt;&lt;P&gt;    append it_html.&lt;/P&gt;&lt;P&gt;    clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    it_html-line = '&amp;lt;/td&amp;gt;'.&lt;/P&gt;&lt;P&gt;    append it_html.&lt;/P&gt;&lt;P&gt;    clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear field.&lt;/P&gt;&lt;P&gt;    unassign &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    it_html-line = '&amp;lt;/tr&amp;gt;'.&lt;/P&gt;&lt;P&gt;    append it_html.&lt;/P&gt;&lt;P&gt;    clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_html-line = '&amp;lt;/table&amp;gt;'.&lt;/P&gt;&lt;P&gt;    append it_html.&lt;/P&gt;&lt;P&gt;    clear it_html.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      filename                = 'C:\Flights.htm'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      data_tab                = it_html&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 id sy-msgid type sy-msgty 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;  call method cl_gui_frontend_services=&amp;gt;execute&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      document               = 'C:\Flights.htm'&lt;/P&gt;&lt;P&gt;      operation              = 'OPEN'&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      cntl_error             = 1&lt;/P&gt;&lt;P&gt;      error_no_gui           = 2&lt;/P&gt;&lt;P&gt;      bad_parameter          = 3&lt;/P&gt;&lt;P&gt;      file_not_found         = 4&lt;/P&gt;&lt;P&gt;      path_not_found         = 5&lt;/P&gt;&lt;P&gt;      file_extension_unknown = 6&lt;/P&gt;&lt;P&gt;      error_execute_failed   = 7&lt;/P&gt;&lt;P&gt;      synchronous_failed     = 8&lt;/P&gt;&lt;P&gt;      not_supported_by_gui   = 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 id sy-msgid type sy-msgty 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;Regards,&lt;/P&gt;&lt;P&gt;Uttam Agrawal&lt;/P&gt;&lt;P&gt;ht[http://uttambpt.blogspot.com|http://uttambpt.blogspot.com]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 11:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-data-into-xml-and-save-it-into-application-server/m-p/7595409#M1567733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-31T11:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Internal table data into XML and save it into Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-data-into-xml-and-save-it-into-application-server/m-p/7595410#M1567734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="975885"&gt;&lt;/A&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="337595"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;check it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 11:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-data-into-xml-and-save-it-into-application-server/m-p/7595410#M1567734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-31T11:31:17Z</dc:date>
    </item>
  </channel>
</rss>

