<?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: Database view : defining key in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-view-defining-key/m-p/5740646#M1301537</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;I could able to create  database view with keys for all fields. Instead of selecting from table, we have to put the fields manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then while activating, it gives one warning as below.&lt;/P&gt;&lt;P&gt;" All fields are evaluated as key fields" ( Message MC 732).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we can see the Key checkbox ticked for all the fields which we selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pasting the long text for your information only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;italics&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All fields are evaluated as key field&lt;/P&gt;&lt;P&gt;Message no. MC732&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diagnosis&lt;/P&gt;&lt;P&gt;In the view, not all of the mandatory fields were included as key fields. The key of the view therefore is not unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System response&lt;/P&gt;&lt;P&gt;All the fields are regarded as key fields in order to guarantee that the key lengths are unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;For views with a large number of fields, this could have a negative effect on the performance for the language construction described below. In this case, all the mandatory key fields should be included in the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;The key information is relevant for the ABAP/4 language constructs SELECT SINGLE, SELECT ... ORDER BY PRIMARY KEY and SELECT ... FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In these cases, SELECT SINGLE is handled like a simple SELECT ... ENDSELECT, where the first (random) record found is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDER BY PRIMARY KEY and (indirect) SELECT FOR ALL ENTRIES sort according to all fields in these cases.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;italics&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2009 18:38:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-17T18:38:02Z</dc:date>
    <item>
      <title>Database view : defining key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-view-defining-key/m-p/5740642#M1301533</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;I am creating database view from 2 tables and want to define a non-key field from table as a key in this view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice how it can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Rupalee.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 22:27:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-view-defining-key/m-p/5740642#M1301533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-09T22:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Database view : defining key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-view-defining-key/m-p/5740643#M1301534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Key in a database view?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check SAP std database view: VIAUFKST&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 22:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-view-defining-key/m-p/5740643#M1301534</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-06-09T22:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Database view : defining key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-view-defining-key/m-p/5740644#M1301535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This view has copied primary key of table as a view key. Not correct one &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 00:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-view-defining-key/m-p/5740644#M1301535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T00:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Database view : defining key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-view-defining-key/m-p/5740645#M1301536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rupali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know We cannot create a Key field in Database View.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select a Key field from the table then it is used as the Key field aswell in View but we cannot create any Key field Views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 03:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-view-defining-key/m-p/5740645#M1301536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T03:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Database view : defining key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-view-defining-key/m-p/5740646#M1301537</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;I could able to create  database view with keys for all fields. Instead of selecting from table, we have to put the fields manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then while activating, it gives one warning as below.&lt;/P&gt;&lt;P&gt;" All fields are evaluated as key fields" ( Message MC 732).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we can see the Key checkbox ticked for all the fields which we selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pasting the long text for your information only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;italics&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All fields are evaluated as key field&lt;/P&gt;&lt;P&gt;Message no. MC732&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diagnosis&lt;/P&gt;&lt;P&gt;In the view, not all of the mandatory fields were included as key fields. The key of the view therefore is not unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System response&lt;/P&gt;&lt;P&gt;All the fields are regarded as key fields in order to guarantee that the key lengths are unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;For views with a large number of fields, this could have a negative effect on the performance for the language construction described below. In this case, all the mandatory key fields should be included in the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;The key information is relevant for the ABAP/4 language constructs SELECT SINGLE, SELECT ... ORDER BY PRIMARY KEY and SELECT ... FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In these cases, SELECT SINGLE is handled like a simple SELECT ... ENDSELECT, where the first (random) record found is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDER BY PRIMARY KEY and (indirect) SELECT FOR ALL ENTRIES sort according to all fields in these cases.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;italics&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 18:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-view-defining-key/m-p/5740646#M1301537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T18:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Database view : defining key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-view-defining-key/m-p/5740647#M1301538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can just include the fields you need in your view.  When you activate the view, all the fields will become keys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 01:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-view-defining-key/m-p/5740647#M1301538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-20T01:28:49Z</dc:date>
    </item>
  </channel>
</rss>

