<?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: Problem in file format OPEN DATASET in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-file-format-open-dataset/m-p/3973629#M949079</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;You can use &lt;STRONG&gt;cl_abap_char_utilities=&amp;gt;horizontal_tab&lt;/STRONG&gt; as seperator.&lt;/P&gt;&lt;P&gt;'#' symbol in AL11 is a Horizontal tab delimiter. Hence u can open the file from AL11 in an excel format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Asif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2008 09:39:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-10T09:39:43Z</dc:date>
    <item>
      <title>Problem in file format OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-file-format-open-dataset/m-p/3973628#M949078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;   i am upgrading the systemm 4.7 to ECC6.0&lt;/P&gt;&lt;P&gt;  In one of the programs OPEN dataset statement is being used to download the file to unix server, but when i run the same program in ECC6.0 version an try to opn in notepad the same file it is coming in single line (i.e end of line delimiter is being ignored.)&lt;/P&gt;&lt;P&gt; Hence I tried using WITH WINDOWS LINEFEED addition&lt;/P&gt;&lt;P&gt;it is displayed correctlyin notepad but when i see thru&lt;/P&gt;&lt;P&gt; transaction AL11 character'#' is displayed after every end of line also when i take a printout now one extra new line is added&lt;/P&gt;&lt;P&gt;the delimiter which i have used here is &lt;/P&gt;&lt;P&gt;C type c value CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a better method to solve the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 08:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-file-format-open-dataset/m-p/3973628#M949078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T08:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in file format OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-file-format-open-dataset/m-p/3973629#M949079</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;You can use &lt;STRONG&gt;cl_abap_char_utilities=&amp;gt;horizontal_tab&lt;/STRONG&gt; as seperator.&lt;/P&gt;&lt;P&gt;'#' symbol in AL11 is a Horizontal tab delimiter. Hence u can open the file from AL11 in an excel format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Asif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 09:39:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-file-format-open-dataset/m-p/3973629#M949079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T09:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in file format OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-file-format-open-dataset/m-p/3973630#M949080</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;When you upload the tab delimited file to the application server then the tab spaces are removed and instead the spaces are replaced by the '#" symbols. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This class contains an element whose value is '#'.&lt;/P&gt;&lt;P&gt;So it is generally used incase of tab delimited files on application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use any other symbols like ',' or '|' etc, they remain as it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 12:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-file-format-open-dataset/m-p/3973630#M949080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T12:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in file format OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-file-format-open-dataset/m-p/3973631#M949081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your problem is due to different end of line characters in windows and Unix. When you are dealing with cross platform environment you have to e very carefull in selecting the transfer mode used when bringing the file from the unix environment to windows environment. &lt;/P&gt;&lt;P&gt;    In your case I would sugest doing open dataset using the normal way(not using windows addition) so that AL11 will not show the # character. As far as reading the file you can choose the right transfer format(ASCII) when you use other utilities(like reflections or FTP) to get the file. You can also use Wordpad instead of Notepad as wordpad takes care of both the end of line characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 13:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-file-format-open-dataset/m-p/3973631#M949081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T13:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in file format OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-file-format-open-dataset/m-p/3973632#M949082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA L_MSG1 TYPE STRING.&lt;/P&gt;&lt;P&gt; CONSTANTS: C_TAB1 TYPE C VALUE CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Open Dataset&lt;/P&gt;&lt;P&gt;    OPEN DATASET p_aosvr FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      DO.&lt;/P&gt;&lt;P&gt;*-- Read Dataset and Populate Input file data to Internal Table&lt;/P&gt;&lt;P&gt;        READ DATASET unix_filename INTO L_MSG1.&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;          SPLIT L_MSG1 AT C_TAB1 INTO it_final-field1&lt;/P&gt;&lt;P&gt;                    it_final-field2&lt;/P&gt;&lt;P&gt;                    it_final-field3&lt;/P&gt;&lt;P&gt;                    it_final-field4&lt;/P&gt;&lt;P&gt;                    it_final-filed5.&lt;/P&gt;&lt;P&gt;          APPEND it_final.&lt;/P&gt;&lt;P&gt;          CLEAR  it_final.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          EXIT.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDDO.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MESSAGE e000 WITH 'Error while uploading data'(013).&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Close Dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLOSE DATASET p_aosvr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 14:43:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-file-format-open-dataset/m-p/3973632#M949082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T14:43:20Z</dc:date>
    </item>
  </channel>
</rss>

