<?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 AL11 File Save Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978184#M1604378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've again ran into a problem using AL11. While exporting my file unconverted I seem to be losing white space. &lt;/P&gt;&lt;P&gt;I'm writing an ecryption program that operates using ASCII Characters 32 to 126, spaces included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) After program execution, the white space character is in the string at the end&lt;/P&gt;&lt;P&gt;[http://imgur.com/MvXRU]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) When I export to HTML format, it appears that the white space is still there&lt;/P&gt;&lt;P&gt;[http://i.imgur.com/CBemx.jpg]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) When I export uncoverted to text file, the white space is removed.&lt;/P&gt;&lt;P&gt;[http://i.imgur.com/TELSx.jpg]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text file on the application server is then transferred using a windows batch file to another location where it can be decrypted using a key. However, the problem is that since whitespace at the end is shaved, It kind of ruins the decryption and message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking that the space is still there on the text file that is on the application server because the space is exported when going to HTML, but I can't access the file directly, only this way which.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my question being is white-space at the end of lines trimmed upon export from AL11? Is there a way to avoid this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2011 07:35:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-08T07:35:30Z</dc:date>
    <item>
      <title>AL11 File Save Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978184#M1604378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've again ran into a problem using AL11. While exporting my file unconverted I seem to be losing white space. &lt;/P&gt;&lt;P&gt;I'm writing an ecryption program that operates using ASCII Characters 32 to 126, spaces included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) After program execution, the white space character is in the string at the end&lt;/P&gt;&lt;P&gt;[http://imgur.com/MvXRU]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) When I export to HTML format, it appears that the white space is still there&lt;/P&gt;&lt;P&gt;[http://i.imgur.com/CBemx.jpg]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) When I export uncoverted to text file, the white space is removed.&lt;/P&gt;&lt;P&gt;[http://i.imgur.com/TELSx.jpg]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text file on the application server is then transferred using a windows batch file to another location where it can be decrypted using a key. However, the problem is that since whitespace at the end is shaved, It kind of ruins the decryption and message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking that the space is still there on the text file that is on the application server because the space is exported when going to HTML, but I can't access the file directly, only this way which.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my question being is white-space at the end of lines trimmed upon export from AL11? Is there a way to avoid this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 07:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978184#M1604378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-08T07:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: AL11 File Save Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978185#M1604379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;While trasferring data from itab, concatenate the data using the below syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONCATENATE LINES OF itab
            INTO result 
            RESPECTING BLANKS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then move this itab to the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 07:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978185#M1604379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-08T07:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: AL11 File Save Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978186#M1604380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post relevant portions of the code which you've used to download the file to the App server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i understand correctly you want the file to be &lt;U&gt;fixed length&lt;/U&gt;, so you need "space" to be padded to the right if the line length is lesser. Correct me if i am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 08:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978186#M1604380</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-06-08T08:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: AL11 File Save Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978187#M1604381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, though that isn't the solution.&lt;/P&gt;&lt;P&gt;[http://i.imgur.com/F19Ag.jpg]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's still cutting the space at the end after the export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the statement before:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;        concatenate ls_text_line ' ' into ls_text_line seperated by space.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which I changed to:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;       concatenate ls_text_line lc_enc into ls_text_line respecting blanks.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both produce the same results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 08:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978187#M1604381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-08T08:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: AL11 File Save Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978188#M1604382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure. I can't do a fixed length because the lines vary. Some lines are 20 characters, others are 300. Also if I use a fixed length and the extra spaces get added to other lines then I have an alignment problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    open dataset ls_c_path for output in text mode encoding non-unicode.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    do li_bp_str_length times.

      lc_key = me-&amp;gt;cl_keygen-&amp;gt;get_current_key( ).

      lc_dec = ls_cur_bp_str+li_str_pos(1).

      lc_enc = me-&amp;gt;cl_v-&amp;gt;enc_char( in_key   = lc_key
                                          in_char  = lc_dec
                                          in_pos   = li_str_pos
                                          in_l_num = li_line_number ).

        concatenate ls_text_line lc_enc into ls_text_line respecting blanks.
      clear lc_enc.

      li_str_pos = li_str_pos + 1.

    enddo.

    transfer ls_text_line to ls_c_path.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even with the transfer statement given a length, the space at the end still gets cut off.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;transfer ls_text_line to ls_c_path length li_bp_str_length.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bryan Abrams on Jun 8, 2011 10:05 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bryan Abrams on Jun 8, 2011 10:07 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bryan Abrams on Jun 8, 2011 10:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 08:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978188#M1604382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-08T08:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: AL11 File Save Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978189#M1604383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you can check the ascii value of this "SPACE"(after encoding) and check it is indeed SPACE "DEC VALUE - 32".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 09:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978189#M1604383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-08T09:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: AL11 File Save Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978190#M1604384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you opened the file in binary mode for output?  If not, try doing the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 09:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978190#M1604384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-08T09:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: AL11 File Save Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978191#M1604385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a space in the last position of the string, so it's part of it.&lt;/P&gt;&lt;P&gt;[http://i.imgur.com/0QrRK.jpg]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinraaj,&lt;/P&gt;&lt;P&gt;When I set it to binary mode, the output I get is absurdly weird.&lt;/P&gt;&lt;P&gt;[http://i.imgur.com/WeWE6.jpg]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 09:30:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978191#M1604385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-08T09:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: AL11 File Save Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978192#M1604386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody, just an update as I did some playing around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the suggestion for Binary Mode in output, I tried this and noticed the funny output. I'm not sure exactly why but spaces are placed intbetween each character, or some odd value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, as so I tried:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
      path    TYPE string VALUE 'E:\dir\test_file.txt',
      teststr TYPE string VALUE 'This is a transferred statement. '.

OPEN DATASET path FOR OUTPUT IN BINARY MODE.
TRANSFER teststr TO path.
CLOSE DATASET path.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the output I noticed the whitespace at the end is still removed:&lt;/P&gt;&lt;P&gt;[http://i.imgur.com/Y6X5w.jpg]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: It's also the same in the case of LEGACY BINARY and LEGACY TEXT MODE. I'm thinking the transfer statement probably shaves whitespace off the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bryan Abrams on Jun 9, 2011 11:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 08:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978192#M1604386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-09T08:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: AL11 File Save Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978193#M1604387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody, the problem has been solved. I ended a linebreak at the end of the string before transfering it. So for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
string = 'space on the end '.
concatenate string cl_abap_char_utilities=&amp;gt;cr_lf into string.
transfer string to file.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The white space at the end is new preserved. Thanks everybody for the help.&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="629503"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 07:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978193#M1604387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-10T07:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: AL11 File Save Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978194#M1604388</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;Similar to your SPACE problem, I have issues with preceding zeros when downloading from AL11 to excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution to make appear the preceding zeros of a field in excel when downloading from AL11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already used formula "=T("0010") in ABAP code but user doesn't wanted it that way(with formulas applied)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Swami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 08:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/al11-file-save-problem/m-p/7978194#M1604388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-10T08:31:24Z</dc:date>
    </item>
  </channel>
</rss>

