SlideShare a Scribd company logo
Views
March-2005 Views | 2.15.03
Objectives
• The participants will be able to :
– Create different type of views in database.
– Understand the difference between database &
projection view.
March-2005 Views | 2.15.03 2
Creating a view: Step 1
March-2005 Views | 2.15.03 3
Select radio button
“View”
Click on Create button
Provide a custom
name
Different types of views: Step2
March-2005 Views | 2.15.03 4
Select the view type
Click on the “Copy”
button
Defining primary & secondary tables:
Step3
March-2005 Views | 2.15.03 5
Primary table
Secondary table
Defining relationship for selected
tables: Step 4
March-2005 Views | 2.15.03 6
Relationship
Defining view fields : Step 5
March-2005 Views | 2.15.03 7
View fields for
primary table
View fields: Step 6
March-2005 Views | 2.15.03 8
All view fields from primary & secondary
tables displayed on screen
March-2005 Views | 2.15.03 9
Defining selection criteria: Step 7
Selection
conditions
March-2005 Views | 2.15.03 10
Defining maintenance status : Step 8
View
maintenance
March-2005 Views | 2.15.03 11
Code to demonstrate use
of database views
Demonstration
• Step by Step creation of a Database View.
March-2005 Views | 2.15.03 12
Practice
• Step by Step creation of a Database View.
March-2005 Views | 2.15.03 13
Summary
•There are different types of views for efficiently
extracting data from the database.
•For creating a view , one needs to define the
primary and secondary tables, define the
relationship for the selected tables, define the
view fields, define the selection criteria and
define the maintenance status.
March-2005 Views | 2.15.03 14
Questions
•What are the different types of views ?
•What is meant by defining selection criteria of
a view ?
•What is meant by defining maintenance status
of a view ?
March-2005 Views | 2.15.03 15

More Related Content

What's hot

Sap Abap Reports
Sap Abap ReportsSap Abap Reports
Sap Abap Reports
vbpc
 
CDS Views.pptx
CDS Views.pptxCDS Views.pptx
CDS Views.pptx
Suman817957
 
Dialog Programming Overview
Dialog Programming OverviewDialog Programming Overview
Dialog Programming Overview
sapdocs. info
 
table maintenance generator1
 table maintenance generator1 table maintenance generator1
table maintenance generator1
Kranthi Kumar
 
SAP-ABAP/4@e_max
SAP-ABAP/4@e_maxSAP-ABAP/4@e_max
SAP-ABAP/4@e_max
Bhuvnesh Gupta
 
Sql joins
Sql joinsSql joins
Sql joins
Berkeley
 
Search help
Search helpSearch help
Search help
Harshul Phadke
 
Sap scripts
Sap scriptsSap scripts
Sap scripts
Jugul Crasta
 
Table maintenance generator and its modifications
Table maintenance generator and its modificationsTable maintenance generator and its modifications
Table maintenance generator and its modifications
scribid.download
 
Sap abap database table
Sap abap database tableSap abap database table
Sap abap database table
Ducat
 
Sap system copy procedure
Sap system copy procedureSap system copy procedure
Sap system copy procedure
Graciete Martins
 
Internal tables in sap
Internal tables in sapInternal tables in sap
Internal tables in sap
Dharma Raju
 
0104 abap dictionary
0104 abap dictionary0104 abap dictionary
0104 abap dictionary
vkyecc1
 
Internal tables
Internal tables Internal tables
Internal tables
Jibu Jose
 
05 internal tables
05 internal tables05 internal tables
05 internal tables
Brahmaiah Punati
 
08.Abap Dialog Programming Overview
08.Abap Dialog Programming Overview08.Abap Dialog Programming Overview
08.Abap Dialog Programming Overview
sapdocs. info
 
Module pool programming
Module pool programmingModule pool programming
Module pool programming
Subhojit- Opekkhay
 
Crystal report
Crystal reportCrystal report
Alv theory
Alv theoryAlv theory
Alv theory
Phani Kumar
 
Good sql server interview_questions
Good sql server interview_questionsGood sql server interview_questions
Good sql server interview_questions
Mahesh Gupta (DBATAG) - SQL Server Consultant
 

What's hot (20)

Sap Abap Reports
Sap Abap ReportsSap Abap Reports
Sap Abap Reports
 
CDS Views.pptx
CDS Views.pptxCDS Views.pptx
CDS Views.pptx
 
Dialog Programming Overview
Dialog Programming OverviewDialog Programming Overview
Dialog Programming Overview
 
table maintenance generator1
 table maintenance generator1 table maintenance generator1
table maintenance generator1
 
