<?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: Table control with change data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-change-data/m-p/4865539#M1137666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish Gupta(AG),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you display records in the table control and you get all the records from the database table.&lt;/P&gt;&lt;P&gt;Now at CHANGE button, you want modify the existing record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code to modify your data. Its working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First populate your internal table from the database table.&lt;/P&gt;&lt;P&gt;In the table control keep the name of the I/O fields same as of &amp;lt;internal_table-field_name&amp;gt;.&lt;/P&gt;&lt;P&gt;for example : movie_tab-rel_year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you navigate to table control (probably on another screen).&lt;/P&gt;&lt;P&gt;Automatically, the records from internal table are populated on to the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you make some changes in your data and click 'CHANGE', use this code to modify your data in database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;AT SCREEN FLOW LOGIC&lt;/STRONG&gt;********************************************************************************&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  LOOP WITH CONTROL MOVIE.&lt;/P&gt;&lt;P&gt;    MODULE SAVE_DATA.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;**********************************************************************************************************************&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;MODULE SAVE_DATA&lt;/STRONG&gt;*************************************************************************************&lt;/P&gt;&lt;P&gt;MODULE SAVE_DATA INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OK_CODE = SY-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE OK_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'CHANGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODIFY MOVIE_TAB INDEX MOVIE-CURRENT_LINE. "table_control-current_line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      UPDATE Y00MOVIES FROM TABLE MOVIE_TAB. "updates database table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;***********************************************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Tarun Gambhir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2008 06:44:35 GMT</pubDate>
    <dc:creator>I355602</dc:creator>
    <dc:date>2008-11-21T06:44:35Z</dc:date>
    <item>
      <title>Table control with change data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-change-data/m-p/4865536#M1137663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi expert ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              I m using TC in program . i have 3 button 'Display' ' Change' 'Exit'.&lt;/P&gt;&lt;P&gt;              when i click on display the data is display in table control . after that when i want to change selected row by open new form with field display in tab .but when i select a particular row for change new window is not open . i used "call screen 102 " after that but not working .&lt;/P&gt;&lt;P&gt;                    help me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks ,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 15:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-change-data/m-p/4865536#M1137663</guid>
      <dc:creator>ashish_gupta11</dc:creator>
      <dc:date>2008-11-20T15:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Table control with change data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-change-data/m-p/4865537#M1137664</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;The LINE parameter in the GET or SET statement refers to the system field SY-STEPL, the special loop index in the flow logic.&lt;/P&gt;&lt;P&gt;You calculate the internal table line that corresponds to the selected table control line as follows:&lt;/P&gt;&lt;P&gt;Line = &amp;lt;ctrl&amp;gt;-TOP_LINE + cursor position - 1.&lt;/P&gt;&lt;P&gt;The GET CURSOR statement sets the return code as follows:&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 if the cursor was positioned on a field&lt;/P&gt;&lt;P&gt;SY-SUBRC = 4 if it was not.&lt;/P&gt;&lt;P&gt;You can position the cursor on a particular element in the table control using the LINE parameter in the following statement:&lt;/P&gt;&lt;P&gt;SET CURSOR FIELD &amp;lt;field_name&amp;gt; LINE &amp;lt;line&amp;gt;.&lt;/P&gt;&lt;P&gt;You can also use the OFFSET and LINE parameters together. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 15:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-change-data/m-p/4865537#M1137664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T15:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table control with change data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-change-data/m-p/4865538#M1137665</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;  use CALL SCREEN '100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Krishna..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 23:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-change-data/m-p/4865538#M1137665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T23:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Table control with change data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-change-data/m-p/4865539#M1137666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish Gupta(AG),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you display records in the table control and you get all the records from the database table.&lt;/P&gt;&lt;P&gt;Now at CHANGE button, you want modify the existing record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code to modify your data. Its working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First populate your internal table from the database table.&lt;/P&gt;&lt;P&gt;In the table control keep the name of the I/O fields same as of &amp;lt;internal_table-field_name&amp;gt;.&lt;/P&gt;&lt;P&gt;for example : movie_tab-rel_year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you navigate to table control (probably on another screen).&lt;/P&gt;&lt;P&gt;Automatically, the records from internal table are populated on to the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you make some changes in your data and click 'CHANGE', use this code to modify your data in database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;AT SCREEN FLOW LOGIC&lt;/STRONG&gt;********************************************************************************&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  LOOP WITH CONTROL MOVIE.&lt;/P&gt;&lt;P&gt;    MODULE SAVE_DATA.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;**********************************************************************************************************************&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;MODULE SAVE_DATA&lt;/STRONG&gt;*************************************************************************************&lt;/P&gt;&lt;P&gt;MODULE SAVE_DATA INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OK_CODE = SY-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE OK_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'CHANGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODIFY MOVIE_TAB INDEX MOVIE-CURRENT_LINE. "table_control-current_line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      UPDATE Y00MOVIES FROM TABLE MOVIE_TAB. "updates database table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;***********************************************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Tarun Gambhir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 06:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-change-data/m-p/4865539#M1137666</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2008-11-21T06:44:35Z</dc:date>
    </item>
  </channel>
</rss>

