<?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 whether an internal table value/record is modified in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413594#M1243050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi had provided with the code. It would be of help. Check that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See, as you are maintaining the price list in a table control...whenever you click on particular row of the table control then flag would be updated as X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check SDN Forums for more help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Babu Kilari on Mar 27, 2009 6:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Mar 2009 05:18:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-27T05:18:38Z</dc:date>
    <item>
      <title>Checking whether an internal table value/record is modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413588#M1243044</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 am developing a module program to allow the user to maintain price list for the product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this I am using a table control to display the existing price list. the list would be around 50 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if the user modifies a single record in the table control list and goes to modify the second, third... records, I want to indicate/highlight(some icons) the changed line item/records. finally I want to update only the changed record/line item to the database table from the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I want to display a status message when the user presses save button, if there is no changes made to the already listed values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 04:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413588#M1243044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-27T04:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Checking whether an internal table value/record is modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413589#M1243045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each table control record fields, you must be using a work area to update or whatever action you are going to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you to have an extra field with a single character as a part of the above work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, loop on the table control and if any particular row is modified then modify the record and update the flag value as 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, at the end you can track down all the records having the flag value as 'X' and update accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 04:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413589#M1243045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-27T04:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Checking whether an internal table value/record is modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413590#M1243046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;after modifying when the user presses the enter button. then the values from the values from the dynpro enters into ur program. there u can add ur icon...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
  LOOP AT it_tab.
    MODULE get_tab.
  ENDLOOP.

MODULE get_tab INPUT.
  DATA: wa_tab LIKE LINE OF it_tab.
  READ TABLE it_tab
             INTO wa_tab
             INDEX tab1-current_line.
*-----------------------------------Updating Internal table from Screen*
  IF sy-subrc = 0.
    it_tab-icon = &amp;lt;icon&amp;gt;.
    MODIFY it_tab INDEX tab1-current_line.
  ELSE.
    it_tab-icon = &amp;lt;icon&amp;gt;.
    APPEND it_tab.
  ENDIF.
*----------------------------------------------------------------------*
  CLEAR: it_tab.
ENDMODULE.                 " GET_TAB  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when performing save, just clear those icons....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 04:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413590#M1243046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-27T04:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Checking whether an internal table value/record is modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413591#M1243047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi babu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now, loop on the table control and if any particular row is modified then modify the record and update the flag value as 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to identify a particular row field(s) are/is modified??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 05:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413591#M1243047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-27T05:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Checking whether an internal table value/record is modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413592#M1243048</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;STRONG&gt;The flow logic of your table control screen will be like:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
  MODULE STATUS_8001.

  LOOP WITH CONTROL MOVIE.  "movie is your table control name
    MODULE PASS_DATA.            "This module reads the data from the internal 
                                                   "table into the table control 
  ENDLOOP.

PROCESS AFTER INPUT.
  MODULE USER_COMMAND_8001.

  LOOP WITH CONTROL MOVIE.
    MODULE DISPLAY_DATA.           "This module will modify the table control
                                                       "changes back into the internal table

  ENDLOOP.

  
******SCREEN 8001***READING DATA FROM MOVIE_TAB TO TABLE CONTROL********
MODULE PASS_DATA OUTPUT.

  SORT MOVIE_TAB.
  READ TABLE MOVIE_TAB INDEX MOVIE-CURRENT_LINE.

ENDMODULE.                 " GET_DATA  OUTPUT.



******SCREEN 8001****MODIFYING INTERNAL TABLE FROM TABLE CONTROL********
MODULE DISPLAY_DATA INPUT.

*  IF MOVIE_TAB-FLAG = 'X'.

  MODIFY MOVIE_TAB INDEX MOVIE-CURRENT_LINE.

*  ENDIF.

ENDMODULE.                 " DISPLAY_DATA  INPUT


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 05:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413592#M1243048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-27T05:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Checking whether an internal table value/record is modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413593#M1243049</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;to modify a particular line item, I am not selecting the line by pressing push button beside the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, my point is that when I change the value of any particular field in the line, I need to set a flag in the corresponding row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 05:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413593#M1243049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-27T05:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Checking whether an internal table value/record is modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413594#M1243050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi had provided with the code. It would be of help. Check that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See, as you are maintaining the price list in a table control...whenever you click on particular row of the table control then flag would be updated as X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check SDN Forums for more help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Babu Kilari on Mar 27, 2009 6:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 05:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413594#M1243050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-27T05:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Checking whether an internal table value/record is modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413595#M1243051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have got the solution by now. Close the thread by marking it as Answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 09:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413595#M1243051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-27T09:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Checking whether an internal table value/record is modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413596#M1243052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 20:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-an-internal-table-value-record-is-modified/m-p/5413596#M1243052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T20:24:10Z</dc:date>
    </item>
  </channel>
</rss>