SAP-ABAP/4@e_max
SAP-ABAP/4@e_maxSAP-ABAP/4@e_max
SAP-ABAP/4@e_max
 
Sql joins
Sql joinsSql joins
Sql joins
 
Search help
Search helpSearch help
Search help
 
Sap scripts
Sap scriptsSap scripts
Sap scripts
 
Table maintenance generator and its modifications
Table maintenance generator and its modificationsTable maintenance generator and its modifications
Table maintenance generator and its modifications
 
Sap abap database table
Sap abap database tableSap abap database table
Sap abap database table
 
Sap system copy procedure
Sap system copy procedureSap system copy procedure
Sap system copy procedure
 
Internal tables in sap
Internal tables in sapInternal tables in sap
Internal tables in sap
 
0104 abap dictionary
0104 abap dictionary0104 abap dictionary
0104 abap dictionary
 
Internal tables
Internal tables Internal tables
Internal tables
 
05 internal tables
05 internal tables05 internal tables
05 internal tables
 
08.Abap Dialog Programming Overview
08.Abap Dialog Programming Overview08.Abap Dialog Programming Overview
08.Abap Dialog Programming Overview
 
Module pool programming
Module pool programmingModule pool programming
Module pool programming
 
Crystal report
Crystal reportCrystal report
Crystal report
 
Alv theory
Alv theoryAlv theory
Alv theory
 
Good sql server interview_questions
Good sql server interview_questionsGood sql server interview_questions
Good sql server interview_questions
 

Viewers also liked

cardinality1
cardinality1cardinality1
cardinality1
Kranthi Kumar
 
Chapter 10 online help & documentation1
Chapter 10 online help & documentation1Chapter 10 online help & documentation1
Chapter 10 online help & documentation1
Kranthi Kumar
 
Sujith ~ cross applications
Sujith ~ cross applicationsSujith ~ cross applications
Sujith ~ cross applications
Kranthi Kumar
 
Lecture02 abap on line
Lecture02 abap on lineLecture02 abap on line
Lecture02 abap on line
Milind Patil
 
Chapter 04 abap dictionary tables in relational databases1
Chapter 04 abap dictionary tables in relational databases1Chapter 04 abap dictionary tables in relational databases1
Chapter 04 abap dictionary tables in relational databases1
Kranthi Kumar
 
data modelling1
 data modelling1 data modelling1
data modelling1
Kranthi Kumar
 
Chapter 05 adding structures1
Chapter 05 adding structures1Chapter 05 adding structures1
Chapter 05 adding structures1
Kranthi Kumar
 
Chapter 02 abap dictionary objects1
Chapter 02 abap dictionary objects1Chapter 02 abap dictionary objects1
Chapter 02 abap dictionary objects1
Kranthi Kumar
 
Ale Idoc
Ale IdocAle Idoc
Ale Idoc
Amit Khari
 
Chapter 07 abap dictionary changes1
Chapter 07 abap dictionary changes1Chapter 07 abap dictionary changes1
Chapter 07 abap dictionary changes1
Kranthi Kumar
 
Chapter 01 overview of abap dictionary1
Chapter 01 overview of abap dictionary1Chapter 01 overview of abap dictionary1
Chapter 01 overview of abap dictionary1
Kranthi Kumar
 
Chapter 06 abap repository information system1
Chapter 06 abap  repository information system1Chapter 06 abap  repository information system1
Chapter 06 abap repository information system1
Kranthi Kumar
 
Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1
Kranthi Kumar
 
0106 debugging
0106 debugging0106 debugging
0106 debugging
vkyecc1
 
Chapter 03 foreign key relationships1
Chapter 03 foreign key relationships1Chapter 03 foreign key relationships1
Chapter 03 foreign key relationships1
Kranthi Kumar
 
Bapi jco[1]
Bapi jco[1]Bapi jco[1]
Bapi jco[1]
mateenjambagi
 
Abap function module help
Abap function module helpAbap function module help
Abap function module help
Kranthi Kumar
 
Version it satya_dev
Version it satya_devVersion it satya_dev
Version it satya_dev
Kranthi Kumar
 
Abap course chapter 3 basic concepts
Abap course   chapter 3 basic conceptsAbap course   chapter 3 basic concepts
Abap course chapter 3 basic concepts
Milind Patil
 
control techniques
control techniquescontrol techniques
control techniques
Kranthi Kumar
 

Viewers also liked (20)

cardinality1
cardinality1cardinality1
cardinality1
 
Chapter 10 online help & documentation1
Chapter 10 online help & documentation1Chapter 10 online help & documentation1
Chapter 10 online help & documentation1
 
