ERDC Course Content Sap Architecture Modified
ERDC Course Content Sap Architecture Modified
Training
SAP Layers
Three tire client server architecture of the R/3 system separated
system layers .
into three
Distributed System
2-Tier System
3-Tier System
Application
Database
SAP Layers
R/3 User
R/3 User
Presentation Components
ABAP
Workbench
R/3 Application n
Communication among the three tiers server types is accomplished with the use
of standard protocol services,such as one provided by TCP/IP or CPIC .
INSTALL
INSTALL DATABASE
DATABASE SOFTWARE
SOFTWARE ON
ON DATABASE
DATABASE SERVER
SERVER
2.
INSTALL
INSTALL SAP
SAPSOFTWARE
SOFTWARE ON
ON APPLICATION
APPLICATION SERVER
SERVER
3.
UPLOAD
UPLOAD DATA
DATATO
TO SAP
SAPSYSTEM
SYSTEM (Main
(Main database
database creation)
creation)
4.
SUPPORT
SUPPORT PACKAGE
PACKAGE (PATCH)
(PATCH) LOADING
LOADING
5.
POST
POST INSTALLATION
INSTALLATION Steps
Steps
6.
READY
READYFOR
FORUSING
USING
Oracle
Informix
DB2
SQL
SERVER
Adabase D
HP-UX
AIX
Reliant/UNIX
Digital unix
Solaris
NT 4.0 Intel
NT 4.0 Alpha
OS/390
OS/400
Application Modules
Financials
Financial Accounting (FI)
Controlling (CO)
Asset Management (AM)
Enterprise Controlling (EC)
Capital Investment Management (IM)
Treasury (TR)
Logistics
Plant Maintenance (PM)
Quality Management (QM)
Production Planning (PP)
Materials Management (MM)
Sales and Distribution (SD)
Project System (PS)
Human Resources (HR)
Personal Administration
Personal Development
Basis Software
R/3 BASIS Software is the set of programs & tools which interfaces
with the computer operating system ,database ,Application server &
and the presentation interfaces .
SERVICES in R/3
SAPGUI
SAPGUI
SAPGUI
SAPGUI
Dispatcher
D
I
A
L
O
G
U
P
D
A
T
E
E
N
Q
U
E
U
E
B
A
C
K
G
R
O
M
E
S
S
A
G
E
DATABASE INSTANCE
G
A
T
E
W
A
Y
S
P
O
O
L
Dispatcher processes
Dialog Step:
A dialog step is a sap r/3 screen,which is represented by a dynamic
program(dynpro) .A dynamic program consists of a screen and all the
associated processing logic .
When users are entered something on the screen & press enter ,they are
actually making one dialog step .
Min Number
of processes
Dialog Services
(D)
>=2
rdisp/wp_no_dia
>=0
rdisp/wp_no_vb,
rdisp/wp_no_vb2
0 or 1
rdisp/wp_no_enq
Background Process
(B)
>=1
rdisp/wp_no_btc
(M)
0 or 1
Gateway services
(G)
>=1
Spool services
(S)
>=1
Update Services
(V)
Taken care by
the parameters
rdisp/wp_no_spo
Gateway Services:
Communication between different R/3 Systems
Remote Function Call (RFC)
Common Programming Interface for Communications (CPIC)
Dispatcher process:
SAP dispatcher is the control program which manages the resources of the R/3
applications.
Dispatcher manages the information exchange between the SAPGUIs & the
work processes,enabling users to share the diff work processes available .
Work process (WP):
Work processes are special programs in charge of some specific tasks.These are
mainly service offered by a server and requested by a client.
Dialog Step:
A dialog step is a sap r/3 screen,which is represented by a dynpro .A dynpro ,or
dynamic program consists of a screen and all the associated processing logic.
When users are navigating in the SAP R/3 system from screen to screen ,they
are actually making dialog step .
Process Overview
User
User enter
enter data
data using
using SAPGUI
SAPGUI
2.
SAPGUI
SAPGUI convert
convert data
data to
to sap
sap format
format && sent
sent to
to dispatcher
dispatcher
3.
Dispatcher
Dispatcher keeps
keeps the
the requests
requests in
in queues
queues && process
process one
one by
by one
one
4.
Dispatcher
Dispatcher allocates
allocates user
user request
request to
to free
free work
work process
process
5.
Real
Real execution
execution takes
takes place
place inside
inside work
work processes
processes
6.
End
End of
of execution,
execution, result
result goes
goes back
back to
to Dispatcher
Dispatcher
7.
Dispatcher
Dispatchersends
sendsdata
datato
touser
userusing
usingSAPGUI
SAPGUI
Time is taken from step1 to step 7 is known as RESPONSE TIME .
Database Server
This is where the database resides. Main data stores in this server .
Application Server
This is where R/3 application runs. On a 2 tiered system, this would be combined with the
database server.
Instance
An installation of R/3 on a application server .
GUI:
Graphical User Interface. The SAPgui is the software on users computer
or local server that allows to connect to one or more of the SAP
environments.
Machine Type
PRD
Processor
DEV
PRD
DEV
PRD
Total Physical
Memory
DEV
1GB
PRD
4 GB
Total Virtual
Memory
DEV
6 GB
PRD
12 GB
Disk Space
DEV
60 GB
PRD
130 GB
Server Model
O.S.
SAP R/3
Release
46C
Database
Oracle 8.1.7.1.0
SCM
Thesesap
sap
These
directories
directories
createdby
by
created
sap
sap
installation
installation
DVEBMGS00
Sap mount directory is /sapmnt useful for sharing the common files with all
system belonging to the same group .
Mainly /sapmnt/scm indicates the directory /usr/sap/scm
Directory /sapmnt/scm/sys/exe/run it contains all sap runtime programs
this directory also called sap kernel directory.Most of the program files in this
directory are directly used by sap processes
Directory /sapmnt/scm/sys/profile which contains sap profile files like
startup-profile ,default-profile & instance-profile.
Directory /sapmnt/scm/sys/global which contains global or common data
managed by the SAP application & shared by all instances ,all types of logs.
R/3 Client
When Sap installed it comes with 3 default clients with default
users and default password.
Client User
Default
Password
000
000
001
001
066
06071992
19920706
06071992
19920706
SUPPORT
SAP*
DDIC
SAP*
DDIC
EARLYWATCH
R/3 Data(1)
CLIENT
CLIENT
CLIENT
CLIENT
CLIENT
CLIENT
000
000
066
066
001
001
CLIENTIndependent
Independentcustomizing
customizing
CLIENT
SAP
SAP
RepositoryObject
Object
Repository
An R/3 System is subdivided into clients .
In R/3 most of Customer business data in sub groups divided by
R/3 Data(2)
R/3 database can be divided into two logical components:
R/3 repository object
R/3 customer data
R/3 repository : central part of this is ABAP dictionary i.e. programs,screens,
reports provided by sap or created or modified by sap user .
Customer data : customer data consists of any kind of data entered into r/3
by the customer in time of sap implementation or day to day
business processing .
Customizing data
This data generated when r/3 is configured to meet the particular needs of the
customer through customizing.Most customizing data is client-dependent some
is independent .
Application data
Also known as business data ,which generated day by day business processing.
Mainly master data , transaction data .
User master data
Records of R/3 users password & authorization
System strategies(1)
In time of system setup the question we have to face
Single-system Landscape
Two-system
Three-system Landscape
Landscape
System strategies(2)
Single-system Landscape
Development client , Testing client , Production Client on a same server .
Advantages
For this type of system , hardware cost & administrative cost is lower .
Disadvantages
Changes to client-independent or repository objects will affect the whole
environment .
The performance of the system affect all clients
Production data is a accessible from development & testing environment
Problems during the implementation of other applications , when some
production is going on .
Problems when modifying standard programs
If the system crashes the all three R/3 systems will be affected .
System strategies(3)
Two-system Landscape
For this case development & QA testing done on same system .
But production on different system .
Advantages
The production system (PRD) containing only the finalized production
environment .
After completing the preparation phase (test, verification, and release), the
parameters and programs can be transported from the development system
(DEV) to the production system (PRD) .
(DEV client QA client PRD System).
Minimal amount of hardware investment.
Minimal system administration and change request management required
Disadvantages
Recommended only for projects with a limited amount of ongoing development
No separate quality assurance system (QAS) for isolated testing
Client-independent customizing activity must be carefully planned so that, it
does not affect other customizing/development activities
System strategies(4)
Three -system Landscape
In this case development ,QA , production take place on different system.
The most recommended system in SAP .
Advantages
New development can start without affecting the production environment.
QA system allows for integration testing of developments before promoted
to production.
Production data is secure, security will prevent access to sensitive data &
client settings will prevent the unauthorized changing of data .
Production performance is not affected by other clients, there is only one
production client .
The general sandbox client (SAND) in the development system (DEV) makes it
easier to become familiar with the new application functions and conduct
suitability testing
Client-independent customizing testing can occur without conflicts
Disadvantages
Requires increased system administration and change management activities
Increase hardware cost
DEV
DEV
QAS
QAS
PRD
PRD
SAP consultants
SAP consultants divide themselves into 3 categories
FUNCTIONAL consultant
BASIS consultant
ABAP programmers
Continue ..
ChooseApplication
Application
Choose
serverfirst
first. .
server
EnterProper
Proper
Enter
USERID,ClientID,
ID,
USERID,Client
Password&&
Password
Languagetotoopen
open
Language
thesap
sapsession
session. .
the
EnterProper
ProperClient
Clientidid, ,
Enter
Useridid, ,Password
Password&&
User
Languagetotoopen
openthe
the
Language
sapsession
session. .
sap
Nowstart
start
Now
Working
Working
StartBasis
BasisAdminstration
Adminstration
Start
BasisAdministration
Administration
Basis
UserAdministration
Administration
User
ClientAdministration
Administration
Client
TransportManagement
Management
Transport
Transaction Code(1)
Transaction is an operation that lets a user make changes to a database .
In SAP transaction is a sequence of related steps ,are screens in which data
is introduced causing the generation of other events.
The final task of a transaction is to modify the information which ultimately
goes into the database. The database is not updated until a transaction has
finished.
All the transactions in the R/3 system have an associated transaction code.
All available transaction are held in table TSTC .To see the table data we can
use the transaction codes SE16 / SE11 .
We can create user defined transaction code by using SE93 .
The Used transaction code by the user can be monitored using the transaction
code STAT.
Transaction Code(2)
Transaction
Transaction
codeSE93
SE93toto
code
maintainTC.
TC.
maintain
Userdefined
defined
User
TCstart
startwith
withYY
TC
or
Z
or Z
Transaction Code(3)
Transaction
Transaction
codeSTAT
STATtoto
code
monitor
monitor
Transaction
Transaction
codeused
usedby
by
code
anyuser
user
any
System Status
Navigation : Menu System Status
Client Maintenance
Maintain client using the transaction code SCC4
User Maintenance
Create or maintain User
using the transaction code
SU01
Maintain Authorization
Maintain User Authorization using transaction code PFCG
SAPMMC
SAPMMC
Whichused
used
Which
tostart
start&&
to
stopsap
sap
stop
application
application
server..
server
Rightclick
clickthe
the
Right
applicationserver
server
application
name(scma
(scma
name
here)the
the
here)
start/stopoption
option
start/stop
willcome
comechoose
choose
will
theright
rightone
one
the
SAPMMC
SAPMMC
Whenthe
thesap
sap
When
systemstart
start
system
properlythen
then
properly
msg_server.e
msg_server.e
xe&&
xe
disp+work.e
disp+work.e
xe
xe
willgreen
green&&
will
statuswill
will
status
show
show
Running. .
Running
SAPDBA
SAPDBA
Sapstartup/shutdown
startup/shutdown
Sap
alsocan
canbe
bedone
doneby
by
also
usingSAPDBA
SAPDBAtool.
tool.
using
STARTUP/ SHUTDOWN can be done from operating system (dos prompt for WinNT)
using the commands
C:\> startsap (Starting sap & db )
C:\> stopsap (Stoping sap & db )
C:\> startsap r\3 (Starting sap server only ,when db is running )
C:\> stopsap r\3 (Stoping sap server only, but db will running )
C:\> startsap db (Starting db only ,but sap will not start )
C:\> stopsap db (Stoping db ,when sap already stopped )
SAP Today
4th largest software vendor in the world
30+ years of business experience
7,500+ customers in 90+ countries
13,000+ R/3 installations
1,400+ R/2 installations
~13,000 employees
Worldwide presence in over 50 countries outside Germany
www.sap-ag.de