SlideShare una empresa de Scribd logo
ABAP VIEWS BASIC OOPS
By: Mohammad khalid khan…
CONTENTS
• What is view.
• Why view.
• OOPS.
• Objects and classes.
• Features of OOPS.
• Different visibility modes.
ABAP VIEWS
• Views are the data dictionary repository objects in ABAP, which are used to view
the data of several tables in one place.
• A view is similar to the database table, but it does not contain any physical data;
instead it derives data from different tables and acts like a virtual table (table
without any existence). Since it does not physically store any data, and the
database only contains the view definition, hence it takes very little space in the
database.
• A view can be created by combining the data of single or multiple tables, which
are called base tables.
WHY VIEWS ?
• The views in DDIC help to save time and increase efficiency, as it is a time-
consuming process to extract data from each table; for such cases, we can use
view in SAP ABAP Dictionary.
• A view can be used to represent a subset of data stored within a table or to join
multiple tables into a single virtual table.
• Whenever a view is executed, it displays the data extracted from the multiple
tables.
• In order to create a view in DDIC, we need to join the table, and for joining the
table, each table must have at least one common key field.
TYPES OF VIEWS
• In ABAP DDIC, there are four types of views that differ from each other in a way
in which they are implemented and access the data. These are given below:
1.Database view
2.Projection view
3.Help view
4.Maintenance view
DATABASE VIEW
• If a view is created on one or more tables by combining the fields using inner
join, such a view is called a Database view.
• Since this view uses the inner join, it only combines the matching records from
the table.
• In this view, we cannot perform any maintenance operation on table data; instead
we can just read the data.
KEY FEATURES OF DATABASE VIEW
• If the view contains more than one table, then it only allows us to read the data,
but if the view contains only a single table, the maintenance status can be
checked to find if the data can also be inserted in the view table or not.
• If we want to select the logically connected data from different tables
simultaneously, then we need to create the database views.
• This view can only combine the transparent tables, as it is implemented in the
database.
PROJECTION VIEW
• If a view is created on a single table, then it is called as Projection View.
• Using this type of view, we can minimize the fields by projecting only required
fields and rest fields will be filtered out.
• This view allows us to read and also maintain the data.
• The projection view is created on a single table only, and we cannot specify any
selection/join conditions for this view.
PROJECTION VIEW EXAMPLE
• Let's consider an example to understand the use of the projection view. Suppose
we have Students Details table, which contains records such as Student Name
and Roll number, Student address, Student fees, etc. We only want to share
student name and roll number with some companies. In this case, we will use the
projections view of the Student Details table. Hence, if there is a huge amount of
data, but we only want to display the relevant data field, we can choose the
projection view as the perfect option.
HELP VIEW
• The help views are created on two or more tables, specifically for the "Search-
helps" object in DDIC. It means they are used to provide the input helps(F4)
option for different fields in ABAP.
• It combines the data by using an outer join
• It allows us only to read the data, and we cannot maintain the data in this view.
• It can be used as a selection method in search helps.
MAINTENANCE VIEW
• The maintenance view is created on two or more tables, which is used to maintain the data of several
tables altogether. It helps us to maintain the complex application objects easily.
• It can combine several tables in a single unit, but the tables must have a foreign key relationship.
• It allows us to maintain and read the data of the table.
• The data present on several tables create a logical unit that acts as an application object for the user.
With the help of a maintenance view, we can display, modify, and maintain the data of such
application objects at once.
• In the maintenance view, all tables must be linked together with the foreign key, which means the join
condition must be derived from the foreign key always.
• There is always a maintenance status associated with each maintenance view, which specifies the
operations that can be performed on the associated table.
HOW TO CHOOSE THE VIEWS FOR THE TABLE?
• To read only the data of several tables with inner joins condition, choose
the database view.
• To read data and maintain the data for a single table, choose the projection
• To read only data of several tables with outer join conditions, choose the help It
can also be used for the Input help option.
• If a view is required with outer join, and which allows you to read and maintain the
data, choose the maintenance review.
WHAT IS OOPS
• Object means a real-world entity such as a pen, chair, table, computer, watch, etc. Object-
Oriented Programming is a methodology or paradigm to design a program using classes and
objects. It simplifies software development and maintenance by providing some concepts:
• Object
• Class
• Inheritance
• Polymorphism
• Abstraction
• Encapsulation
OBJECTS AND CLASSES
• OBJECT
• Any entity that has state and behavior is known as an object. For example, a
chair, pen, table, keyboard, bike, etc. It can be physical or logical.
• Class
• Collection of objects is called class. It is a logical entity.
• A class can also be defined as a blueprint from which you can create an individual
object. Class doesn't consume any space.
Inheritance
When one object acquires all the properties and behaviors of a parent object, it is
known as inheritance. It provides code reusability. It is used to achieve runtime
polymorphism.
Polymorphism
If one task is performed in different ways, it is known as polymorphism. For example:
to convince the customer differently, to draw something, for example, shape, triangle,
rectangle, etc..
Abstraction
Hiding internal details and showing functionality is known as abstraction. For
example phone call, we don't know the internal processing.
OO IN ABAP
ABAP was initially developed as a procedural language. But ABAP has now adapted
the principles of object oriented paradigms with the introduction of ABAP Objects.
The object-oriented concepts in ABAP such as class, object, inheritance, and
polymorphism, are essentially the same as those of other modern object-oriented
languages
FEATURES
• Effective programming structure.
• Real-world entities can be modeled very well.
• Data security and access.
• Minimizes code redundancy.
• Data abstraction and encapsulation.
COMPONENTS OF CLASS
• Attributes: Attributes are variables, constants declared within a
class.
• Methods: Methods are coding blocks which provides some
functionality .
• Interfaces: Interfaces are similar to classes which contain methods
Without any implementation.
• Events: Event is a mechanism through which one method of a class
can raise method of other class, without hazard of instantiating that
class.
VISIBILITY OF COMPONENTS
In ABAP Objects, the whole class definition is separated into three visibility sections:
• PUBLIC .
• PROTECTED .
• PRIVATE.
Public section: Data declared in public section can be accessed by the class itself, by its subclasses
as well as by other users outside the class.
Protected section: Data declared in the protected section can be accessed by the class itself, and
also by its subclasses but not by external users outside the class.
Private Section: Data declared in the private section can be accessed by the class only, but not by
its subclasses and by external users outside the class.
QUESTIONS ?
•What is the difference between TMG and
maintenance view
Is it mandatory to
implement all the
methods of interface IN
ABAP ?
does abstract method have
implementation in ABAP ?