Sujith ~ cross applications
Sujith ~ cross applicationsSujith ~ cross applications
Sujith ~ cross applications
 
Lecture02 abap on line
Lecture02 abap on lineLecture02 abap on line
Lecture02 abap on line
 
Chapter 04 abap dictionary tables in relational databases1
Chapter 04 abap dictionary tables in relational databases1Chapter 04 abap dictionary tables in relational databases1
Chapter 04 abap dictionary tables in relational databases1
 
data modelling1
 data modelling1 data modelling1
data modelling1
 
Chapter 05 adding structures1
Chapter 05 adding structures1Chapter 05 adding structures1
Chapter 05 adding structures1
 
Chapter 02 abap dictionary objects1
Chapter 02 abap dictionary objects1Chapter 02 abap dictionary objects1
Chapter 02 abap dictionary objects1
 
Ale Idoc
Ale IdocAle Idoc
Ale Idoc
 
Chapter 07 abap dictionary changes1
Chapter 07 abap dictionary changes1Chapter 07 abap dictionary changes1
Chapter 07 abap dictionary changes1
 
Chapter 01 overview of abap dictionary1
Chapter 01 overview of abap dictionary1Chapter 01 overview of abap dictionary1
Chapter 01 overview of abap dictionary1
 
Chapter 06 abap repository information system1
Chapter 06 abap  repository information system1Chapter 06 abap  repository information system1
Chapter 06 abap repository information system1
 
Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1
 
0106 debugging
0106 debugging0106 debugging
0106 debugging
 
Chapter 03 foreign key relationships1
Chapter 03 foreign key relationships1Chapter 03 foreign key relationships1
Chapter 03 foreign key relationships1
 
Bapi jco[1]
Bapi jco[1]Bapi jco[1]
Bapi jco[1]
 
Abap function module help
Abap function module helpAbap function module help
Abap function module help
 
Version it satya_dev
Version it satya_devVersion it satya_dev
Version it satya_dev
 
Abap course chapter 3 basic concepts
Abap course   chapter 3 basic conceptsAbap course   chapter 3 basic concepts
Abap course chapter 3 basic concepts
 
control techniques
control techniquescontrol techniques
control techniques
 

Similar to VIEWS

Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1
Kranthi Kumar
 
Utilizing the Reporting Capabilities of The Financial Edge
Utilizing the Reporting Capabilities of The Financial EdgeUtilizing the Reporting Capabilities of The Financial Edge
Utilizing the Reporting Capabilities of The Financial Edge
Blackbaud
 
Dashboard reporting in easy
Dashboard reporting in easyDashboard reporting in easy
Dashboard reporting in easy
Sayed Yunus
 
SAP 102 - BW Basics.ppt
SAP 102 - BW Basics.pptSAP 102 - BW Basics.ppt
SAP 102 - BW Basics.ppt
Hari Somanath
 
OJS Training: Journal Settings and Configuration
OJS Training: Journal Settings and ConfigurationOJS Training: Journal Settings and Configuration
OJS Training: Journal Settings and Configuration
Lighton Phiri
 
Reporting & Analytics.pdf
Reporting & Analytics.pdfReporting & Analytics.pdf
Reporting & Analytics.pdf
Bhavani Testone
 
Reporting & Analytics.pdf
Reporting & Analytics.pdfReporting & Analytics.pdf
Reporting & Analytics.pdf
Roopa slideshare
 
Empowering Business Users: OBIEE 12c Visual Analyzer and Data Mashup
Empowering Business Users: OBIEE 12c Visual Analyzer and Data MashupEmpowering Business Users: OBIEE 12c Visual Analyzer and Data Mashup
Empowering Business Users: OBIEE 12c Visual Analyzer and Data Mashup
Edelweiss Kammermann
 
W10 - Work Order Preferences
W10 - Work Order PreferencesW10 - Work Order Preferences
W10 - Work Order Preferences
Maintenance Connection
 
Sketch Assignment - Task Management
Sketch Assignment - Task ManagementSketch Assignment - Task Management
Sketch Assignment - Task Management
Suraj Rao
 

Similar to VIEWS (10)

Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1
 
Utilizing the Reporting Capabilities of The Financial Edge
Utilizing the Reporting Capabilities of The Financial EdgeUtilizing the Reporting Capabilities of The Financial Edge
Utilizing the Reporting Capabilities of The Financial Edge
 
Dashboard reporting in easy
Dashboard reporting in easyDashboard reporting in easy
Dashboard reporting in easy
 
