<?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: Saving particular record from Table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858715#M1475379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav,&lt;/P&gt;&lt;P&gt;thanks for the reply...&lt;/P&gt;&lt;P&gt;The way you have mentioned here, does a manual chek..&lt;/P&gt;&lt;P&gt;I am looking for a standard way to know the edited fields of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no other option is available then I will go with the option you told about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO let me know is there any standard way to do it..&lt;/P&gt;&lt;P&gt;Using  any of the attributes/properties of the table control etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renuka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Apr 2010 09:12:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-27T09:12:03Z</dc:date>
    <item>
      <title>Saving particular record from Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858713#M1475377</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;I am using table control without wizard .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few of the columns in the table control are editable while others are readonly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the table control displays 5 records, and only 2nd and 4th rows are modified,&lt;/P&gt;&lt;P&gt;In this case I want to update the date in the database table only for the rows I have modified (i.e.. 2nd and 4th row), and not the other rows that are unchanged..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz let me know how do I come to know which field is edited and which one is not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for reply.&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;Renuka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 08:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858713#M1475377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-27T08:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Saving particular record from Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858714#M1475378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try a logic like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before moving the data to the table control just move all the records to a internal table(it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in PAI after modification,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at the table control records and read the (it) , check if the valeu differs comparing both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 09:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858714#M1475378</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-04-27T09:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Saving particular record from Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858715#M1475379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav,&lt;/P&gt;&lt;P&gt;thanks for the reply...&lt;/P&gt;&lt;P&gt;The way you have mentioned here, does a manual chek..&lt;/P&gt;&lt;P&gt;I am looking for a standard way to know the edited fields of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no other option is available then I will go with the option you told about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO let me know is there any standard way to do it..&lt;/P&gt;&lt;P&gt;Using  any of the attributes/properties of the table control etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renuka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 09:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858715#M1475379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-27T09:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Saving particular record from Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858716#M1475380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renuka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use field statement and On request along with Chain End chain statements&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
CHAIN.
FIELD: &amp;lt;Field name 1&amp;gt;,
&amp;lt;Field name 2&amp;gt;,...&amp;lt;Field name n&amp;gt;.
MODULE &amp;lt;module&amp;gt;ON CHAIN-REQUEST.
ENDCHAIN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If you use the ON REQUEST addition in a MODULE statement after FIELD, the module is&lt;/P&gt;&lt;P&gt;called only if the user enters a new value in that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 2)Within a CHAIN block, you must use the ON CHAIN-REQUEST addition. The module is then&lt;/P&gt;&lt;P&gt;called if the user changes the contents of at least one screen field within the CHAIN block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) With this condition, module mod is called only if the value of the screen field dynp_field has been changed by input after the event PBO. It is considered as input if the existing input is overwritten with the same value or if the initial value of the field is entered explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Kiruba.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 10:30:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858716#M1475380</guid>
      <dc:creator>I066686</dc:creator>
      <dc:date>2010-04-27T10:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Saving particular record from Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858717#M1475381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiruba,&lt;/P&gt;&lt;P&gt;Can you plz elaborate the same, give sommore detail.&lt;/P&gt;&lt;P&gt;Sample code will be a great help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renuka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 08:59:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858717#M1475381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T08:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Saving particular record from Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858718#M1475382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renuka, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it by 2 ways, &lt;/P&gt;&lt;P&gt;1) Simply you can use modify statement to update database .It modifies the entry if it is  already exists in database or else it will insert into the database.&lt;/P&gt;&lt;P&gt;2) using OnRequest along with field statement .&lt;/P&gt;&lt;P&gt;    a) Add a flag field in the structure which you are using for the table control to set if value got changed&lt;/P&gt;&lt;P&gt;    b) If you are using OnRequest along with field statement , if vaue got changed in the particular field , it will enter into the module in the on request statement, inside the module , you can update the flag field.so at the end while updating you can identify which row has changed using the flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT
Loop at internal table "used in the table control
Field : xyz.
Module mod ON REQUEST "This module will called only if value got changed after PBO, inside the module , set the flag in the structure
endloop
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think it will be enough to solve your problem  it cannot be elaborated more than this .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 04:42:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858718#M1475382</guid>
      <dc:creator>I066686</dc:creator>
      <dc:date>2010-04-30T04:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Saving particular record from Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858719#M1475383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiruba,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked for me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renuka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 08:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-particular-record-from-table-control/m-p/6858719#M1475383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-30T08:56:45Z</dc:date>
    </item>
  </channel>
</rss>