Más contenido relacionado

La actualidad más candente

Internal tables
Internal tables Internal tables
Internal tables
Jibu Jose
 
SAP Smart forms
SAP Smart formsSAP Smart forms
SAP Smart forms
Jugul Crasta
 
Oo abap-sap-1206973306636228-5
Oo abap-sap-1206973306636228-5Oo abap-sap-1206973306636228-5
Oo abap-sap-1206973306636228-5
prakash185645
 
Sap abap-data structures and internal tables
Sap abap-data structures and internal tablesSap abap-data structures and internal tables
Sap abap-data structures and internal tables
Mustafa Nadim
 
Abap Questions
Abap QuestionsAbap Questions
Abap Questions
Kaustav Pyne
 
ABAP Object oriented concepts
ABAP Object oriented conceptsABAP Object oriented concepts
ABAP Object oriented concepts
DharmeshKumar49
 
ABAP for Beginners - www.sapdocs.info
ABAP for Beginners - www.sapdocs.infoABAP for Beginners - www.sapdocs.info
ABAP for Beginners - www.sapdocs.info
sapdocs. info
 
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
IICT Chromepet
 
SAP Adobe forms
SAP Adobe formsSAP Adobe forms
SAP Adobe forms
Jugul Crasta
 
Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exits
Kranthi Kumar
 
1000 solved questions
1000 solved questions1000 solved questions
1000 solved questions
Kranthi Kumar
 
Sap abap interview questions
Sap abap interview questionsSap abap interview questions
Sap abap interview questions
kssr99
 
Chapter 02 sap script forms
Chapter 02 sap script formsChapter 02 sap script forms
Chapter 02 sap script forms
Kranthi Kumar
 
Abap dictionary 1
Abap dictionary 1Abap dictionary 1
Abap dictionary 1
venkata karthik
 
abap list viewer (alv)
abap list viewer (alv)abap list viewer (alv)
abap list viewer (alv)
Kranthi Kumar
 
Abap function module help
Abap function module helpAbap function module help
Abap function module help
Kranthi Kumar
 
Alv theory
Alv theoryAlv theory
Alv theory
Phani Kumar
 
List Processing in ABAP
List Processing in ABAPList Processing in ABAP
List Processing in ABAP
sapdocs. info
 
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
 