SAP 102 - BW Basics.ppt
SAP 102 - BW Basics.pptSAP 102 - BW Basics.ppt
SAP 102 - BW Basics.ppt
 
OJS Training: Journal Settings and Configuration
OJS Training: Journal Settings and ConfigurationOJS Training: Journal Settings and Configuration
OJS Training: Journal Settings and Configuration
 
Reporting & Analytics.pdf
Reporting & Analytics.pdfReporting & Analytics.pdf
Reporting & Analytics.pdf
 
Reporting & Analytics.pdf
Reporting & Analytics.pdfReporting & Analytics.pdf
Reporting & Analytics.pdf
 
Empowering Business Users: OBIEE 12c Visual Analyzer and Data Mashup
Empowering Business Users: OBIEE 12c Visual Analyzer and Data MashupEmpowering Business Users: OBIEE 12c Visual Analyzer and Data Mashup
Empowering Business Users: OBIEE 12c Visual Analyzer and Data Mashup
 
W10 - Work Order Preferences
W10 - Work Order PreferencesW10 - Work Order Preferences
W10 - Work Order Preferences
 
Sketch Assignment - Task Management
Sketch Assignment - Task ManagementSketch Assignment - Task Management
Sketch Assignment - Task Management
 

More from Kranthi Kumar

Exercise in alv
Exercise in alvExercise in alv
Exercise in alv
Kranthi Kumar
 
Dynamic binding
Dynamic bindingDynamic binding
Dynamic binding
Kranthi Kumar
 
Data binding
Data bindingData binding
Data binding
Kranthi Kumar
 
Creating simple comp
Creating simple compCreating simple comp
Creating simple comp
Kranthi Kumar
 
Creating messages
Creating messagesCreating messages
Creating messages
Kranthi Kumar
 
Creating a comp
Creating a compCreating a comp
Creating a comp
Kranthi Kumar
 
Controllers and context programming
Controllers and context programmingControllers and context programming
Controllers and context programming
Kranthi Kumar
 
Context at design
Context at designContext at design
Context at design
Kranthi Kumar
 
Binding,context mapping,navigation exercise
Binding,context mapping,navigation exerciseBinding,context mapping,navigation exercise
Binding,context mapping,navigation exercise
Kranthi Kumar
 
Alv for web
Alv for webAlv for web
Alv for web
Kranthi Kumar
 
Web(abap introduction)
Web(abap introduction)Web(abap introduction)
Web(abap introduction)
Kranthi Kumar
 
Abap faq
Abap faqAbap faq
Abap faq
Kranthi Kumar
 
Sap abap material
Sap abap materialSap abap material
Sap abap material
Kranthi Kumar
 
Crm technical
Crm technicalCrm technical
Crm technical
Kranthi Kumar
 
Chapter 07 debugging sap scripts
Chapter 07 debugging sap scriptsChapter 07 debugging sap scripts
Chapter 07 debugging sap scripts
Kranthi Kumar
 
Chapter 06 printing sap script forms
Chapter 06 printing sap script formsChapter 06 printing sap script forms
Chapter 06 printing sap script forms
Kranthi Kumar
 
Chapter 05 sap script - configuration
Chapter 05 sap script - configurationChapter 05 sap script - configuration
Chapter 05 sap script - configuration
Kranthi Kumar
 
Chapter 04 sap script - output program
Chapter 04 sap script - output programChapter 04 sap script - output program
Chapter 04 sap script - output program
Kranthi Kumar
 
Chapter 02 sap script forms
Chapter 02 sap script formsChapter 02 sap script forms
Chapter 02 sap script forms
Kranthi Kumar
 
sap script overview
sap script overviewsap script overview
sap script overview
Kranthi Kumar
 

More from Kranthi Kumar (20)

Exercise in alv
Exercise in alvExercise in alv
Exercise in alv
 
Dynamic binding
Dynamic bindingDynamic binding
Dynamic binding
 
Data binding
Data bindingData binding
Data binding
 
Creating simple comp
Creating simple compCreating simple comp
Creating simple comp
 
Creating messages
Creating messagesCreating messages
Creating messages
 
Creating a comp
Creating a compCreating a comp
Creating a comp
 
Controllers and context programming
Controllers and context programmingControllers and context programming
Controllers and context programming
 
Context at design
Context at designContext at design
Context at design
 
Binding,context mapping,navigation exercise
Binding,context mapping,navigation exerciseBinding,context mapping,navigation exercise
Binding,context mapping,navigation exercise
 
Alv for web
Alv for webAlv for web
Alv for web
 
Web(abap introduction)
Web(abap introduction)Web(abap introduction)
Web(abap introduction)
 
