Professional Documents
Culture Documents
ABAP Programming - Day 1
ABAP Programming - Day 1
Day 1
Introduction to SAP
• Presentation, Application & DB (3 Tier) Architecture
• SAP ERP Terminologies
• Application Server Fundamentals - Work Processes & Dispatchers
• SAP Programming Language - ABAP
Data Dictionary
• Domains, Data Elements, Tables
• Transparent, Pooled & Cluster Tables
• Structure, Table Type & Type Pools
• Views, Search Helps & Lock Objects
• Buffer & Index Concepts
Introduction to SAP
Let us take the typical business process for any manufacturing company. Some key inferences one
could derive from the scenario would be.
Based on the manner in which communication and data exchanged is managed. Enterprise systems can
be broadly classified as
1) Decentralized System->
SAP Software is a centralized enterprise management system, also known as Enterprise Resource
Planning.
SAP ERP => Packaged Business Software; so now let’s see how a SAP ERP looks like?
(Open SAP GUI and Show -> How SAP Logon looks like.. -> The same will be used by Developers,
Consultants and end-users. Just double click on the SAP Logon PAD and it will open. Now we need to select
from Multiple Application Servers. Now we will enter the user id and Password -> Then Show Menu Bar,
Standard Tool Bar, Application Tool Bar and the Status Bar (Client and User and other Information).
Presentation servers contain systems capable of providing a graphical interface and this is also known as
the Client Layer. E.g.:- Desktop, Mobile Devices, laptops
Application servers include specialized systems with multiple CPUs and a vast amount of RAM.
• Application Layer is also known as Kernel Layer and Basic Layer.
• SAP application programs are executed in Application Layer.
• Application Layer serves as a purpose of a communicator between Presentation and Database
Layer.
Database servers contain specialized systems with fast and large hard-drives.
• Database layer stores the data
• Data store can be Business data, SAP system data, SAP tables, Programs.
• Examples − Oracle, Microsoft SQL Server, IBM DB/2, Siebel, Sybase, etc.
ABAP Workbench
The ABAP Workbench is used by SAP for the development of standard and custom application software.
It consists of the following components: -
Data Element contain both semantic and technical information about Data Type.
Simple and Nested Structure (The simplest form of a Structure is a list of fields typed with Data Elements
=> Simple/Flat Structure) (Refer to the below diagram to explain to Participants).
Table Type: - Line Type that defines the structure and the data type attributes of a line in the internal
Table.
Deep Structure: - A deep structure contains at least one field with a table type.
Type Groups: - This can be used to define our own global complex data types; global constants and the
name can be up to max. 5 characters and the first statement in a type group is TYPE-POOL <name>
whereas while using in ABAP it is TYPE-POOLS <name>.
Transparent, Pooled & Cluster Tables & Buffer and Index Concepts
Table has columns(fields) and row(entries) and will have one or more key fields. A field has a unique name
and attributes, and these are the only ABAP dictionary objects which will store data permanently in the
DB.
Pooled and Cluster Tables: - Several tables logically defined in the ABAP dictionary are combined in a
Physical Database Table (Table Pool or Cluster) and they are used mostly for System Internal Data. The
primary advantage of these tables is that data can be stored in Compressed Form in the DB and it reduces
the memory and network load.
Table Buffer -> If Buffering is required or not / Data Class (Master Data, Transaction Data, Org. Data,
System Data) and Size Category (0…9 => Also keep in mind Data Fragmentation and Extents) / Logging
of changes.
(Cross- Product; JOIN Condition, Projection => Restriction of existing Table Fields, Selection => Condition
restricting data)
Search Help: - Field help provided to the user to display data related to the search in the System and it
shows all the possible value list for that field => Elementary and Collective Search Help.
Lock Objects: - Lock objects are function modules to avoid accessing data by two or more users.
There are two types of lock objects are available, DEQUEE, ENQUEE. Lock objects always start with E and
these are the only Custom Objects that doesn’t start with Z in SAP.
Will you be able to set and release locks using Data Dictionary? If Yes How??
• Yes
• No
(To set and release locks we need to create Lock Objects in the ABAP Dictionary and their respective Fn.
Modules will be automatically generated from these lock objects and these can then be linked to
Application Programming).
Can Database Table include Nested Structures or Table Types? (It can only include Flat Structures)
• Yes
• No
Can a Table fields have same Domain and same semantic meaning? If yes, explore SFLIGHT table to
figure out which field have same domain and also figure out the semantic description. (HINT: -
AIRPFROM and AIRPTO)
The ____________ key is a combination of columns that uniquely identifies a data record.
• Domain
• Data
• Composite
• Primary
________________ determine the storage requirements and the access behavior of Database Tables?
• Internal Table Types
• Technical Settings
• Foreign Key
Name the only Custom objects that does not start with Z in SAP??
Exercise - Create Domain, Data Element, Table; Also create a deep type structure.
Exercise - Create, Delete & Display Table Entry using TMG in SM30