<?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 lost data when using open dataset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420134#M540236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    when i use open dataset to write data to application server, st i found some datas are lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   And then i use wait 5 seconds before close dataset, and the problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  But now two lines data lost again, what is the best mechanism to handle this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2007 08:54:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-05T08:54:53Z</dc:date>
    <item>
      <title>lost data when using open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420134#M540236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    when i use open dataset to write data to application server, st i found some datas are lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   And then i use wait 5 seconds before close dataset, and the problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  But now two lines data lost again, what is the best mechanism to handle this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 08:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420134#M540236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T08:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: lost data when using open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420135#M540237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be ur data is not updated completely.&lt;/P&gt;&lt;P&gt;increase wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 11:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420135#M540237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T11:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: lost data when using open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420136#M540238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi IBM China,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you CLOSE DATASET &amp;lt;file&amp;gt; after transfer? This will flush any buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: Micosoft server? - most probably.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regargs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 11:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420136#M540238</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-07-05T11:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: lost data when using open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420137#M540239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   UNIX server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   i did close action. i am not very sure of such kind that add more waiting seconds and maybe better method exists, ths&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 00:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420137#M540239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T00:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: lost data when using open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420138#M540240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are determining that the data is lost? Are you looking at the file using another application from outside of SAP? You have to wait for your program to complete the file creation with the CLOSE DATASET and exit out completely that issues a commit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 01:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420138#M540240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T01:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: lost data when using open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420139#M540241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with TCODE AL11, en.., maybe i could try commit work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 01:07:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420139#M540241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T01:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: lost data when using open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420140#M540242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AL11 has limitations on how much it can display in terms of length of the record. Is your data loss happening at the end of the record or in the total number of records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 01:10:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420140#M540242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T01:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: lost data when using open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420141#M540243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;records not so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; yeah, the two problem are both exist for this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; BTW, in debug mode the file is complete. Then i add wait 5 seconds, and now st this error still happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 01:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420141#M540243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T01:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: lost data when using open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420142#M540244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi IBM China,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not trust AL11 too much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try to OPEN DATASET and the read back the contents - just to compare?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A nice tool is FUNCTION 'ARCHIVFILE_SERVER_TO_CLIENT'. Use it from SE37 to download the file contents to your PC. The look what you really got.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may use these two forms to read and display a server file:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  read_file
*&amp;amp;---------------------------------------------------------------------*
*       File lesen in String-Table das letzte im Bauch behalten
*----------------------------------------------------------------------*
*      --&amp;gt;P_FILE
*      &amp;lt;--PT_STR
*----------------------------------------------------------------------*
FORM read_file  USING    p_file TYPE file
                CHANGING pt_str TYPE typ_t_string
                         p_maxs TYPE sytleng.
  STATICS:
    l_file TYPE file,
    l_maxs TYPE sytleng,
    lt_str TYPE typ_t_string.
  DATA:
    l_str TYPE string,
    l_len TYPE sytleng.
* Nur zwischenzeitliche Änderungen wären ärgerlich
  IF p_file &amp;lt;&amp;gt; l_file.
    l_file = p_file.
    CLEAR: l_maxs, lt_str.
    OPEN DATASET p_file IN TEXT MODE ENCODING DEFAULT FOR INPUT
      IGNORING CONVERSION ERRORS.
    WHILE sy-subrc = 0.
      READ DATASET p_file INTO l_str LENGTH l_len.
      CHECK sy-subrc = 0.
      IF l_len &amp;gt; l_maxs.
        l_maxs =  l_len.
      ENDIF." l_len &amp;gt; l_maxs.
      APPEND l_str TO lt_str.
    ENDWHILE." sy-subrc = 0.
    CLOSE DATASET p_file.
  ENDIF." p_file &amp;lt;&amp;gt; l_file.
  pt_str = lt_str.
  p_maxs = l_maxs.
ENDFORM.                    " read_file
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  showcontent
*&amp;amp;---------------------------------------------------------------------*
*       Anzeige im Control
*----------------------------------------------------------------------*
*      --&amp;gt;PT_DATA
*----------------------------------------------------------------------*
FORM showcontent  USING    pt_data TYPE table
                           p_name  TYPE file
                           p_max   TYPE sytleng.
  STATICS:
    l_top TYPE i VALUE 50,
    l_left TYPE i VALUE 100.
  DATA:
    l_caption  TYPE sylisel,
    l_wordwrap TYPE sytleng,
    l_height   TYPE sytleng,
    l_width    TYPE sytleng,
    l_repid    TYPE syrepid.
  FIELD-SYMBOLS:
    &amp;lt;f&amp;gt; TYPE ANY.
  l_repid = sy-repid.
* damit die boxes nicht genau übereinander liegen
  ADD 5 TO: l_top, l_left.
* Darstellung in max Breite
  l_width = 9 * p_max.
  IF l_width &amp;gt; 1000.
    l_width = 800.
  ENDIF." l_width &amp;gt; 1000.
  DESCRIBE TABLE pt_data LINES sy-tfill.
  l_height = 10 * sy-tfill + 60.
  IF l_height &amp;gt; 400.
    l_height = 300.
  ENDIF." l_height &amp;gt; 1000.
* ggf. Tabelle beschneiden
  PERFORM check_restrict_size CHANGING pt_data.
  CHECK NOT  pt_data IS INITIAL.
  READ TABLE pt_data INDEX 1 ASSIGNING &amp;lt;f&amp;gt;.
  DESCRIBE FIELD &amp;lt;f&amp;gt; LENGTH l_wordwrap IN BYTE MODE.
  l_wordwrap = p_max.
  WRITE p_max TO l_caption LEFT-JUSTIFIED.
  CONCATENATE p_name '(MaxLineLen.' l_caption ')' INTO l_caption
    SEPARATED BY space.
  CREATE OBJECT go_dialogbox
     EXPORTING
       width                     = l_width
       height                    = l_height
     top                         = l_top
     left                        = l_left
     caption                     = l_caption.
  CREATE OBJECT go_event_receiver.
  SET HANDLER go_event_receiver-&amp;gt;close FOR go_dialogbox.

  CREATE OBJECT go_editor
    EXPORTING
      parent                     = go_dialogbox"ccc
      wordwrap_mode
        = cl_gui_textedit=&amp;gt;wordwrap_off "wordwrap_at_fixed_position
*        wordwrap_position          = l_wordwrap
      wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true.

  CALL METHOD go_editor-&amp;gt;set_toolbar_mode
    EXPORTING
      toolbar_mode = go_editor-&amp;gt;true.
  CALL METHOD go_editor-&amp;gt;set_statusbar_mode
    EXPORTING
      statusbar_mode = go_editor-&amp;gt;true.
* Set edit mode
  CALL METHOD go_editor-&amp;gt;set_readonly_mode.
*   send table to control
  CALL METHOD go_editor-&amp;gt;set_font_fixed
    EXPORTING
      mode = cl_gui_textedit=&amp;gt;true.
  CALL METHOD go_editor-&amp;gt;set_text_as_r3table
    EXPORTING
      table = pt_data.
* finally flush
  CALL METHOD cl_gui_cfw=&amp;gt;flush
    EXCEPTIONS
      OTHERS = 1.
ENDFORM.                    " showcontent

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 11:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420142#M540244</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-07-06T11:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: lost data when using open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420143#M540245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post your code so we may get if something needed to change, as i never faced this problem with datasets&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 13:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lost-data-when-using-open-dataset/m-p/2420143#M540245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T13:01:31Z</dc:date>
    </item>
  </channel>
</rss>