Badi document
Badi documentBadi document
Badi document
hamisha_malik
 

La actualidad más candente (20)

Internal tables
Internal tables Internal tables
Internal tables
 
SAP Smart forms
SAP Smart formsSAP Smart forms
SAP Smart forms
 
Oo abap-sap-1206973306636228-5
Oo abap-sap-1206973306636228-5Oo abap-sap-1206973306636228-5
Oo abap-sap-1206973306636228-5
 
Sap abap-data structures and internal tables
Sap abap-data structures and internal tablesSap abap-data structures and internal tables
Sap abap-data structures and internal tables
 
Abap Questions
Abap QuestionsAbap Questions
Abap Questions
 
ABAP Object oriented concepts
ABAP Object oriented conceptsABAP Object oriented concepts
ABAP Object oriented concepts
 
ABAP for Beginners - www.sapdocs.info
ABAP for Beginners - www.sapdocs.infoABAP for Beginners - www.sapdocs.info
ABAP for Beginners - www.sapdocs.info
 
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
 
SAP Adobe forms
SAP Adobe formsSAP Adobe forms
SAP Adobe forms
 
Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exits
 
1000 solved questions
1000 solved questions1000 solved questions
1000 solved questions
 
Sap abap interview questions
Sap abap interview questionsSap abap interview questions
Sap abap interview questions
 
Chapter 02 sap script forms
Chapter 02 sap script formsChapter 02 sap script forms
Chapter 02 sap script forms
 
Abap dictionary 1
Abap dictionary 1Abap dictionary 1
Abap dictionary 1
 
abap list viewer (alv)
abap list viewer (alv)abap list viewer (alv)
abap list viewer (alv)
 
Abap function module help
Abap function module helpAbap function module help
Abap function module help
 
Alv theory
Alv theoryAlv theory
Alv theory
 
List Processing in ABAP
List Processing in ABAPList Processing in ABAP
List Processing in ABAP
 
Table maintenance generator and its modifications
Table maintenance generator and its modificationsTable maintenance generator and its modifications
Table maintenance generator and its modifications
 
Badi document
Badi documentBadi document
Badi document
 

Similar a Abap views and lock objects.pptx

Abap data dictionary
Abap data dictionaryAbap data dictionary
Abap data dictionary
SmartGokul4
 
Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)
Bilal Arshad
 
Getting to know oracle database objects iot, mviews, clusters and more…
Getting to know oracle database objects iot, mviews, clusters and more…Getting to know oracle database objects iot, mviews, clusters and more…
Getting to know oracle database objects iot, mviews, clusters and more…
Aaron Shilo
 
The strength of a spatial database
The strength of a spatial databaseThe strength of a spatial database
The strength of a spatial database
Peter Horsbøll Møller
 
Query Optimization in SQL Server
Query Optimization in SQL ServerQuery Optimization in SQL Server
Query Optimization in SQL Server
Rajesh Gunasundaram
 
Presentation2
Presentation2Presentation2
Presentation2
Dolly Sree
 
Presentation2
Presentation2Presentation2
Presentation2
Dolly Sree
 
Operate Database Applicationitss level2.pptx
Operate Database Applicationitss level2.pptxOperate Database Applicationitss level2.pptx
Operate Database Applicationitss level2.pptx
AbdirisakIman
 
Data warehouse physical design
Data warehouse physical designData warehouse physical design
Data warehouse physical design
Er. Nawaraj Bhandari
 
Database management system
Database management systemDatabase management system
Database management system
SabinDhakal13
 
MS ACCESS.pptx
MS ACCESS.pptxMS ACCESS.pptx
MS ACCESS.pptx
MattMarino13
 
Collections
CollectionsCollections
Collections
Marwa Dosoky
 
Alv view.pptx
Alv view.pptxAlv view.pptx
Alv view.pptx
AnimeshBehera5
 
oracle
oracle oracle
MS-ACCESS.pptx
MS-ACCESS.pptxMS-ACCESS.pptx
MS-ACCESS.pptx
shivamdwivedi898297
 
DBMS basics and normalizations unit.pptx
DBMS basics and normalizations unit.pptxDBMS basics and normalizations unit.pptx
DBMS basics and normalizations unit.pptx
shreyassoni7
 
CC -Unit3.pptx
CC -Unit3.pptxCC -Unit3.pptx
CC -Unit3.pptx
Revathiparamanathan
 
Abstraction.pptx
Abstraction.pptxAbstraction.pptx
Abstraction.pptx
SamirSitaula1
 
