<?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 for read dataset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963580#M68018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oscar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to open in binary mode ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2005 06:54:03 GMT</pubDate>
    <dc:creator>andreas_mann3</dc:creator>
    <dc:date>2005-08-02T06:54:03Z</dc:date>
    <item>
      <title>problem for read dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963575#M68013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a problem to read a file with datasets. This is my report:&lt;/P&gt;&lt;P&gt;************************************&lt;/P&gt;&lt;P&gt;data: begin of record,&lt;/P&gt;&lt;P&gt;        MATNR_001(018),&lt;/P&gt;&lt;P&gt;        MBRSH_002(001),&lt;/P&gt;&lt;P&gt;        MTART_003(004),&lt;/P&gt;&lt;P&gt;        ... &lt;/P&gt;&lt;P&gt;        ...&lt;/P&gt;&lt;P&gt;        HERKL_088(003),&lt;/P&gt;&lt;P&gt;      end of record.&lt;/P&gt;&lt;P&gt;( 953 characters length )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET P_DATASET&lt;/P&gt;&lt;P&gt;               FOR INPUT IN TEXT MODE&lt;/P&gt;&lt;P&gt;               ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read dataset p_dataset into record.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;When 'p_dataset' is read 'record' has only the first 240 characters of the dataset and the other fields of structure 'record' are empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I see the file with AL11, its only shows the first 240 characters of each row but if I download the file to my pc it contains all fields completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 22:44:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963575#M68013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T22:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem for read dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963576#M68014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oscar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens if you READ the dataset into a char1000 string first then pass it into RECORD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie. &lt;/P&gt;&lt;P&gt;data: g_string(1000) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET P_DATASET&lt;/P&gt;&lt;P&gt;FOR INPUT IN TEXT MODE&lt;/P&gt;&lt;P&gt;ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;read dataset p_dataset into g_string.&lt;/P&gt;&lt;P&gt;record = g_string.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;enddo.&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;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 23:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963576#M68014</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-08-01T23:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem for read dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963577#M68015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this sample coding&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*   Retrieve Data file from Application server(Upload from Unix)
DATA: i_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.

    OPEN DATASET i_file FOR INPUT IN TEXT MODE.
    IF sy-subrc NE 0.
      MESSAGE e999(za) WITH 'Error opening file' i_file.
    ENDIF.
    DO.
*     Reads each line of file individually
      READ DATASET i_file INTO wa_datatab.
*     Perform processing here
*     .....   
    ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also check this one&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_updown.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_updown.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 03:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963577#M68015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-02T03:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: problem for read dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963578#M68016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Oscar Alonso &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Can you explain more detail on your file content?&lt;/P&gt;&lt;P&gt;after the 240 character, what content exist in the file, as you estimate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 04:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963578#M68016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-02T04:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: problem for read dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963579#M68017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;I tried to READ dataset into a char1000 and into a string but it continues taking the first 240 characters. I think that it take 255 characters long by defect, but 240 to 270 character is a entire field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 06:49:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963579#M68017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-02T06:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem for read dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963580#M68018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oscar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to open in binary mode ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 06:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963580#M68018</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-08-02T06:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem for read dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963581#M68019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;if I open in binary mode and read in a target field 400 chars long, it take the first 240 first chars of the row 1 of my file and then take the 160 first chars of the row 2 of the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But a row of my line have more than 240 chars! &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 07:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963581#M68019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-02T07:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem for read dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963582#M68020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oscar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;transfer file to pc and make gui_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what happens now ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 07:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-read-dataset/m-p/963582#M68020</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-08-02T07:37:38Z</dc:date>
    </item>
  </channel>
</rss>

