<?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: checking change to texteditcontrol in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-change-to-texteditcontrol/m-p/3095113#M734249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it because we are tryig to access tables which requires explicit work area to manupulate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the corrected code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at text_tab in line.
  read table text_tab1into line1 index sy-tabix.
  if line &amp;lt;&amp;gt; line1.
*   text was changed
    exit.
  endif.
  clear: line, line1.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2007 14:13:41 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-11-20T14:13:41Z</dc:date>
    <item>
      <title>checking change to texteditcontrol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-change-to-texteditcontrol/m-p/3095110#M734246</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;&lt;/P&gt;&lt;P&gt;I have a texteditcontrol. Inside this texteditcontrol, i assign some default value when runtime. Let say i gt this sentence: Hello World&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume a user enter some text in the texteditcontrol. &lt;/P&gt;&lt;P&gt;eg: Hello World. How are you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, the user execute the program. The texteditcontrol detect some change in the text. How to know if it is change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 02:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-change-to-texteditcontrol/m-p/3095110#M734246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T02:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: checking change to texteditcontrol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-change-to-texteditcontrol/m-p/3095111#M734247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can compare both the text tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say, there is one default table which has initial text .. IT_DEF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, after user input you can get the text table and you can compare it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call method text_editor-&amp;gt;get_text_as_r3table
importing
table = textlines
exceptions
others = 1.

loop at it_def.
  read table textlines index sy-tabix.
   if it_def &amp;lt;&amp;gt; textlines.
*   text was changed
   endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 03:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-change-to-texteditcontrol/m-p/3095111#M734247</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-20T03:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: checking change to texteditcontrol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-change-to-texteditcontrol/m-p/3095112#M734248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i understand your code but i got declaration problem for the internal table. &lt;/P&gt;&lt;P&gt;Can help me resolve the problem? below is my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For storing the default value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: line(256) TYPE c,&lt;/P&gt;&lt;P&gt;      text_tab LIKE STANDARD TABLE OF line,&lt;/P&gt;&lt;P&gt;      field LIKE line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hold the current value in texteditcontrol:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: line1(256) TYPE c,&lt;/P&gt;&lt;P&gt;      text_tab1 LIKE STANDARD TABLE OF line1,&lt;/P&gt;&lt;P&gt;      field1 LIKE line1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My default value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; line = 'First line in TextEditControl'.&lt;/P&gt;&lt;P&gt;  APPEND line TO text_tab.&lt;/P&gt;&lt;P&gt;  line = 'hello world'.&lt;/P&gt;&lt;P&gt;  APPEND line TO text_tab.&lt;/P&gt;&lt;P&gt;  line = 'How are you'.&lt;/P&gt;&lt;P&gt;  APPEND line TO text_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform the check of 2 internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'COMPARE'.&lt;/P&gt;&lt;P&gt;      call method editor-&amp;gt;get_text_as_r3table&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;      table = text_tab1&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;      others = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  loop at text_tab.&lt;/P&gt;&lt;P&gt;  read table text_tab1 index sy-tabix.&lt;/P&gt;&lt;P&gt;   if text_tab &amp;lt;&amp;gt; text_tab1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  text was changed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;  endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My error message is:&lt;/P&gt;&lt;P&gt;The internal table "TEXT_TAB" has no Header line - explicit		&lt;/P&gt;&lt;P&gt;specification of an output area with "INTO wa" or "ASSIGNING &amp;lt;fs&amp;gt;" is&lt;/P&gt;&lt;P&gt;required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 06:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-change-to-texteditcontrol/m-p/3095112#M734248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T06:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: checking change to texteditcontrol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-change-to-texteditcontrol/m-p/3095113#M734249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it because we are tryig to access tables which requires explicit work area to manupulate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the corrected code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at text_tab in line.
  read table text_tab1into line1 index sy-tabix.
  if line &amp;lt;&amp;gt; line1.
*   text was changed
    exit.
  endif.
  clear: line, line1.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 14:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-change-to-texteditcontrol/m-p/3095113#M734249</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-20T14:13:41Z</dc:date>
    </item>
  </channel>
</rss>