NoSql
NoSqlNoSql
Dao benchmark
Dao benchmarkDao benchmark
Dao benchmark
Mallikarjuna G D
 

Similar a Abap views and lock objects.pptx (20)

Abap data dictionary
Abap data dictionaryAbap data dictionary
Abap data dictionary
 
Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)
 
Getting to know oracle database objects iot, mviews, clusters and more…
Getting to know oracle database objects iot, mviews, clusters and more…Getting to know oracle database objects iot, mviews, clusters and more…
Getting to know oracle database objects iot, mviews, clusters and more…
 
The strength of a spatial database
The strength of a spatial databaseThe strength of a spatial database
The strength of a spatial database
 
Query Optimization in SQL Server
Query Optimization in SQL ServerQuery Optimization in SQL Server
Query Optimization in SQL Server
 
Presentation2
Presentation2Presentation2
Presentation2
 
Presentation2
Presentation2Presentation2
Presentation2
 
Operate Database Applicationitss level2.pptx
Operate Database Applicationitss level2.pptxOperate Database Applicationitss level2.pptx
Operate Database Applicationitss level2.pptx
 
Data warehouse physical design
Data warehouse physical designData warehouse physical design
Data warehouse physical design
 
Database management system
Database management systemDatabase management system
Database management system
 
MS ACCESS.pptx
MS ACCESS.pptxMS ACCESS.pptx
MS ACCESS.pptx
 
Collections
CollectionsCollections
Collections
 
Alv view.pptx
Alv view.pptxAlv view.pptx
Alv view.pptx
 
oracle
oracle oracle
oracle
 
MS-ACCESS.pptx
MS-ACCESS.pptxMS-ACCESS.pptx
MS-ACCESS.pptx
 
DBMS basics and normalizations unit.pptx
DBMS basics and normalizations unit.pptxDBMS basics and normalizations unit.pptx
DBMS basics and normalizations unit.pptx
 
CC -Unit3.pptx
CC -Unit3.pptxCC -Unit3.pptx
CC -Unit3.pptx
 
Abstraction.pptx
Abstraction.pptxAbstraction.pptx
Abstraction.pptx
 
NoSql
NoSqlNoSql
NoSql
 
Dao benchmark
Dao benchmarkDao benchmark
Dao benchmark
 

Último

Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
David Brossard
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 

Último (20)

Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 

