<?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: Data entry in the table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543421#M1073263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you check if both the fields are marked as key fields ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;do you also how can I make a field unique...that will not allow two records to have the same value in one field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the principles of DBMS, you should define only 1 key field in the table. Otherwise there is no point in having 2 fields as key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Oct 2008 19:05:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-03T19:05:42Z</dc:date>
    <item>
      <title>Data entry in the table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543417#M1073259</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;I havae a scenario..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one ztable with the foloowing fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. enum&lt;/P&gt;&lt;P&gt;2. Ecnum&lt;/P&gt;&lt;P&gt;3. Add&lt;/P&gt;&lt;P&gt;4. Date&lt;/P&gt;&lt;P&gt;5. erole&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; what I did is I made enum and ecnum fields as the key fields in the table and rest I didn't make as key fields. Now when I tried to enter data in this table using sm30....I am facing a problem...I tried putting the following record:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st rec. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;123&lt;/P&gt;&lt;P&gt;012&lt;/P&gt;&lt;P&gt;xyz&lt;/P&gt;&lt;P&gt;010101&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;321&lt;/P&gt;&lt;P&gt;011&lt;/P&gt;&lt;P&gt;abc&lt;/P&gt;&lt;P&gt;020202&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now as soon as I enter the second record it says the record is already there..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so can you tell me what's the problem...I mean I didn't make erole as the key field but then also I ma having this error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajeev  Gupta on Oct 3, 2008 4:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 14:08:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543417#M1073259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T14:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data entry in the table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543418#M1073260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check in the table if the entry is already present with the keys of the second record ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 14:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543418#M1073260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T14:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data entry in the table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543419#M1073261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Advait, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I did check the table just has one record i.e. my first record and now I am trying to enter the second one and I am getting this error.....do you also how can I make a field unique...that will not allow two records to have the same value in one field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 14:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543419#M1073261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T14:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Data entry in the table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543420#M1073262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check again the table definition and see if both key and initial value checkboxes are active on both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, don't forget to include mandt, otherwise you are making the able be universally accessible, and not dependant on the enviroment you are working on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 15:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543420#M1073262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T15:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data entry in the table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543421#M1073263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you check if both the fields are marked as key fields ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;do you also how can I make a field unique...that will not allow two records to have the same value in one field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the principles of DBMS, you should define only 1 key field in the table. Otherwise there is no point in having 2 fields as key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 19:05:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543421#M1073263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T19:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data entry in the table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543422#M1073264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; As per the principles of DBMS, you should define only 1 key field in the table. Otherwise there is no point in having 2 fields as key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Huh?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 19:31:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543422#M1073264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T19:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data entry in the table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543423#M1073265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;I did not mean that you should always define 1 key field in the table always &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was refering to the scenario he wants to create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e the key field should not be repeated for another entry even if there are 2 key fields in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's is possible to achieve this with table maintenance modification events, But I guess the best way to restrict this would be to only define one key field for the table.&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;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 19:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543423#M1073265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T19:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Data entry in the table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543424#M1073266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I'm still not sure I understand (but it may be because I really don't understand the original question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at table BSIS, the first key of the index is BUKRS. It's also the first key of the index BSIS~1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 19:54:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-entry-in-the-table/m-p/4543424#M1073266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T19:54:35Z</dc:date>
    </item>
  </channel>
</rss>

