<?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: Views in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/views/m-p/3435922#M825147</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;&lt;STRONG&gt;Importance/Use of Views&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data for an application object is often distributed on several database tables. Database systems therefore provide you with a way of defining application-specific views on the data contained in several tables. These are called views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data from several tables can be combined in a meaningful way using a view (join). You can also hide information that is of no interest to you (projection) or only display those data records that satisfy certain conditions (selection).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A view is a logical view on one or more tables, that is, a view is not actually physically stored, instead being derived from one or more other tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data of a view can be displayed exactly like the data of a table in the extended table maintenance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join, Projection and Selection&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CROSS PRODUCT&lt;/P&gt;&lt;P&gt;Given two tables TABA and TABB. Table TABA has 2 entries and table TABB has 4 entries &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each record of TABA is first combined with each record of TABB. If a join condition is not defined, the cross product of tables TABA and TABB is displayed with the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join condition&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A join condition describes how the records of the two tables are connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Inner Join and Outer Join&lt;/U&gt; &lt;/P&gt;&lt;P&gt;The data that can be selected with a view depends primarily on whether the view implements an inner join or an outer join. &lt;/P&gt;&lt;P&gt;With an inner join, you only get the records of the cross-product for which there is an entry in all tables used in the view. &lt;/P&gt;&lt;P&gt;With an outer join, records are also selected for which there is no entry in some of the tables used in the view. (ABAP allows left outer join.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data that can be selected with a view depends primarily on whether the view implements an inner join or an outer join. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Projection&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes some of the fields of the tables involved in a view are not of interest. The set of fields used in the view can be defined explicitly (projection). In our example, Field 4 is of no interest and can be hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We specify the fields which we need to show in our view by including them under the view flds tab when creating a view in the dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Selection Conditions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection conditions that are used as a filter can be defined for a view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifying these conditions under the Selection conditions tab when creating a view in the dictionary would have an effect which is similar to specifying a where clause when writing a select query to restrict data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;View Types&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Four different view types are supported. These differ in the way in which the view is implemented and in the methods permitted for accessing the view data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database views are implemented with an equivalent view on the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Projection views are used to hide fields of a table (only projection).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help views can be used as selection method in Search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maintenance views permit you to maintain the data distributed on several tables for one application object at one time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Database Views&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database views should be created if want to select logically connected data from different tables simultaneously. &lt;/P&gt;&lt;P&gt;Database views implement an inner join.&lt;/P&gt;&lt;P&gt;Application programs can access the data of a database view using the database interface. (Just as we write select queries on database tables, we can write them for views as well.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Includes in Database Views&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An entire table can be included in a database view. In this case all the fields of the included table will become fields of the view (whereby you can explicitly exclude certain fields). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To include one of the tables in the view, enter character * in field View field, the name of the table to be included in field Table and character * again in field Field name on the View fields tab page of the maintenance screen of the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also exclude individual fields of an included table. If you do not want to include a field of the included table in the view, enter - in field View field, the name of the included table in field Table and the name of the field to be excluded in field Field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Inserts with Database Views&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a database view contains only one single table, data can be inserted in this table with the view .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have the following options for the contents of the table fields not contained in the view:&lt;/P&gt;&lt;P&gt;If the field is defined on the database with NOT NULL as initial value, the field is filled with the corresponding initial value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field is defined on the database as NOT NULL without initial value, an insert is not possible. This results in a database error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field is not defined on the database as NOT NULL, there will be a NULL value in this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Projection Views&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Projection views are used to hide fields of a table. This can minimize interfaces; for example when you access the database, you only read and write the field contents actually needed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the above diagram, fields F3 and F4 are irrelevant, and therefore hidden from the projection view of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Maintenance Views&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A maintenance view permits you to maintain the data of an application object together. &lt;/P&gt;&lt;P&gt;The maintenance status determines which accesses to the data of the underlying tables are possible with the maintenance view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Maintenance Status&lt;/U&gt;&lt;/P&gt;&lt;P&gt;The maintenance status of a view controls whether data records can also be changed or inserted in the tables contained in the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The maintenance status can be defined as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read only: Data can only be read through the view. &lt;/P&gt;&lt;P&gt;Read, change, delete, insert: Data of the tables contained in the view can be &lt;/P&gt;&lt;P&gt; changed, deleted, and inserted through the view.&lt;/P&gt;&lt;P&gt;Read and change: Existing view entries can be changed. However, records &lt;/P&gt;&lt;P&gt; cannot  be deleted or inserted.&lt;/P&gt;&lt;P&gt;Read and change (time-dependent views): Only entries whose non-time &lt;/P&gt;&lt;P&gt; dependent part of the key is the same as that of existing entries may be   &lt;/P&gt;&lt;P&gt; inserted.        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Help Views&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help view is created if a view with outer join is needed as selection method of a search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help views are used exclusively for search helps.&lt;/P&gt;&lt;P&gt;A conventional database view selects data from the database using an inner join.&lt;/P&gt;&lt;P&gt;For a help view however, data is selected using a left outer join.&lt;/P&gt;&lt;P&gt;Eg-&amp;gt; Suppose table SCARR (Airline master table) has AA &amp;#150; American airlines&lt;/P&gt;&lt;P&gt;                                              AB &amp;#150; Air Berlin&lt;/P&gt;&lt;P&gt;                                              AC- Air Canada as three entries.&lt;/P&gt;&lt;P&gt;Table SPFLI (Flight schedule) has entries corresponding only to airlines AA (American airlines) and AB (Air Berlin).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if a database view were to be used as a selection method for a search help for airlines, we would only get AA and AB as possible entries because the database view implements an inner join&amp;#133;&amp;#133;.If however, we were to use a help view as the selection method here, we would get AA,AB and AC as possible entries because a help view would implement a left outer join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Restrictions for Maintenance and Help Views&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some restrictions for selecting the secondary tables of a maintenance view or help view. The secondary tables have to be in an N:1 dependency to the primary table or directly preceding secondary table. This ensures that there is at most one dependent record in each of the secondary tables for a data record in the primary table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Append Views&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append views are used for enhancements of database views of the SAP standard.&lt;/P&gt;&lt;P&gt;With an append view, fields of the base tables of the view can be included in the view without modifications. This is analogous to enhancing a table with an append structure.&lt;/P&gt;&lt;P&gt;An append view is assigned to exactly one database view. More than one append view can be created for a database view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The append technique described can only be used for database views. With an append view, only new fields from the base tables contained in the view can be inserted in the view. You cannot insert new tables in the view or modify the join conditions or selection conditions of the view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2008 11:48:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-20T11:48:32Z</dc:date>
    <item>
      <title>Views</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/views/m-p/3435918#M825143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;i want why u to use views and what r the advantages by using views ?pls dont attach about views pls tell me easiy process which i can understand?why to use 4 types of views if any one can explain easily all types ?pls help me?&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;chalapathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 11:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/views/m-p/3435918#M825143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T11:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Views</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/views/m-p/3435919#M825144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the below related threads&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3700852"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3700858"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 11:37:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/views/m-p/3435919#M825144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T11:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Views</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/views/m-p/3435920#M825145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;- Database View   (SE11) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Help View    ( SE54) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help views are used to output additional information when the online help system is called.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the F4 button is pressed for a screen field, a check is first made on whether a matchcode is defined for this field. If this is not the case, the help view is displayed in which the check table of the field is the primary table. Thus, for each table no more than one help view can be created, that is, a table can only be primary table in at most one help view.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Projection View &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A projection view can draw upon only one table. Selection conditions cannot be specified for projection views. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Maintenance View   ( SE54 ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 11:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/views/m-p/3435920#M825145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T11:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Views</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/views/m-p/3435921#M825146</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;  views are nothing but joining of two or more tables insted of using join condition condition in select statement we can use view directly&lt;/P&gt;&lt;P&gt;types of view &lt;/P&gt;&lt;P&gt;1 &lt;/P&gt;&lt;P&gt;data base view:in this tables are joined using inner joins and this are used only for reading purpose this view cannot be changed &lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;maintaince view:in this table are joined using outer joins .here we can perform insert delete modify update which can be done through data base view &lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;projection view :if u want to hide some of the fields of a single table we use this view&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;help view:in creating search helps we can use this view instead of tables&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;_main dis advantages of view&lt;/STRONG&gt;_&lt;/P&gt;&lt;P&gt;if we use views we have to transport this along with the report program&lt;/P&gt;&lt;P&gt;this again burned the transport system so we should avoid using views&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 11:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/views/m-p/3435921#M825146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T11:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Views</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/views/m-p/3435922#M825147</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;&lt;STRONG&gt;Importance/Use of Views&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data for an application object is often distributed on several database tables. Database systems therefore provide you with a way of defining application-specific views on the data contained in several tables. These are called views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data from several tables can be combined in a meaningful way using a view (join). You can also hide information that is of no interest to you (projection) or only display those data records that satisfy certain conditions (selection).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A view is a logical view on one or more tables, that is, a view is not actually physically stored, instead being derived from one or more other tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data of a view can be displayed exactly like the data of a table in the extended table maintenance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join, Projection and Selection&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CROSS PRODUCT&lt;/P&gt;&lt;P&gt;Given two tables TABA and TABB. Table TABA has 2 entries and table TABB has 4 entries &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each record of TABA is first combined with each record of TABB. If a join condition is not defined, the cross product of tables TABA and TABB is displayed with the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join condition&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A join condition describes how the records of the two tables are connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Inner Join and Outer Join&lt;/U&gt; &lt;/P&gt;&lt;P&gt;The data that can be selected with a view depends primarily on whether the view implements an inner join or an outer join. &lt;/P&gt;&lt;P&gt;With an inner join, you only get the records of the cross-product for which there is an entry in all tables used in the view. &lt;/P&gt;&lt;P&gt;With an outer join, records are also selected for which there is no entry in some of the tables used in the view. (ABAP allows left outer join.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data that can be selected with a view depends primarily on whether the view implements an inner join or an outer join. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Projection&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes some of the fields of the tables involved in a view are not of interest. The set of fields used in the view can be defined explicitly (projection). In our example, Field 4 is of no interest and can be hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We specify the fields which we need to show in our view by including them under the view flds tab when creating a view in the dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Selection Conditions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection conditions that are used as a filter can be defined for a view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifying these conditions under the Selection conditions tab when creating a view in the dictionary would have an effect which is similar to specifying a where clause when writing a select query to restrict data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;View Types&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Four different view types are supported. These differ in the way in which the view is implemented and in the methods permitted for accessing the view data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database views are implemented with an equivalent view on the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Projection views are used to hide fields of a table (only projection).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help views can be used as selection method in Search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maintenance views permit you to maintain the data distributed on several tables for one application object at one time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Database Views&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database views should be created if want to select logically connected data from different tables simultaneously. &lt;/P&gt;&lt;P&gt;Database views implement an inner join.&lt;/P&gt;&lt;P&gt;Application programs can access the data of a database view using the database interface. (Just as we write select queries on database tables, we can write them for views as well.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Includes in Database Views&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An entire table can be included in a database view. In this case all the fields of the included table will become fields of the view (whereby you can explicitly exclude certain fields). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To include one of the tables in the view, enter character * in field View field, the name of the table to be included in field Table and character * again in field Field name on the View fields tab page of the maintenance screen of the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also exclude individual fields of an included table. If you do not want to include a field of the included table in the view, enter - in field View field, the name of the included table in field Table and the name of the field to be excluded in field Field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Inserts with Database Views&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a database view contains only one single table, data can be inserted in this table with the view .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have the following options for the contents of the table fields not contained in the view:&lt;/P&gt;&lt;P&gt;If the field is defined on the database with NOT NULL as initial value, the field is filled with the corresponding initial value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field is defined on the database as NOT NULL without initial value, an insert is not possible. This results in a database error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field is not defined on the database as NOT NULL, there will be a NULL value in this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Projection Views&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Projection views are used to hide fields of a table. This can minimize interfaces; for example when you access the database, you only read and write the field contents actually needed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the above diagram, fields F3 and F4 are irrelevant, and therefore hidden from the projection view of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Maintenance Views&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A maintenance view permits you to maintain the data of an application object together. &lt;/P&gt;&lt;P&gt;The maintenance status determines which accesses to the data of the underlying tables are possible with the maintenance view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Maintenance Status&lt;/U&gt;&lt;/P&gt;&lt;P&gt;The maintenance status of a view controls whether data records can also be changed or inserted in the tables contained in the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The maintenance status can be defined as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read only: Data can only be read through the view. &lt;/P&gt;&lt;P&gt;Read, change, delete, insert: Data of the tables contained in the view can be &lt;/P&gt;&lt;P&gt; changed, deleted, and inserted through the view.&lt;/P&gt;&lt;P&gt;Read and change: Existing view entries can be changed. However, records &lt;/P&gt;&lt;P&gt; cannot  be deleted or inserted.&lt;/P&gt;&lt;P&gt;Read and change (time-dependent views): Only entries whose non-time &lt;/P&gt;&lt;P&gt; dependent part of the key is the same as that of existing entries may be   &lt;/P&gt;&lt;P&gt; inserted.        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Help Views&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help view is created if a view with outer join is needed as selection method of a search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help views are used exclusively for search helps.&lt;/P&gt;&lt;P&gt;A conventional database view selects data from the database using an inner join.&lt;/P&gt;&lt;P&gt;For a help view however, data is selected using a left outer join.&lt;/P&gt;&lt;P&gt;Eg-&amp;gt; Suppose table SCARR (Airline master table) has AA &amp;#150; American airlines&lt;/P&gt;&lt;P&gt;                                              AB &amp;#150; Air Berlin&lt;/P&gt;&lt;P&gt;                                              AC- Air Canada as three entries.&lt;/P&gt;&lt;P&gt;Table SPFLI (Flight schedule) has entries corresponding only to airlines AA (American airlines) and AB (Air Berlin).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if a database view were to be used as a selection method for a search help for airlines, we would only get AA and AB as possible entries because the database view implements an inner join&amp;#133;&amp;#133;.If however, we were to use a help view as the selection method here, we would get AA,AB and AC as possible entries because a help view would implement a left outer join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Restrictions for Maintenance and Help Views&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some restrictions for selecting the secondary tables of a maintenance view or help view. The secondary tables have to be in an N:1 dependency to the primary table or directly preceding secondary table. This ensures that there is at most one dependent record in each of the secondary tables for a data record in the primary table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Append Views&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append views are used for enhancements of database views of the SAP standard.&lt;/P&gt;&lt;P&gt;With an append view, fields of the base tables of the view can be included in the view without modifications. This is analogous to enhancing a table with an append structure.&lt;/P&gt;&lt;P&gt;An append view is assigned to exactly one database view. More than one append view can be created for a database view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The append technique described can only be used for database views. With an append view, only new fields from the base tables contained in the view can be inserted in the view. You cannot insert new tables in the view or modify the join conditions or selection conditions of the view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 11:48:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/views/m-p/3435922#M825147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T11:48:32Z</dc:date>
    </item>
  </channel>
</rss>