Abap faq
Abap faqAbap faq
Abap faq
 
Sap abap material
Sap abap materialSap abap material
Sap abap material
 
Crm technical
Crm technicalCrm technical
Crm technical
 
Chapter 07 debugging sap scripts
Chapter 07 debugging sap scriptsChapter 07 debugging sap scripts
Chapter 07 debugging sap scripts
 
Chapter 06 printing sap script forms
Chapter 06 printing sap script formsChapter 06 printing sap script forms
Chapter 06 printing sap script forms
 
Chapter 05 sap script - configuration
Chapter 05 sap script - configurationChapter 05 sap script - configuration
Chapter 05 sap script - configuration
 
Chapter 04 sap script - output program
Chapter 04 sap script - output programChapter 04 sap script - output program
Chapter 04 sap script - output program
 
Chapter 02 sap script forms
Chapter 02 sap script formsChapter 02 sap script forms
Chapter 02 sap script forms
 
sap script overview
sap script overviewsap script overview
sap script overview
 

VIEWS

  • 2. Objectives • The participants will be able to : – Create different type of views in database. – Understand the difference between database & projection view. March-2005 Views | 2.15.03 2
  • 3. Creating a view: Step 1 March-2005 Views | 2.15.03 3 Select radio button “View” Click on Create button Provide a custom name
  • 4. Different types of views: Step2 March-2005 Views | 2.15.03 4 Select the view type Click on the “Copy” button
  • 5. Defining primary & secondary tables: Step3 March-2005 Views | 2.15.03 5 Primary table Secondary table
  • 6. Defining relationship for selected tables: Step 4 March-2005 Views | 2.15.03 6 Relationship
  • 7. Defining view fields : Step 5 March-2005 Views | 2.15.03 7 View fields for primary table
  • 8. View fields: Step 6 March-2005 Views | 2.15.03 8 All view fields from primary & secondary tables displayed on screen
  • 9. March-2005 Views | 2.15.03 9 Defining selection criteria: Step 7 Selection conditions
  • 10. March-2005 Views | 2.15.03 10 Defining maintenance status : Step 8 View maintenance
  • 11. March-2005 Views | 2.15.03 11 Code to demonstrate use of database views
  • 12. Demonstration • Step by Step creation of a Database View. March-2005 Views | 2.15.03 12
  • 13. Practice • Step by Step creation of a Database View. March-2005 Views | 2.15.03 13
  • 14. Summary •There are different types of views for efficiently extracting data from the database. •For creating a view , one needs to define the primary and secondary tables, define the relationship for the selected tables, define the view fields, define the selection criteria and define the maintenance status. March-2005 Views | 2.15.03 14
  • 15. Questions •What are the different types of views ? •What is meant by defining selection criteria of a view ? •What is meant by defining maintenance status of a view ? March-2005 Views | 2.15.03 15

Editor's Notes

  1. Go to ABAP Dictionary: Initial Screen (Transaction Code SE11). Select the ‘View’ radio button. Then, type in a custom name for the View. Click on the create button.
  2. 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. Database views are implemented with an equivalent view on the database. Projection views are used to hide fields of a table (only projection). Help views can be used as selection method in search helps. Maintenance views permit you to maintain the data distributed on several tables for one application object at one time. Database views implement an inner join. The other view types implement an outer join. Choose a View Type in this Pop-up screen. If the desired fields are from multiple tables choose DATABASE as the view type. If the desired fields are from a single table choose PROJECTION as the view type.
  3. Keep in mind that you can only include transparent tables in a database view For DATABASE view there will be one primary table and there can be zero, one or more secondary tables. The first table listed is automatically considered as the other primary table. List any desired secondary tables immediately after the primary table.
  4. If there are suitable foreign keys between the tables, you should copy the join conditions from these foreign keys Place the cursor on a table name and choose Relationships. All foreign keys to other tables defined for this table are displayed. Select the foreign keys and choose Copy. The join condition is now derived from the definitions in the foreign key.
  5. On the View fields tab page, select the fields that you want to copy to the view. Choose Table fields. All the tables contained in the view are displayed in a dialog box. Select a table. All the fields contained in this table are displayed. You can copy fields by selecting them in the first column and choosing Copy. You can also include an entire table in the view
  6. On the Selection conditions tab page, you can (optionally) formulate restrictions for the data records to be displayed with the view.The selection conditions define the data records that can be selected with the view.
  7. On the Maintenance status tab page, select the maintenance status of the database view. If the view contains more than one table, the maintenance status read only cannot be altered. Save your entries. You are asked to assign the view a Package. Activate the view.