<?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: write out file to PC-problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909474#M56757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are writing your file to the PC, the internal table with the data has to be EXACTLY as you want it be sent to the PC.  If you want to truncate lips-werks to three characters, I would recommend moving it to a three character field in the internal table.  If you leave it as LIPS-WERKS then at best it will have 4 characters with one of them blank, and at worst the whole field will be written to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second point is, how are you "manipulating" the data?  If you just use a write statement for formatting on the SAP screen then the data wont be affected in the table.  If you are changing the contents of the internal table, make sure to use a MODIFY statement to ensure that the contents of the internal table are updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you implement these suggestions, then your problem should be fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, come back with some more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2005 21:54:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-09T21:54:19Z</dc:date>
    <item>
      <title>write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909473#M56756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi people,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am writing my data to the presentation server, the fields are not getting transferred as they should. The fields that are coming from the tables directly are the ones that are not getting copied with the manipulation that I have done on them. Can somebody suggest something? For example, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it I want lips-werks to write only three chars. say SDN it is still writing out all the characters in the flat file on the PC but is giving out the right data on the SAP screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody suggest something or give some solution to this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 21:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909473#M56756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-09T21:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909474#M56757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are writing your file to the PC, the internal table with the data has to be EXACTLY as you want it be sent to the PC.  If you want to truncate lips-werks to three characters, I would recommend moving it to a three character field in the internal table.  If you leave it as LIPS-WERKS then at best it will have 4 characters with one of them blank, and at worst the whole field will be written to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second point is, how are you "manipulating" the data?  If you just use a write statement for formatting on the SAP screen then the data wont be affected in the table.  If you are changing the contents of the internal table, make sure to use a MODIFY statement to ensure that the contents of the internal table are updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you implement these suggestions, then your problem should be fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, come back with some more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 21:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909474#M56757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-09T21:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909475#M56758</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;Thanks for your reply. Another question....what if I have to suppress leading and trailing zeros from fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Minal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 09:05:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909475#M56758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T09:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909476#M56759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can suppress the leading zeros with the ALPHA conversion  FMs:&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT  &lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_OUTPUT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test them to see how they work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 09:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909476#M56759</guid>
      <dc:creator>Peter_Inotai</dc:creator>
      <dc:date>2005-06-10T09:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909477#M56760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Minal,&lt;/P&gt;&lt;P&gt;         Please make use of the SHIFT command to delete leading or trailing zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT &amp;lt;c&amp;gt; LEFT DELETING LEADING &amp;lt;str&amp;gt;.&lt;/P&gt;&lt;P&gt;SHIFT &amp;lt;c&amp;gt; RIGHT DELETING TRAILING &amp;lt;str&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Nishanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 09:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909477#M56760</guid>
      <dc:creator>nishanthbhandar</dc:creator>
      <dc:date>2005-06-10T09:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909478#M56761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Minal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a number of good reponses here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to reward those reponses that helped you.  Just click on the stars next to each post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 09:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909478#M56761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T09:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909479#M56762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help. One more help.....In the text file if I have to write data starting from a new line like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;120 USALP01 THREE&lt;/P&gt;&lt;P&gt;FOUR FIVE 3244&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How Do I do that? Right now, I am getting the data that I want to start from the next line on one line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes I will reward all the answers that have been helpful, brad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 10:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909479#M56762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T10:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909480#M56763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks AM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To put a carriage return, you need to use the hex character 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: c_cr(1) type x value '13'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then introduce this into your internal table before downloading to the PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, you can manage the split by moving the second line into another line in your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 10:22:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909480#M56763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T10:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909481#M56764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Minal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not getting a line feed for each line of your internal table, then set the WRITE_LF parameter to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 10:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909481#M56764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T10:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909482#M56765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Brad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me an example of how I should do either of the ways that you suggested?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 10:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909482#M56765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T10:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909483#M56766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you write to the presentation server, you can use the function module GUI_DOWNLOAD.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you need to do is two things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Make sure that the lines in the internal table you pass to the parameter DATA_TAB, correspond exactly to the lines as you would like to see them on the file of the presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You need to pass the value 'X' to the parameter WRITE_LF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 10:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909483#M56766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T10:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909484#M56767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have arranged the values in the internal table as I want them in my file but the thing is if say I have 5 values to be written out to my file, I want 3 to go on one line and 2 to start immediately from the next line. This has to be done for each line in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I do a Write: / 11,2,3,&lt;/P&gt;&lt;P&gt;                    / 45,78.&lt;/P&gt;&lt;P&gt;Its not working. It goes like this...11   2  3 45 78&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what should I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 10:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909484#M56767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T10:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909485#M56768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you talk about WRITE statements, when you are downloading to a file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE statements are for writing to a list on the screen, no?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 11:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909485#M56768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T11:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909486#M56769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, actually thats true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is my code to write to a presentation server:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          FILENAME            = FILENAME&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          DATA_TAB            = ALL_CUSTOMERS&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          FILE_OPEN_ERROR     = 1&lt;/P&gt;&lt;P&gt;          OTHERS              = 2.&lt;/P&gt;&lt;P&gt;CASE SY-SUBRC.&lt;/P&gt;&lt;P&gt;  WHEN 1.&lt;/P&gt;&lt;P&gt;    WRITE 'Error when file opened'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  WHEN 2.&lt;/P&gt;&lt;P&gt;    WRITE 'Error during data transfer'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I go about it now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 11:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909486#M56769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T11:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909487#M56770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you got the function GUI_DOWNLOAD in your system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, use that for a start (rather than the superceded WS_DOWNLOAD, it has similiar parameters, but more functionality).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, make sure that each line in your ALL_CUSTOMERS internal table corresponds to exactly one line on your local file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pass the parameter WRITE_LF the value 'X' (default value, but its best to set it anyway).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 11:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909487#M56770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T11:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909488#M56771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Brad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with the data that I am writing out is that I have to break one line of the internal table. Its not about writing each line of the table. Every line of the table starts from a new line but that is not what I am trying to do. If you can please suggest a way to break one single line of the internal table from a particular field.&lt;/P&gt;&lt;P&gt;For example if I have &lt;/P&gt;&lt;P&gt;name addr1 addr2 werks spart as one line of the internal table and I want to write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name addr1 addr2&lt;/P&gt;&lt;P&gt;werks spart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Minal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 16:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909488#M56771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T16:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909489#M56772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Minal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dude!  I said a number of times in other posts, you must format the internal table EXACTLY as you want it on the PC before you call the function.  Therefore, you could do something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT itab1.
  CLEAR: itab2.
  MOVE: itab1-name  TO itab2-data,
        itab1-addr  TO itab2-data+35,
        itab1-addr2 TO itab2-data+70.
  APPEND itab2.
  CLEAR: itab2.
  MOVE: itab1-werks TO itab2-data,
        itab1-spart TO itab2-data+4.
  APPEND itab2.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This assumes that you only have one line type in your itab1, but you can adapt to suit your needs.  But I hope this makes sense, you &amp;lt;b&amp;gt;must do the splitting logic yourself explicitly in the code&amp;lt;/b&amp;gt;. By moving your data from one internal table to another you can achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2005 18:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909489#M56772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-10T18:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909490#M56773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im a new member to this forums and also a newbie in ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was reading through this discussion and my problem seems to be somewhat similar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have downloaded the file on application server. This file is totally formatted one the way I need. when I execute my program it creates a file on app server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem here is :-&lt;/P&gt;&lt;P&gt;when I go through transaction al11 I see the directory and&lt;/P&gt;&lt;P&gt;once I open my file I have data in it.. but Im not able to see the complete line. Is it because the total no of fields I have in one row is too large? coz the total no of charecters comes around 1300 in the header level data and around 500 in item level data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to download this file on my PC and check if all is well! How do I go for it?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2005 16:02:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909490#M56773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-20T16:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909491#M56774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if you can save the file to the PC when you are in AL11. The way to save a file from SAP to PC without writing the code to write it out to the PC is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the top menu, -System-List-Save. Then you can save it to your C: . That is one way of checking if it is getting written completely or not on the App Serv. Other way is to use the code that I have in this string of mails to write the code to the PC where if the size of the file is approx the same on both the PC and the App Serv, then you know that the file has the data on the App Serv as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helped. If you need more help, reply back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2005 23:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909491#M56774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-20T23:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: write out file to PC-problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909492#M56775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks AM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can save the file as you said.. thats only if I write it out to the screen and then I will have that option. I tried that and I downloaded it on to my PC..it shows all the fields but not in one line..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the file on my app server shows in one line but I dont see all the fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to use GUI_download! what do I specify for tables: data_tab? which table it shud be coz Im getting the final data from many diff tables and transferring to a file in a loop while opening the data set!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 13:21:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-out-file-to-pc-problem/m-p/909492#M56775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T13:21:31Z</dc:date>
    </item>
  </channel>
</rss>

