<?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 problem in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-control/m-p/3061741#M725243</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;   I m having a table control as a selection screen.When I enter a material number in the first field of the table control and press enter, then i m doing some validations for some fields and populating the data into the fields of the table control by using the material no.This is working fine.After that again if i press enter,again the process is starting and data in the 1st row is copied to 2nd row.If i press enter again the process is repeating and the rows are filled with the same data of 1st row.How can i prevent this?any suggestions please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;dp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2007 14:57:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-28T14:57:50Z</dc:date>
    <item>
      <title>problem in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-control/m-p/3061741#M725243</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;   I m having a table control as a selection screen.When I enter a material number in the first field of the table control and press enter, then i m doing some validations for some fields and populating the data into the fields of the table control by using the material no.This is working fine.After that again if i press enter,again the process is starting and data in the 1st row is copied to 2nd row.If i press enter again the process is repeating and the rows are filled with the same data of 1st row.How can i prevent this?any suggestions please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;dp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 14:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-control/m-p/3061741#M725243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T14:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-control/m-p/3061742#M725244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your PAI module for the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your APPEND ITAB must be triggering each and every time you are pressing enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, do like this in that module:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE loop_lines.

  read table itab with index sy-stepl.
  if sy-subrc = 0.
    modify itab
  else.
    append itab.
  endif.

ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&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;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 15:02:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-table-control/m-p/3061742#M725244</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-28T15:02:05Z</dc:date>
    </item>
  </channel>
</rss>

