<?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 Help required in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-help-required/m-p/1624929#M279276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Right now I am working in table control.&lt;/P&gt;&lt;P&gt;I have an internal table that is getting displayed onto the table control,the internal table has the primary key MATNR in it.&lt;/P&gt;&lt;P&gt;When the user enters an identical MATNR in the second row the validation should throw a message that'Entry already exists' and the entry should get deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table is filled up from the database table using the WBS Element.Then before saving the new entry ,the database entry for the WBS element is deleted.&lt;/P&gt;&lt;P&gt;After updating the Internal table the internal table is inserted into the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know how to validate the new entry against the entries already existing in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i am able to make the problem clear to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Oct 2006 13:16:06 GMT</pubDate>
    <dc:creator>arvind_soni</dc:creator>
    <dc:date>2006-10-06T13:16:06Z</dc:date>
    <item>
      <title>Table Control Help required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-help-required/m-p/1624929#M279276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Right now I am working in table control.&lt;/P&gt;&lt;P&gt;I have an internal table that is getting displayed onto the table control,the internal table has the primary key MATNR in it.&lt;/P&gt;&lt;P&gt;When the user enters an identical MATNR in the second row the validation should throw a message that'Entry already exists' and the entry should get deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table is filled up from the database table using the WBS Element.Then before saving the new entry ,the database entry for the WBS element is deleted.&lt;/P&gt;&lt;P&gt;After updating the Internal table the internal table is inserted into the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know how to validate the new entry against the entries already existing in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i am able to make the problem clear to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 13:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-help-required/m-p/1624929#M279276</guid>
      <dc:creator>arvind_soni</dc:creator>
      <dc:date>2006-10-06T13:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Help required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-help-required/m-p/1624930#M279277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the PAI Event write the code inside the CHAIN &amp;amp; ENDCHAIN.&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;*pai flow logic for tablecontrol 'MPRN'&lt;/P&gt;&lt;P&gt;  LOOP AT i_mprn.&lt;/P&gt;&lt;P&gt;    CHAIN.&lt;/P&gt;&lt;P&gt;      FIELD:  i_mprn-select,&lt;/P&gt;&lt;P&gt;              i_mprn-mprn,&lt;/P&gt;&lt;P&gt;              i_mprn-post_code,&lt;/P&gt;&lt;P&gt;              i_mprn-dm_ndm&lt;/P&gt;&lt;P&gt;      MODULE validate_mprn.&lt;/P&gt;&lt;P&gt;    ENDCHAIN.&lt;/P&gt;&lt;P&gt;    MODULE tabctrl_modify.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE validate_mprn INPUT.&lt;/P&gt;&lt;P&gt;  IF sy-ucomm EQ 'MPSB'.&lt;/P&gt;&lt;P&gt;    PERFORM validate_mprn.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " validate_mprn  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 13:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-help-required/m-p/1624930#M279277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-06T13:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Help required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-help-required/m-p/1624931#M279278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prakash,&lt;/P&gt;&lt;P&gt;Can you tell me how will i know which is the latest entry in the internal table made so that i can use the matnr of that row to hit the database table and check whether that entry exists or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 13:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-help-required/m-p/1624931#M279278</guid>
      <dc:creator>arvind_soni</dc:creator>
      <dc:date>2006-10-06T13:27:02Z</dc:date>
    </item>
  </channel>
</rss>

