<?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 Problem in open dataset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139360#M114059</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;I want to display 361 characters per line in Application server.I have used open dataset.But only 255 characters are coming per line.Others are not visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my coding.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Opening the file for output in text mode&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPEN DATASET p_afile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    g_flg = c_x.&lt;/P&gt;&lt;P&gt;    MESSAGE s000 WITH text-004 p_afile text-005.&lt;/P&gt;&lt;P&gt;    "Error in opening file for output&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  LOOP AT t_output INTO w_output.&lt;/P&gt;&lt;P&gt;    TRANSFER w_output TO p_afile.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Closing the file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLOSE DATASET p_afile.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    g_flg = c_x.&lt;/P&gt;&lt;P&gt;    MESSAGE s000 WITH text-006 p_afile."Error in closing file&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any useful pointers will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;J.Jayanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2006 07:03:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-08T07:03:25Z</dc:date>
    <item>
      <title>Problem in open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139360#M114059</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;I want to display 361 characters per line in Application server.I have used open dataset.But only 255 characters are coming per line.Others are not visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my coding.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Opening the file for output in text mode&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPEN DATASET p_afile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    g_flg = c_x.&lt;/P&gt;&lt;P&gt;    MESSAGE s000 WITH text-004 p_afile text-005.&lt;/P&gt;&lt;P&gt;    "Error in opening file for output&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  LOOP AT t_output INTO w_output.&lt;/P&gt;&lt;P&gt;    TRANSFER w_output TO p_afile.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Closing the file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLOSE DATASET p_afile.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    g_flg = c_x.&lt;/P&gt;&lt;P&gt;    MESSAGE s000 WITH text-006 p_afile."Error in closing file&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any useful pointers will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;J.Jayanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2006 07:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139360#M114059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-08T07:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139361#M114060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data in the file will be conserved but it is displayed in 255 characters.&lt;/P&gt;&lt;P&gt;Try to read the file back into the internal table and see the contents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2006 07:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139361#M114060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-08T07:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139362#M114061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jayanthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. w_output &lt;/P&gt;&lt;P&gt;   What is the length of this variable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.   want to display 361 characters per line in Application server&lt;/P&gt;&lt;P&gt;  How can u display on application serveR?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2006 07:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139362#M114061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-08T07:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139363#M114062</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;How exactly are you identifying thatit is 255 chars.&lt;/P&gt;&lt;P&gt;Are you seeing in AL11 or reading back the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are seeing in AL11 then it shows only 255 chars regardless of data in file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2006 07:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139363#M114062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-08T07:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139364#M114063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZTEST_AL11.

data: begin of itab occurs 0,
      char(361),
      end of itab.
 data: char(26).

char = 'abcdefghijklmnopqrstuvwxyz'.
concatenate char char into itab-char.
concatenate itab-char char into itab-char.
concatenate itab-char char into itab-char.
concatenate itab-char char into itab-char.
concatenate itab-char char into itab-char.
concatenate itab-char char into itab-char.
concatenate itab-char char into itab-char.
concatenate itab-char char into itab-char.
concatenate  itab-char char into itab-char.
concatenate  itab-char char into itab-char.
concatenate  itab-char char into itab-char.
concatenate  itab-char char into itab-char.
concatenate itab-char char into itab-char.
append itab.
data: p_file like RLGRAP-FILENAME value './TEST123.txt'.
open dataset p_file for output in text MODE encoding default.
if sy-subrc = 0.
loop at itab.
transfer itab to p_file.
endloop.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The above code works , and it is showing 361 chars data in al11.&lt;/P&gt;&lt;P&gt;please check it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2006 07:43:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139364#M114063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-08T07:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139365#M114064</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;Actually I can see only 255 characters in AL11.But the data is there in that Application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Vijay,could you explain is there any settings needed to see the entire(361 characters) in AL11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jayanthi Jayaraman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2006 09:03:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139365#M114064</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-02-08T09:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139366#M114065</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;Datas in the Application server file can only be viewed upto 255 Characters and not more than that even more than 255 characters are stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the whole length of the file exists in application server and this can be verified by downloading the file from the Application server by writing a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem has appeared to me earlier and I used to download the file, where the whole length of the file Exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anbu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2006 09:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-open-dataset/m-p/1139366#M114065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-08T09:38:59Z</dc:date>
    </item>
  </channel>
</rss>