Abap views and lock objects.pptx

  • 1. ABAP VIEWS BASIC OOPS By: Mohammad khalid khan…
  • 2. CONTENTS • What is view. • Why view. • OOPS. • Objects and classes. • Features of OOPS. • Different visibility modes.
  • 3. ABAP VIEWS • Views are the data dictionary repository objects in ABAP, which are used to view the data of several tables in one place. • A view is similar to the database table, but it does not contain any physical data; instead it derives data from different tables and acts like a virtual table (table without any existence). Since it does not physically store any data, and the database only contains the view definition, hence it takes very little space in the database. • A view can be created by combining the data of single or multiple tables, which are called base tables.
  • 4. WHY VIEWS ? • The views in DDIC help to save time and increase efficiency, as it is a time- consuming process to extract data from each table; for such cases, we can use view in SAP ABAP Dictionary. • A view can be used to represent a subset of data stored within a table or to join multiple tables into a single virtual table. • Whenever a view is executed, it displays the data extracted from the multiple tables. • In order to create a view in DDIC, we need to join the table, and for joining the table, each table must have at least one common key field.
  • 5. TYPES OF VIEWS • In ABAP DDIC, there are four types of views that differ from each other in a way in which they are implemented and access the data. These are given below: 1.Database view 2.Projection view 3.Help view 4.Maintenance view
  • 6. DATABASE VIEW • If a view is created on one or more tables by combining the fields using inner join, such a view is called a Database view. • Since this view uses the inner join, it only combines the matching records from the table. • In this view, we cannot perform any maintenance operation on table data; instead we can just read the data.
  • 7. KEY FEATURES OF DATABASE VIEW • If the view contains more than one table, then it only allows us to read the data, but if the view contains only a single table, the maintenance status can be checked to find if the data can also be inserted in the view table or not. • If we want to select the logically connected data from different tables simultaneously, then we need to create the database views. • This view can only combine the transparent tables, as it is implemented in the database.
  • 8. PROJECTION VIEW • If a view is created on a single table, then it is called as Projection View. • Using this type of view, we can minimize the fields by projecting only required fields and rest fields will be filtered out. • This view allows us to read and also maintain the data. • The projection view is created on a single table only, and we cannot specify any selection/join conditions for this view.
  • 9. PROJECTION VIEW EXAMPLE • Let's consider an example to understand the use of the projection view. Suppose we have Students Details table, which contains records such as Student Name and Roll number, Student address, Student fees, etc. We only want to share student name and roll number with some companies. In this case, we will use the projections view of the Student Details table. Hence, if there is a huge amount of data, but we only want to display the relevant data field, we can choose the projection view as the perfect option.
  • 10. HELP VIEW • The help views are created on two or more tables, specifically for the "Search- helps" object in DDIC. It means they are used to provide the input helps(F4) option for different fields in ABAP. • It combines the data by using an outer join • It allows us only to read the data, and we cannot maintain the data in this view. • It can be used as a selection method in search helps.
  • 11. MAINTENANCE VIEW • The maintenance view is created on two or more tables, which is used to maintain the data of several tables altogether. It helps us to maintain the complex application objects easily. • It can combine several tables in a single unit, but the tables must have a foreign key relationship. • It allows us to maintain and read the data of the table. • The data present on several tables create a logical unit that acts as an application object for the user. With the help of a maintenance view, we can display, modify, and maintain the data of such application objects at once. • In the maintenance view, all tables must be linked together with the foreign key, which means the join condition must be derived from the foreign key always. • There is always a maintenance status associated with each maintenance view, which specifies the operations that can be performed on the associated table.
  • 12. HOW TO CHOOSE THE VIEWS FOR THE TABLE? • To read only the data of several tables with inner joins condition, choose the database view. • To read data and maintain the data for a single table, choose the projection • To read only data of several tables with outer join conditions, choose the help It can also be used for the Input help option. • If a view is required with outer join, and which allows you to read and maintain the data, choose the maintenance review.
  • 13. WHAT IS OOPS • Object means a real-world entity such as a pen, chair, table, computer, watch, etc. Object- Oriented Programming is a methodology or paradigm to design a program using classes and objects. It simplifies software development and maintenance by providing some concepts: • Object • Class • Inheritance • Polymorphism • Abstraction • Encapsulation
  • 14. OBJECTS AND CLASSES • OBJECT • Any entity that has state and behavior is known as an object. For example, a chair, pen, table, keyboard, bike, etc. It can be physical or logical. • Class • Collection of objects is called class. It is a logical entity. • A class can also be defined as a blueprint from which you can create an individual object. Class doesn't consume any space.
  • 15. Inheritance When one object acquires all the properties and behaviors of a parent object, it is known as inheritance. It provides code reusability. It is used to achieve runtime polymorphism. Polymorphism If one task is performed in different ways, it is known as polymorphism. For example: to convince the customer differently, to draw something, for example, shape, triangle, rectangle, etc.. Abstraction Hiding internal details and showing functionality is known as abstraction. For example phone call, we don't know the internal processing.
  • 16. OO IN ABAP ABAP was initially developed as a procedural language. But ABAP has now adapted the principles of object oriented paradigms with the introduction of ABAP Objects. The object-oriented concepts in ABAP such as class, object, inheritance, and polymorphism, are essentially the same as those of other modern object-oriented languages
  • 17. FEATURES • Effective programming structure. • Real-world entities can be modeled very well. • Data security and access. • Minimizes code redundancy. • Data abstraction and encapsulation.
  • 18. COMPONENTS OF CLASS • Attributes: Attributes are variables, constants declared within a class. • Methods: Methods are coding blocks which provides some functionality . • Interfaces: Interfaces are similar to classes which contain methods Without any implementation. • Events: Event is a mechanism through which one method of a class can raise method of other class, without hazard of instantiating that class.
  • 19. VISIBILITY OF COMPONENTS In ABAP Objects, the whole class definition is separated into three visibility sections: • PUBLIC . • PROTECTED . • PRIVATE. Public section: Data declared in public section can be accessed by the class itself, by its subclasses as well as by other users outside the class. Protected section: Data declared in the protected section can be accessed by the class itself, and also by its subclasses but not by external users outside the class. Private Section: Data declared in the private section can be accessed by the class only, but not by its subclasses and by external users outside the class.
  • 20.
  • 21. QUESTIONS ? •What is the difference between TMG and maintenance view
  • 22. Is it mandatory to implement all the methods of interface IN ABAP ?
  • 23. does abstract method have implementation in ABAP ?