<?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: Read Dataset error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-error/m-p/5535316#M1264420</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;There may be a conversion problem while reading file.&lt;/P&gt;&lt;P&gt;Try to use a "tab_temse" which contains TEXT type fields only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2009 12:01:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-16T12:01:50Z</dc:date>
    <item>
      <title>Read Dataset error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-error/m-p/5535314#M1264418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of Upgradation we did unicode for this program but in Read dataset I am getting error.Could you pls help me in this issue.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before unicode I am getting &lt;/P&gt;&lt;P&gt;  YAR:14:13:##&lt;/P&gt;&lt;P&gt;  15::##&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After unicode I am getting &lt;/P&gt;&lt;P&gt;YAR:14:13:##&lt;/P&gt;&lt;P&gt;15::#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; START OF INSERTION BY RV21012009&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;OPEN DATASET up_name IN TEXT MODE ENCODING DEFAULT FOR INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;END OF INSERTION BY RV21012009&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; OPEN DATASET up_name.   "RV21012009D&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    result = 1.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    READ DATASET up_name INTO tab_temse LENGTH up_len1.&lt;/P&gt;&lt;P&gt;    IF up_len1 NE 0.&lt;/P&gt;&lt;P&gt;      APPEND tab_temse.&lt;/P&gt;&lt;P&gt;      ADD up_len1 TO up_len2.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      CLOSE DATASET up_name.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 11:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-error/m-p/5535314#M1264418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T11:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read Dataset error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-error/m-p/5535315#M1264419</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;In stead of using ENCODING DEFAULT please use ENCODING UTF-8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET up_name IN TEXT MODE ENCODING DEFAULT FOR INPUT.&lt;/P&gt;&lt;P&gt;OPEN DATASET up_name IN TEXT MODE ENCODING UTF-8FOR INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 11:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-error/m-p/5535315#M1264419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T11:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read Dataset error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-error/m-p/5535316#M1264420</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;There may be a conversion problem while reading file.&lt;/P&gt;&lt;P&gt;Try to use a "tab_temse" which contains TEXT type fields only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 12:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-error/m-p/5535316#M1264420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T12:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Read Dataset error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-error/m-p/5535317#M1264421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had also faced the same problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* to acheve this..

Genrally user put the files from desktop or ftp using unix command..

while they are copying file from desktop or ftp they paste in Binary mode..Ask them to Copy in TEXT MODE ...

if they copy in Binary mode # will appear in after every line ending...

See at the end of each line if # appears ask the end user to copy file in text mode..
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
OPEN DATASET up_name IN TEXT MODE ENCODING DEFAULT FOR INPUT.  "Use Binary mode and test

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 12:14:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-error/m-p/5535317#M1264421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T12:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Read Dataset error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-error/m-p/5535318#M1264422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Suman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in case of open dataset and read dataset, read dataset depends on on which mode file is opened .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in non unicode system no need to specify additional mode buy&lt;/P&gt;&lt;P&gt;in unicode system its must.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is various way to write open dataset statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET file FOR OUTPUT IN  TEXT MODE  (UTF8, default, non-unicode).&lt;/P&gt;&lt;P&gt;or you can open in &lt;/P&gt;&lt;P&gt;                                                         IN BINARY MODE&lt;/P&gt;&lt;P&gt;                                                         IN LEGACY TEXT MODE&lt;/P&gt;&lt;P&gt;                                                         IN  LEGACY BINARY MODE&lt;/P&gt;&lt;P&gt;points to be taken care&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If the file was opened as a text file or as a legacy text file, the data is normally read from the current position of the file pointer to the next end-of-line marking, and the file pointer is positioned after the end-of-line marking. If the data object dobj is too short for the number of read characters, the superfluous characters and bytes are cut off. If it is longer, it will be filled with blanks to the right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If the file was opened as a binary file or as a legacy-binary file, as much data is read that fits into the data object dobj. If the data object dobj is longer than the number of exported characters, it is filled with hexadecimal 0 on the right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also check the type of Up_name and tab_temse and check in transaction AL11 in which format its taking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 12:38:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-error/m-p/5535318#M1264422</guid>
      <dc:creator>umashankar_sahu</dc:creator>
      <dc:date>2009-04-16T12:38:56Z</dc:date>
    </item>
  </channel>
</rss>

