<?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: How to upload files directly into string or xstring format? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104209#M1508898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Get the input file in the form of a table and then use func module: CONVERT_TABLE_TO_STRING or LXE_COMMON_TABLE_TO_XSTRING to convert the table to string or xstring.&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;Subbu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jul 2010 18:03:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-01T18:03:11Z</dc:date>
    <item>
      <title>How to upload files directly into string or xstring format?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104208#M1508897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to upload files (all types) from Presentation Server.. I cannot use CL_GUI_FRONTEND_SERVICES-&amp;gt;GUI_UPLOAD since it gives the data in the form of table. I need the file content in STRING OR XSTRING format directly depending on the type of files. How can I directly upload the content in such formats. I could upload in table &amp;amp; then convert table content into string. When I do that, I lose the actual formatting of data in the file. &lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Geetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 17:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104208#M1508897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-01T17:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files directly into string or xstring format?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104209#M1508898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Get the input file in the form of a table and then use func module: CONVERT_TABLE_TO_STRING or LXE_COMMON_TABLE_TO_XSTRING to convert the table to string or xstring.&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;Subbu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 18:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104209#M1508898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-01T18:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files directly into string or xstring format?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104210#M1508899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subbu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did that by converting table into string using CONVERT_TABLE_TO_STRING. But when I do this, formatting gets disturbed when the attachment is rendered finally. Thats why I'm looking for a way to achieve this without losing the formatting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your response. Please let me know if you have better ideas. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Geetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 18:25:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104210#M1508899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-01T18:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files directly into string or xstring format?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104211#M1508900</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;Just check ther below link if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_470/helpdata/en/ba/78d3c747b24546ab1c1499a054d8a5/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_470/helpdata/en/ba/78d3c747b24546ab1c1499a054d8a5/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 06:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104211#M1508900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-02T06:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files directly into string or xstring format?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104212#M1508901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can upload the content in binary format using GUI_UPLOAD and convert the binary content to XSTRING using FM SCMS_BINARY_TO_XSTRING. I think it will work....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 07:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104212#M1508901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-02T07:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files directly into string or xstring format?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104213#M1508902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geetha,&lt;/P&gt;&lt;P&gt;   Pass the table entries in to string variable as shown below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CLASS cl_abap_char_utilities DEFINITION LOAD.

 CONSTANTS : c_tab(1)       TYPE c               VALUE cl_abap_char_utilities=&amp;gt;horizontal_tab  " For tab
                       , c_cret(1)      TYPE c               VALUE cl_abap_char_utilities=&amp;gt;cr_lf                  " for enter
                       .


  DATA : w_str   TYPE string
            , w_wa   TYPE string
            , w_xstr  TYPE xstring
            .
loop at it_tab into e_data_pb.

                CONCATENATE e_data_pb-mmbelnr
                  e_data_pb-inv_item
                  e_data_pb-inv_type
                  e_data_pb-vendor
                  e_data_pb-ekgrp
                  e_data_pb-plant
                  e_data_pb-xblnr
                  e_data_pb-zduedate
                  e_data_pb-dis_due
                  e_data_pb-matnr
                  e_data_pb-amount
                  e_data_pb-zstatus
                  e_data_pb-stat_desc
                  e_data_pb-stat_age
                  e_data_pb-pb_age
                  e_data_pb-wi_agent
                  e_data_pb-agent_name
                  e_data_pb-cpo_grp_cod
                  e_data_pb-cpo_recom
                  e_data_pb-cpo_comments
             INTO w_wa SEPARATED BY c_tab.

CONCATENATE w_str  w_wa  INTO w_str SEPARATED BY c_cret.

endloop.

  CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    EXPORTING
      text   = w_str
    IMPORTING
      buffer = w_xstr
    EXCEPTIONS
      failed = 1.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will solve your problem... Have a try....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Senthil Kumar Annatham.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 07:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104213#M1508902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-02T07:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files directly into string or xstring format?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104214#M1508903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SO_DOCUMENT_REPOSITORY_MANAGER may be of some help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 17:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-files-directly-into-string-or-xstring-format/m-p/7104214#M1508903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-02T17:03:58Z</dc:date>
    </item>
  </channel>
</rss>

