<?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: While creating new entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-while-creating-new-entries/m-p/6038857#M1350542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you press enter, PBO of that screen in triggered after the PAI. i guess you are using clear or refresh on the table in these events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remove it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Aug 2009 14:41:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-08T14:41:43Z</dc:date>
    <item>
      <title>Table control: While creating new entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-while-creating-new-entries/m-p/6038856#M1350541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a table control with input control in the screen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In which my requirement is like.. what ever the entries user is typing in the table control, I have to store it in a Z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have any issue in storing the internal table into the Z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i am typing any thing in the table control row and press ENTER, the values got erased. For this problem, where I need to Append the values into an Internal table.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone show the sample piece of code How to pass values from table control to an Internal table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 12:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-while-creating-new-entries/m-p/6038856#M1350541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-08T12:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table control: While creating new entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-while-creating-new-entries/m-p/6038857#M1350542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you press enter, PBO of that screen in triggered after the PAI. i guess you are using clear or refresh on the table in these events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remove it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 14:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-while-creating-new-entries/m-p/6038857#M1350542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-08T14:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Table control: While creating new entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-while-creating-new-entries/m-p/6038858#M1350543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Prem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can start with following link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 14:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-while-creating-new-entries/m-p/6038858#M1350543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-08T14:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Table control: While creating new entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-while-creating-new-entries/m-p/6038859#M1350544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Table control gets the value in PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gives the values in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
MODULE STATUS_0001.

LOOP AT ITAB WITH CONTROL TC.
  MODULE MOV.
ENDLOOP.

PROCESS AFTER INPUT.

LOOP AT ITAB.
  module save_data.
ENDLOOP.

MODULE USER_COMMAND_0001.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI you get the values from Table control you save it in Internal table in the module 'save_data'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO table control will be initialised (ie no data in it) .&lt;/P&gt;&lt;P&gt;So in the module MOV.&lt;/P&gt;&lt;P&gt;You have move the data from the internal table to the table control ( move IT to screen-fieldname).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you able to see the data when you press the enter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 09:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-while-creating-new-entries/m-p/6038859#M1350544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T09:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table control: While creating new entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-while-creating-new-entries/m-p/6038860#M1350545</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;Once you press ENTER, the PAI is triggered, internal table is populated and data is inserted into the database table. &lt;/P&gt;&lt;P&gt;Now the PBO is again triggered where I guess, you havent repopulated your screen fields with data from the internal table.&lt;/P&gt;&lt;P&gt;In the PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
  MODULE STATUS_0112.
  LOOP AT gt_itab1 WITH CONTROL tabcontrol.
    MODULE move_data.
  ENDLOOP.

PROCESS AFTER INPUT.
  LOOP AT gt_itab1.
    MODULE insert_data.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In     MODULE move_data.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if sy-ucomm eq 'ENTER'.
    read table gt_itab1 into wa_itab1 index tabcontrol-current_line.
    screen_field1 = wa_itab1-field1.
    screen-field2 = wa_itab1-field2.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 09:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-while-creating-new-entries/m-p/6038860#M1350545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T09:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Table control: While creating new entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-while-creating-new-entries/m-p/6038861#M1350546</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;Normally if the Screen Field name and a variable in the program are same the automatic data transfer takes place, but in the case of Table controls you need to explictly handle this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;module modify_data.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module modify_tab.&lt;/P&gt;&lt;P&gt;describe table itab llines tc-lines.&lt;/P&gt;&lt;P&gt;if tc-lines &amp;lt;= tc-current_lline.&lt;/P&gt;&lt;P&gt;modify itab index tc-current_line.&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;append itab&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you above code is not implemented the data from screen is not transported to the itab in program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ramchander RaoK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 09:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-while-creating-new-entries/m-p/6038861#M1350546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T09:36:00Z</dc:date>
    </item>
  </channel>
</rss>

