<?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: abap general in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2521539#M570786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Instead of writing Select statements to multiple tables if we have all tables data together in a View we will write a single select to that view and fetch the complete data into a single Internal table and use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see for example a view called &lt;/P&gt;&lt;P&gt;VIAUFKS&lt;/P&gt;&lt;P&gt;it has got 4 tables &lt;/P&gt;&lt;P&gt;AFIH&lt;/P&gt;&lt;P&gt;AUFK&lt;/P&gt;&lt;P&gt;AFKO&lt;/P&gt;&lt;P&gt;ILOA&lt;/P&gt;&lt;P&gt;so to fetch data from those 4 tables we need to write 4 select statments or some joins&lt;/P&gt;&lt;P&gt;instead of that we can write a single select to the above VIEW and fetch the data in a straight way and use.&lt;/P&gt;&lt;P&gt;Hope you understood it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2007 07:14:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-11T07:14:21Z</dc:date>
    <item>
      <title>abap general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2521535#M570782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the use of making views in real time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 06:10:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2521535#M570782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T06:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: abap general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2521536#M570783</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;The use is the VIEWS are created in the underlying database table and you need not use a JOIN and ask for a dynamic view creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can have buffering for the VIEWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the help of different types of views you can maintain the data using table maintenance generator you can insert into multiple database tables at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 06:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2521536#M570783</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-11T06:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: abap general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2521537#M570784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The followings are different types of views: &lt;/P&gt;&lt;P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at below link. It will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;for more detailed info look on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm" target="test_blank"&gt;http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&amp;amp;" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&amp;amp;&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 06:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2521537#M570784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T06:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: abap general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2521538#M570785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Use of Views instead of base tables&lt;/P&gt;&lt;BR /&gt;Many times ABAP programmers deal with base tables and nested selects. Instead it is always advisable to see whether there is any view provided by SAP on those base tables, so that the data can be filtered out directly, rather than specially coding for it.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;&lt;BR /&gt;Not recommended&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;            Select * from zcntry where cntry like &amp;#145;IN%&amp;#146;.

             Select single * from zflight where cntry = zcntry-cntry and airln = &amp;#145;LF&amp;#146;.

            Endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Recommended&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;            Select * from zcnfl where cntry like &amp;#145;IN%&amp;#146; and airln = &amp;#145;LF&amp;#146;.

            Endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefull.....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 06:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2521538#M570785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T06:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: abap general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2521539#M570786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Instead of writing Select statements to multiple tables if we have all tables data together in a View we will write a single select to that view and fetch the complete data into a single Internal table and use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see for example a view called &lt;/P&gt;&lt;P&gt;VIAUFKS&lt;/P&gt;&lt;P&gt;it has got 4 tables &lt;/P&gt;&lt;P&gt;AFIH&lt;/P&gt;&lt;P&gt;AUFK&lt;/P&gt;&lt;P&gt;AFKO&lt;/P&gt;&lt;P&gt;ILOA&lt;/P&gt;&lt;P&gt;so to fetch data from those 4 tables we need to write 4 select statments or some joins&lt;/P&gt;&lt;P&gt;instead of that we can write a single select to the above VIEW and fetch the data in a straight way and use.&lt;/P&gt;&lt;P&gt;Hope you understood it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2521539#M570786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: abap general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2521540#M570787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/2521540#M570787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:32:29Z</dc:date>
    </item>
  </channel>
</rss>

