<?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 String variable truncated - ECC6 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-variable-truncated-ecc6/m-p/8563175#M1659263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a string variable to save the filepath. The problem is that when the filepath is longer than 132 characters, the variable gets truncated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: baja TYPE String.
DATA: lv_path TYPE STRING,
      lv_long TYPE i,
      lv_tipo(4),
l_sel_folder TYPE String.

CLEAR baja.
lv_long = STRLEN( l_sel_folder ).

lv_long = lv_long - 4.
lv_path = l_sel_folder(lv_long).
CONCATENATE lv_path '-ERR-' sy-datum '-' sy-uzeit '.TXT' INTO baja.


CALL METHOD cl_gui_frontend_services=&amp;gt;gui_download
  EXPORTING
*    bin_filesize              =
    filename                  = baja

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to find a solution in the forum with no luck. How can I resolve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2012 13:14:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-01T13:14:03Z</dc:date>
    <item>
      <title>String variable truncated - ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-variable-truncated-ecc6/m-p/8563175#M1659263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a string variable to save the filepath. The problem is that when the filepath is longer than 132 characters, the variable gets truncated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: baja TYPE String.
DATA: lv_path TYPE STRING,
      lv_long TYPE i,
      lv_tipo(4),
l_sel_folder TYPE String.

CLEAR baja.
lv_long = STRLEN( l_sel_folder ).

lv_long = lv_long - 4.
lv_path = l_sel_folder(lv_long).
CONCATENATE lv_path '-ERR-' sy-datum '-' sy-uzeit '.TXT' INTO baja.


CALL METHOD cl_gui_frontend_services=&amp;gt;gui_download
  EXPORTING
*    bin_filesize              =
    filename                  = baja

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to find a solution in the forum with no luck. How can I resolve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 13:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-variable-truncated-ecc6/m-p/8563175#M1659263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-01T13:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: String variable truncated - ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-variable-truncated-ecc6/m-p/8563176#M1659264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since your BAJA is a string and the filename in GUI_DOWNLOAD method is a string, any truncation that is occurring would be caused by Windows.  Are you certain that truncation occurs and not just a limitation on the width that you can view?  Have you verified that a file with a long path/filename/extension doesn't actually get saved on the desktop target?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 13:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-variable-truncated-ecc6/m-p/8563176#M1659264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-01T13:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: String variable truncated - ECC6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-variable-truncated-ecc6/m-p/8563177#M1659265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just like BREAK-POINT said...&lt;/P&gt;&lt;P&gt;Try with &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONDENSE baja.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;before CALL METHOD... maybe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 15:45:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-variable-truncated-ecc6/m-p/8563177#M1659265</guid>
      <dc:creator>former_member591546</dc:creator>
      <dc:date>2012-02-01T15:45:33Z</dc:date>
    </item>
  </channel>
</rss>

