<?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 Table Control: Entry gets Cleared from the Table Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-entry-gets-cleared-from-the-table-control/m-p/1787830#M339189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my Dialog program I have used a table-control to let the user enter  records.But after entering the record and without actually saving if I press the Enter key, the whole entry gets cleared from the table-control, but the entry gets saved in the table. I wish the entry to remain there in the table-control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to tackle this please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Dec 2006 04:12:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-18T04:12:43Z</dc:date>
    <item>
      <title>Table Control: Entry gets Cleared from the Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-entry-gets-cleared-from-the-table-control/m-p/1787830#M339189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my Dialog program I have used a table-control to let the user enter  records.But after entering the record and without actually saving if I press the Enter key, the whole entry gets cleared from the table-control, but the entry gets saved in the table. I wish the entry to remain there in the table-control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to tackle this please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 04:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-entry-gets-cleared-from-the-table-control/m-p/1787830#M339189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T04:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: Entry gets Cleared from the Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-entry-gets-cleared-from-the-table-control/m-p/1787831#M339190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make sure u use the MODIFY statement in the PAI of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for better understanding teh table control see the programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;demo_dynpro_tabcont_loop&lt;/P&gt;&lt;P&gt;demo_dynpro_tabcont_loop_at.&lt;/P&gt;&lt;P&gt;RSDEMO_TABLE_CONTROL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 04:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-entry-gets-cleared-from-the-table-control/m-p/1787831#M339190</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-12-18T04:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: Entry gets Cleared from the Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-entry-gets-cleared-from-the-table-control/m-p/1787832#M339191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alok,&lt;/P&gt;&lt;P&gt;             Please refer the below thread,&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="127579"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Reward points if it is useful.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 04:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-entry-gets-cleared-from-the-table-control/m-p/1787832#M339191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T04:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: Entry gets Cleared from the Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-entry-gets-cleared-from-the-table-control/m-p/1787833#M339192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, refer the below link where a similar problem is resolved,&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="27013"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Reward points if it is useful.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 04:24:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-entry-gets-cleared-from-the-table-control/m-p/1787833#M339192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T04:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control: Entry gets Cleared from the Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-entry-gets-cleared-from-the-table-control/m-p/1787834#M339193</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;kindly chk this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
MODULE status_9010.

LOOP WITH CONTROL tab_control.
MODULE move_data_to_table.
ENDLOOP.


PROCESS AFTER INPUT.

LOOP WITH CONTROL tab_control.
MODULE move_data_from_table.
ENDLOOP.


****************************


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Module move_data_to_table OUTPUT
*&amp;amp;---------------------------------------------------------------------*
* This is to move the data from the internal table to the table control
*----------------------------------------------------------------------*
MODULE move_data_to_table OUTPUT.

* This is to move the data from the internal table to the table control
*zmpets_mode-modecode,zmpets_range-*rangeid,zmpets_servfacto-factor are column name of table control

READ TABLE int_factor INDEX tab_control-current_line.
IF sy-subrc = 0.
zmpets_mode-modecode = int_factor-modecode.
zmpets_range-rangeid = int_factor-rangeid.
zmpets_servfacto-factor = int_factor-factor.
ENDIF.

ENDMODULE. " move_data_to_table OUTPUT



**********************



*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Module move_data_from_table INPUT
*&amp;amp;---------------------------------------------------------------------*
* Date is moved from the table control to the Internal Table
*----------------------------------------------------------------------*
MODULE move_data_from_table INPUT.

* To move the data from the table control to internal table 'INT_FACTOR'.

int_factor-modecode = zmpets_mode-modecode.
int_factor-rangeid = zmpets_range-rangeid.
int_factor-factor = zmpets_servfacto-factor.
*here if the data is there, it will modify
MODIFY int_factor INDEX tab_control-current_line.
IF sy-subrc NE 0. "data not exixting in table control . ie new data, then append it
APPEND int_factor.
CLEAR int_factor.
ENDIF.

ENDMODULE. " move_data_from_table INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for any clarifiaction pls mail me.&lt;/P&gt;&lt;P&gt;pls reward points, if this helped u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 04:32:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-entry-gets-cleared-from-the-table-control/m-p/1787834#M339193</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-12-18T04:32:09Z</dc:date>
    </item>
  </channel>
</rss>

