<?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: adding field as unique to a table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-field-as-unique-to-a-table/m-p/2947326#M694833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Data creation as per the requirements,pls go through the following........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;i&amp;gt;how to&amp;lt;/i&amp;gt;&amp;lt;/u&amp;gt; : &lt;/P&gt;&lt;P&gt;we can write coding in the PBO of the screen for table maintainance to fetch the largest available number and increment it by 1 before updating in z-table.The field which contains the number can be given as a display only field in the screen of maintainance(using screen painter itself)&lt;/P&gt;&lt;P&gt;  &amp;lt;u&amp;gt;&amp;lt;i&amp;gt;disadvantage&amp;lt;/i&amp;gt;&amp;lt;/u&amp;gt; :&lt;/P&gt;&lt;P&gt;a) whenever the maintainance is regenerated or changed&amp;amp;activated the code in   &lt;/P&gt;&lt;P&gt;    PBO is overwritten &lt;/P&gt;&lt;P&gt;b)works better with 2step maintainance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check revert and reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Oct 2007 09:43:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-21T09:43:44Z</dc:date>
    <item>
      <title>adding field as unique to a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-field-as-unique-to-a-table/m-p/2947324#M694831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;there are  five fields in a table and i want to introduce a field index in the table which will be primary key and will uniquely identify a record and it will go on incrementing as and when the recoed is added to the table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;earlier fields of table are&lt;/P&gt;&lt;P&gt;ship_to    all these three are primary keys&lt;/P&gt;&lt;P&gt;ship_to_name&lt;/P&gt;&lt;P&gt;email_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i am having problem with updating the database with primary key so will introduce a new field as index and go on adding it so it wil uniquely identify a single record&lt;/P&gt;&lt;P&gt;but my problme is how to incement the index when user enters a entry in the table maintiances screen and save it....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest how to do it....&lt;/P&gt;&lt;P&gt;i want to use a unique field index and it goes on adding as user enters the data and this index to be inserted in the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 09:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-field-as-unique-to-a-table/m-p/2947324#M694831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T09:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: adding field as unique to a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-field-as-unique-to-a-table/m-p/2947325#M694832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a number range object using SNRO and then call the FM NUMBER_GET_NEXT to get the next number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 22:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-field-as-unique-to-a-table/m-p/2947325#M694832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T22:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: adding field as unique to a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-field-as-unique-to-a-table/m-p/2947326#M694833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Data creation as per the requirements,pls go through the following........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;i&amp;gt;how to&amp;lt;/i&amp;gt;&amp;lt;/u&amp;gt; : &lt;/P&gt;&lt;P&gt;we can write coding in the PBO of the screen for table maintainance to fetch the largest available number and increment it by 1 before updating in z-table.The field which contains the number can be given as a display only field in the screen of maintainance(using screen painter itself)&lt;/P&gt;&lt;P&gt;  &amp;lt;u&amp;gt;&amp;lt;i&amp;gt;disadvantage&amp;lt;/i&amp;gt;&amp;lt;/u&amp;gt; :&lt;/P&gt;&lt;P&gt;a) whenever the maintainance is regenerated or changed&amp;amp;activated the code in   &lt;/P&gt;&lt;P&gt;    PBO is overwritten &lt;/P&gt;&lt;P&gt;b)works better with 2step maintainance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check revert and reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Oct 2007 09:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-field-as-unique-to-a-table/m-p/2947326#M694833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-21T09:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: adding field as unique to a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-field-as-unique-to-a-table/m-p/2947327#M694834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Arora,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in addition to creating/using a number range object to get your index value. you could also use a GUID if the key is not supposed to be displayed for a user or for sorting purposes. If you just need an unique value for technical reasons you can create GUIDs by using GUID_CREATE function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Oct 2007 11:28:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-field-as-unique-to-a-table/m-p/2947327#M694834</guid>
      <dc:creator>romanweise</dc:creator>
      <dc:date>2007-10-21T11:28:39Z</dc:date>
    </item>
  </channel>
</rss>

