<?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 (Enter key) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689297#M888341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ever you press ENTER PAI will be triggered. Even if there is no ok-code it triggers PAI. After PAI, PBO will be triggered. In PBO you loop for table control will refresh the data. That is the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve this, you have to store the new entries in PAI loop for table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_ITAB.&lt;/P&gt;&lt;P&gt;MODULE TABLE_UPDATE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND.&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Define the module as below:&lt;/P&gt;&lt;P&gt;MODULE TABLE_UPDATE.&lt;/P&gt;&lt;P&gt;MODIFY IT_ITAB FROM WA_ITAB.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case table control is created from the work area fields of the internal table. If you have seperate field names in screen and program, move the screen field values to program and append the entry to your internal table which has the table control data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Lakshmi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Dec 14, 2009 3:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Apr 2008 08:51:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-18T08:51:55Z</dc:date>
    <item>
      <title>Table control (Enter key)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689296#M888340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm working on Table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a line on the table but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I put some values in the new line and push enter key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the values disappears without any process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked sy-ucomm but there was no OK_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I use keyborad input in Table control?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance. \o/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 08:43:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689296#M888340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T08:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Table control (Enter key)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689297#M888341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ever you press ENTER PAI will be triggered. Even if there is no ok-code it triggers PAI. After PAI, PBO will be triggered. In PBO you loop for table control will refresh the data. That is the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve this, you have to store the new entries in PAI loop for table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_ITAB.&lt;/P&gt;&lt;P&gt;MODULE TABLE_UPDATE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND.&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Define the module as below:&lt;/P&gt;&lt;P&gt;MODULE TABLE_UPDATE.&lt;/P&gt;&lt;P&gt;MODIFY IT_ITAB FROM WA_ITAB.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case table control is created from the work area fields of the internal table. If you have seperate field names in screen and program, move the screen field values to program and append the entry to your internal table which has the table control data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Lakshmi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Dec 14, 2009 3:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 08:51:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689297#M888341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T08:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table control (Enter key)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689298#M888342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kim,&lt;/P&gt;&lt;P&gt;I also faced the same problem.&lt;/P&gt;&lt;P&gt;In PF-status of the screen, add function code for enter (tickmark) sign, activate it &amp;amp; then code for the function code in module user command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Dec 14, 2009 3:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 08:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689298#M888342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T08:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Table control (Enter key)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689299#M888343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the GUI status of the screen you can attach a function code with the enter key. Now in PAI the function code will be copied to sy-ucomm. So u can check the function code and add the new line to your internal table and then call the table control in the same screen.The entered entry will be visable in your table control now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 08:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689299#M888343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T08:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table control (Enter key)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689300#M888344</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;What if the scenario is a table control that accept only input(s), meaning there's no data being loaded in PBO, so the code for &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT ITAB.
  MODULE MODIFY_DATA.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  LOOP WITH CONTROL TC_DATA.
    MODULE MODIFY_DATA.
  ENDLOOP.

  LOOP WITH CONTROL TC_DATA.
    MODULE MODIFY_DATA.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The scenario above is a blank table control, so it basically loops through the table control itself.  Whenever I press "ENTER" in my inputs, ALL of the entries disappear, when I debug it, the value of SY-UCOMM is BLANK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 14:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689300#M888344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T14:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Table control (Enter key)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689301#M888345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I added a line on the table but&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; When I put some values in the new line and push enter key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to capture the values in PAI module. If you are using work area in table control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is a statement under PAI like Loop with control table_control. endloop. &lt;/P&gt;&lt;P&gt;Write a module in this loop and you have to modify the values in internal table with the work area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the same time, you also need to write code in PBO... Loop with control table_control . endloop. Write a module to read the values into your work are from internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; the values disappears without any process.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I checked sy-ucomm but there was no OK_CODE.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; How can I use keyborad input in Table control?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 14:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689301#M888345</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2009-11-18T14:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table control (Enter key)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689302#M888346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the date of the original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 14:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689302#M888346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T14:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Table control (Enter key)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689303#M888347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Holly..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry man, I didnt see the date but it appeared on the first page some how.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 14:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689303#M888347</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2009-11-18T14:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table control (Enter key)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689304#M888348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kim,&lt;/P&gt;&lt;P&gt;This is a common problem in table control in module pool.&lt;/P&gt;&lt;P&gt;You can solve this problem easily following the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tblctrl_modify INPUT. "Where tblctrl is your table control name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODIFY ivbap                    "ivbap is the internal table.&lt;/P&gt;&lt;P&gt;    FROM ivbap&lt;/P&gt;&lt;P&gt;    INDEX tblctrl-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    APPEND ivbap.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put this logic it will solve your problem.&lt;/P&gt;&lt;P&gt;Thanks &lt;SPAN __jive_emoticon_name="grin"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2009 11:09:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689304#M888348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-14T11:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table control (Enter key)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689305#M888349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; &lt;SPAN class="j-post-author "&gt;&lt;STRONG&gt;Former Member,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;&lt;STRONG&gt;&amp;nbsp; The code you have posted is not working for me, as i'm in the same situation as Kim had posted,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;&lt;STRONG&gt;Any alternatives.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;&lt;STRONG&gt;Thanks.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;&lt;IMG alt="Not Active Contributor" class="jiveImage" src="https://community.sap.com/777/plugins/points/resources/images/not-active-contributor.gif" title="Not Active Contributor" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 12:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689305#M888349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-30T12:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table control (Enter key)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689306#M888350</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;Please check:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="1744821" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://community.sap.com/"&gt;&lt;/A&gt;&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;Amrendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 10:11:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689306#M888350</guid>
      <dc:creator>amrendra_tiwari</dc:creator>
      <dc:date>2013-01-08T10:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Table control (Enter key)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689307#M888351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tha correct answer is provided by shabhasis roy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 14:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enter-key/m-p/3689307#M888351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-23T14:39:32Z</dc:date>
    </item>
  </channel>
</rss>

