<?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: Need to avoid multiple same entry's in dynpro table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-avoid-multiple-same-entry-s-in-dynpro-table/m-p/8238214#M1629831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear krish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        For that porpuse use check on the screen like perform check....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  first check for whether this is correct entry or not by select statement on table then check the entry was not exit in table where you have to insert the data.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ajit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2011 05:08:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-05T05:08:00Z</dc:date>
    <item>
      <title>Need to avoid multiple same entry's in dynpro table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-avoid-multiple-same-entry-s-in-dynpro-table/m-p/8238213#M1629830</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;&lt;/P&gt;&lt;P&gt;In my module pool program I have a table, in the table entry field the user should not enter same entry in second time. If user enter wrongly same entry second time the error message should come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krish......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 04:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-avoid-multiple-same-entry-s-in-dynpro-table/m-p/8238213#M1629830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T04:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need to avoid multiple same entry's in dynpro table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-avoid-multiple-same-entry-s-in-dynpro-table/m-p/8238214#M1629831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear krish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        For that porpuse use check on the screen like perform check....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  first check for whether this is correct entry or not by select statement on table then check the entry was not exit in table where you have to insert the data.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ajit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 05:08:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-avoid-multiple-same-entry-s-in-dynpro-table/m-p/8238214#M1629831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T05:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to avoid multiple same entry's in dynpro table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-avoid-multiple-same-entry-s-in-dynpro-table/m-p/8238215#M1629832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI,&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Select field into (itab-fieldd)
           from table tablename 
            where condition. 

loop at itab.
if field  = itab-field.
message 'error' type 'e'.
endif.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;koolspy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 06:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-avoid-multiple-same-entry-s-in-dynpro-table/m-p/8238215#M1629832</guid>
      <dc:creator>koolspy_ultimate</dc:creator>
      <dc:date>2011-10-05T06:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need to avoid multiple same entry's in dynpro table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-avoid-multiple-same-entry-s-in-dynpro-table/m-p/8238216#M1629833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you talking about table control on screen and avoiding duplicate entries there.If yes then refer below thread &lt;/P&gt;&lt;P&gt;&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="846946"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 08:44:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-avoid-multiple-same-entry-s-in-dynpro-table/m-p/8238216#M1629833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T08:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need to avoid multiple same entry's in dynpro table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-avoid-multiple-same-entry-s-in-dynpro-table/m-p/8238217#M1629834</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;in PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab.
field itab-field1 check_duplicate on request.  " This should be on REQUEST only so that first entry is ignored at the loop pass
module modify_tc.
endloop.


in program
module check_duplicate.
read table itab with key field1 = itab-field1.
if sy-subrc = 0.
message ' This Values is already entered' type 'E' " Or you can use ITAB as SORTED TABLE which does not allow  
" Duplicate entries
endmodule.
module modify_tc.
describe table itab lines tc-lines.
if tc-current_line &amp;gt; tc-lines.
append itab.
endif.
endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; For more info go through F1 help on SORTED TABLE here you should not use APPEND key word instead use INSERT key word&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 10:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-avoid-multiple-same-entry-s-in-dynpro-table/m-p/8238217#M1629834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T10:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need to avoid multiple same entry's in dynpro table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-avoid-multiple-same-entry-s-in-dynpro-table/m-p/8238218#M1629835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in PAI..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS AFTER INPUT.
....
....
MODULE CHECK_DUPLICATE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE CHECK_DUPLICATE INPUT.

DATA wa TYPE &amp;lt;table_name&amp;gt;.

SELECT SINGLE * FROM &amp;lt;table_name&amp;gt;
INTO wa WHERE &amp;lt;give condition&amp;gt;.
IF SY-SUBRC = 0.
MESSAGE 'Record Already Exists' TYPE 'E'.
RETURN.
ENDIF.

ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 12:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-avoid-multiple-same-entry-s-in-dynpro-table/m-p/8238218#M1629835</guid>
      <dc:creator>surajarafath</dc:creator>
      <dc:date>2011-10-05T12:47:37Z</dc:date>
    </item>
  </channel>
</rss>

