Application Server
Application Server
Requests.
1. The User Submit the Request using SAP GUI using Application Server Host Name and
Instance Number(Port).
Port Number is derived from a two Digit Instance Number where SAP Application
Server is Installed.
These Two digits are appended(suffixed) to SAP Standard Port NUmbers
3.The Classic GUI(win,java) Requests are received by the ABAP Dispatcher and Kept
in the wait queue
4.The Web Requests that are sent by the browsers are received by WEB Dispacther (If
Configured) Else Received by Internet Communication Manager(ICM) which can be seen
from Transaction SMICM with status running
The Users can be displayed by using SM04 with login(session) type"PLUG-in HTTP" or
simply "http"
The Users are displayed with Status "GUI" when login using Classic GUI(WIN/JAVA).
The Users are displayed with Status "RFC" when login from other Instances.
The Users are displayed with Status "BATCH" when running in Background Mode.
5.SAP ABAP Dispatcher maintains the Work Processes and identifies the Load handled
by Work Processes to allocate a freely available process to the User Request based
on FIFO(First-in First-out).
6.The Work Process Rolls-in the User Request into WP Task handler.(During First
Time Login there will be no roll-in)
7.The Work Process Contains Inbuilt Task Handlers to Interpret the Request.
10.The SQL Scripts(commands) in the User request are Interpreted by SQL Handler
11.R3 Buffer is used to store the most frequently used Content and Less Frequently
Modified(updated) Content based on Technical Settings in SE13 and Parameters in
RZ10.if the Requested Content is available then the Response is Loaded and
Generated to send it to the User.
SAP Uses "Open SQL" Language in the SAP Programs.This Open SQL is Independent of
all the databases.These are are monitored in ST02
12.if the Response is not available in R3 Buffer then the Process goes to the
Database using DB Specific Client and SAP Kernel(OS and DB Specific)
Open SQL is Converted into Native SQL with the Help of DB Client/SAP kernel while
Connecting to Database.
The Database Connection requires a Hostname,Port and Protocol
SEQUEL(Simple/Structured English as Query Language)
13.Database Provides the response to the SAP Work Process after Necessary
Interpretations.
14.The SAP Work Process Checks whether the Content is eligible for buffering,so
that a copy can be kept in R3 Buffer for handling Similar Requests in future.(This
Buffers are accessed by all the Users who log-in to the Application Server).
15.The Work Process rolls out the User Related information into User Context.
User Context: it is a small memory Area where the User Related information is
stored.it contains user Authorizations, parameters, Common User Attributes etc.. it
is lost when the user is logged out. it is Specific to User only.
R3 Buffer builds when the Instance(Application Server) is started and R3 buffer is
lost when the Application Server is Stopped
Roll-in: it is the Process of Copying the User Context into WP Task Handler. When
User is logging for the first time the Roll-in is not available.
Roll-out: it is the Process of Copying the User Specific Information into User
Context while sending the Response to the User by a Process.
The User Context is displayed using transaction SU56
The Components of Application Server
1.Application Server Dispatcher(dpmon)
2.Dispatcher Wait Queue(dpmon)
3.Work Processes and Task handlers(SM50/SM66)
4.User Context (Su56)
5.R3 Buffer (ST02)
6.DB Client
7.SAP Kernel
8.Internet Communication Manager(SMICM)
Most of the Components are build during runtime except dbclient and sap kernel.
User Context: The Work Process rolls the User related information into WP Task
handlers. The User Context is displayed in SU56.For Optimal performance the User
Authorizations should be as minimal as possible to reduce the Roll times.
Work Processes: These are used to Handle the user requests.These are displayed by
using SAPMMC,SAPMC,dpmon,SM50 and SM66.
Task Handlers:
Each Work Process is having its own task handler which can be displayed by the
using work process trace. These traces can be displayed using
AL11,ST11,SM50(Process trace). These traces are stored in
/usr/sap/SID/DVEBMGS00/work directory.SM50 is also used to kill the expensive
Processes.
R3Buffer: it is used to store the most Frequently accessed and less freqeuntly
modified/updated data. it is displayed in ST02. It Improves the Performance of the
System by reducing the hits on the Database.
Internet Communication Manager: it is used to handle the requests that are coming
over the Internet/Intranet using web browsers.
it listens on 8000 ABAP Port/50000 Java Port.
it Handovers the task to ABAP Dispatcher for further Processing.
it is Monitored through SMICM.
WEB Dispatcher:
The SAP Web dispatcher lies between the Internet and SAP Application Servers. It is
the entry point for HTTP(s) requests into SAP Systems, which consists of one or
more SAP NetWeaver Application servers. As a �Software Web Switch�, the SAP Web
Dispatcher can reject or accept connections. When it accepts a connection, it
balances the load to ensure an even distribution across the servers.
It is also useful to use the SAP Web Dispatcher for Failover of Application
Servers,Security functions or load balancing.
The SAP Web dispatcher is a program that you can run on the machine that is
connected directly to the Internet. It requires minimal configuration of Setting up
the parameters after Specific to ICM and Message Server.
Message Server is a Mandatory Service that is used to load balance the Netweaver
Application Servers.
Installation of Web Dispatcher:
it is installed using SAP Installation Master(sapinst tool)
Work Processes:
There are various Processes defined as Work processes. They are
displayed in SM51/SM50 as DVEBMGS<00> and ICM or D<01> D<NN>
MGBS DEVI
1.Dialog Process: it is the only process that is used to communicate with End
Users.
Dialog Steps: it is a screen Change/page flip/tab change/key board Enter/Mouse
Click/Function Key(f1,f2,f3,f4,f5,f6,f7,f8). it consumes certain amount of
resources such as CPU,Memory and Storage.
2.Update: it is used to update the requests into the Database
3.Background: it is used to run the jobs in the background mode during off peak
hours.
4.Enque: it is used to Lock and unlock the Objects
5.Message: it is used for configure load Balancing
6.Gateway: it is used to communicate with external systems
7.Spool: it is used to print the requests.
8.ICM: Internet Communication Manager: used to handle the Requests over the web.
User Context: User Specific Information is stored in the memory area which is
visible through SU56
Task Handlers:These are used to process the screen,abap and sql statements.it is
internal to the work process,precisely it is a workprocess taskhandler.it can be
displayed by using ST11/AL11/ Work Directory Trace SM50.
R3Buffer: it is used to store more frequently accessed and less frequently updated
data.it is displayed through ST02.
1.it is the only process that is used to communicate with endUsers Interactively
using Classic GUI or Through RFC or through Http Protocol(ICM).
2.The Average Response Time for each dialog step is 600 ms.it is displayed through
transaction code ST03n
3.Each Process can execute up to a maximum runtime of 600 seconds.if any process
goes beyond this time an additional time of 60 seconds(sql processing only) is
given and the process is timed out(ST22).it is not mandatory to allocate additional
60sec
7.Dialog Process is not restricted to a User and Users are not restricted to a
process which is referred as process multiplexing
9.There should be atleast minimum two dialog processes and maximum upto 100
processes.(600 from Netweaver 7.3
13.The sum of dialog processes should always be more then the sum of non-dialog
processes in an ideal instance
SM51(Monitoring):
Monitor the Number of Application Servers
Precisely count the apps and identify the app servers which are missing.
3.if there are no issues and if authorizations are available at OS Level then start
the Application Server at OS Level using command 'startsap r3'
4.SM51 Provides the release levels of the system (OS Version, Database Version and
SAP kernel Version(click on release notes)
5.it displays the Number of Application Servers with provided services such as
DVEBMGS..D01,D03.... Including the Type of Processes Such as Dia, Btc, Upd, Upd2,
Spool,ICM and Enq.
Message Server and Gateway are not displayed in SM51. From NW7.3 onwards Enque
Server also not displayed.
7.it provides the Navigation to other instances without login using RFC
mode.Execute SM51-->Double Click the instance-->it displays SM50->navigate to the
Transactions of that Instances.
11.Check the available.log in work directory for the exact down time. check
/usr/sap/SID/DVEBMGS00/work through transaction AL11.
12.The Instance Failure logs are displayed in the Log dev_disp in the work
directory.
as part of the Monitoring identify the expensive processes/Users along with their
runtime and update the check list.
Based on Approvals/Situation/Requirement the work process can be killed/terminated
using SM50/Dpmon tool.
dpmon is an emergency tool to monitor the processes at OS Level.it is the only tool
used when the GUI Logins are congested/blocked.
Dynamic Proceses:
If the dynamic work processes are active (rdisp/dynamic_wp_check=TRUE), the system
can start new work processes up to the limit specified in rdisp/wp_max_no in order
to resolve deadlocks. Dynamic work processes can have different types (dialog,
batch, update, and so on) where as restircted are only of type dialog.
The Number of dynamic processes that can be created are rdisp/wp_max_no-sum of
configured processes.
600-36+5=559(rdisp/wp_max_no=600 and sum of dia,btc,upd,spo,enq are 36)
Deadlocks
Means that all dialog processes have the status�HOLD, and dynamic work processes
cannot be started or there are no standby work processes. In this case a snapshot
is created and any actions still running are canceled.
Snapshots
In the info area the number of snapshots that were created since the last start are
displayed. A snapshot is an archive in which all important information about the
status of the application server at any given time is stored. A snapshot is
primarily used to simulate and interpret the status of the application server at a
given time.
********************BACKGROUND(BATCH)PROCESS*******************
1.The Programs which are timed out due to restriime,i.e long running programs,time
consuming programs,periodic jobs and memory expensive programs are
defined(scheduled) to run in the background mode during off peak hours.
3.A Background Scheduler sapmssy8 runs periodically for every 60 seconds in the
dialog mode or the time specified in the parameter rdisp/btctime=60.
4.Scheduler Picks the Jobs with status ready and allocates a freely available
background process.
5.The background process is dedicated to the job and complete the task.
8.it is possible to Integrate the SAP Background jobs with Third Party schedulers
such as TIDAL,BMC:CONTROL-M,SAP REDWOOD SCHEDULER and TIVOLI Scheduler
****************************************************************
Defining a Background Job:
Execute SM36
Specify the Job Name(Unique Name to identify the Job).
Specify the Jobs class(A,B,C) A- HIGH,B-Medium and C-Low
Status is automatically set:
Job Statuses:
Execution Target Server: when more than one application server are configured then
specify the name of the Instance where the job need to be Executed.
Spool List recipients: The output of the job will be sent to the users Email or to
the Printer.(payslip print or payslip to email in pdf format)
Job Step:
Job Step can be defined by using the Following
1.ABAP Program
2.External Command
3.External Program
2.External Command:These Commands are defined in SM49/SM69. These Commands are used
to Execute at OS Level
Ex: A Database Backup is executed at OS Level and all the database House keeping
jobs are executed at OS Level using Backup,Restore and Recovery Commands.These are
scheduled in DB13 Using DBA Calender.
brconnect -f check
brconnect -f next
brconnect -f stats
brarchive
brbackup
3.External Program:These are triggered by using executable 'sapxpg'. These are not
predefined but triggered based on Requirements.
Ex: While transporting Requests(STMS),it triggers External programs as sapevents.
(sapevt)
The Programs such as db cleanup,dunning,archiving,update cleanup can be started
before system shutdown or after system restart
WHY????
Scheduled: The Job is Scheduled but time/execution conditions are not specified
Active:
The Job is active and running for longer time.
1.Network/bandwidth Congestion
2.Required Memory,cpu,DISK I/O are not available
3.Expensive Processes are running on the System
4.The Processes are waiting for a response from external system
Cancelled or some times they are simply in the ACTIVE state blocking the Work
Process.
1.Issues on the Target System:when the background process is working to get the
data from External Systems(RFC Failure,CPIC Issues,Gateway Issues) Communication
with BW,CRM,SRM and SCM Systems
2.Bottleneck on the Database(due to space or any issue on the DB) ORA-1631/32 ora-
1653 /1654,ora-255,272 etc...check DB17 for corrective measures.
3.File System Issues(File Could not be opened for read and
write,authorizations,virus issues)
4.Variants Issue
5.User Input Errors(Zero divide/convert number etc)
6.Authorization issues(userid,password,client does not exist or user id
expired,password expiry etc)
7.The Jobs like SLCA_LCK_SYNC_OWNERS runs only on Supply Chain Management System.
They are failed on ERP,SRM,CRM and Netweaver Systems
8.No Component Chosen for WP_CACHE_RELOAD Jobs.it also looks for SCM System.
9.Update Reorganization Job fails to run in the background server. it has to run in
dialog mode.(RSM13002)
Get the Knowledge transfer from the Business Process owners.
Inform the BPO about the Error Message so that they can reschedule the Job or
Reprocess or run the job from SM37.
Do not own any background job other then SM36/DB13 standard jobs. if required
create a user like WF-BATCH to schedule the background jobs of the End User
Community.
Use Report RSBTCDEL to delete the background job logs peridoically.
Execute SM37 and repeat the scheduling of a background job provided there is a
black and white request from the Users.
Note: Do not Kill any Background job unless it is warranted and approved by the
management,else the system may be inconsistent if the job is related to an update.
Third Party Scheduler standard job dependencies and controls on SAP R/3 jobs.
Schedule SAP R/3 jobs to run on specified days and times, and in a defined
order.Define inter-dependencies between SAP R/3 jobs and jobs that run on different
platforms.They are used to Customize job execution return codes,Intercept
jobs,Track child jobs,Raise events and Notifications.
Ex: TIDAL,Control-M,BMC,TIVOLI,SAP REDWOOD Job Scheduler.
Operation Modes:
The Process of Converting the Dialog to BTC and BTC to Dialog is called as
Operation Modes.it is used to optimize the Resources by converting free processes
to workable Processes ie, During Day Time the Free background processes are
converted to Dialog Processes and during Night time the Free Dialog are converted
to background processes.
Define Operation Modes in RZ04 such as Day(Peak) Mode and Night(offpeak) Mode
Import the Profiles of the Application Server using RZ10.(to Know the configured
Processes on the instance). The Profile Specifies the behaviour of the Instance.
Assign the Operation Modes to the Application Server in RZ04.
Each Application server need to be defined in RZ04 for operation Modes.
Assign the Timings in SM63.
Note: RZ03 can be used to toggle between the modes to Check whether Operation Modes
Switch is occuring and the Processes are Switched.
During Operation Mode Switch the Existing Processes(Tasks) are allowed to Complete
and then switch takes place.No Process will be terminated during Switch.
it is also possible to Schedule Operation mode on a specific Day.Select Exception
Operation in SM63 and specify the date.
it is also possible to create more than two modes based on the requirement.
Peak Hours and Off Peak Hours are defined based on Geographical Locations Time
Zones and Customer Requirements.
Update Process:
Update Process is used to Update the Database.when more then one transactional
Dialog steps are involved in a Transaction Then Dialog Updates them in Temporary
tables which are updated into Main tables by Update Process based on Update
Modules.
When Ever a Direct Update is performed on the Database then rollback is not
possible.
Local Update: The Dialog Process Updates the Database main tables directly,if there
are few transactional dialog steps.
Background Process communicates directly with the database and updates the
Data.Background Process Updates all the transactional dialog steps in one go in to
the Database main tables.
Asynch Update: The Process of updating the temp tables by a dialog process until a
commit/roll back is made.
Synch Update:Once all the Transactional Dialog steps are committed in the Temp
tables then they are updated into Database Main Tables Synchronously. Synch Updates
are performed by a dedicated Update Process.
Update Processes(TYPES):
There are three types of Update Processes:
V1: it is used to handle v1 updates(time critical Updates)
V2: it is used to handle v2 updates(non-time critical updates)
V3:BW Updates or massive updates.(Currently reserved by SAP)
3.Enque Process Provides a Lock on the record so that the record will not be
available for update and locked records are displayed in SM12 until a Commit is
made.
4.The Dialog Process Updates all the transactional dialog steps into temporary
tables VBHDR,VBDATA,VBMOD and VBERROR(if any err).
5.Once all the dialog steps are completed then a Commit or Roll back takes place.
if commit takes place then a Transaction ID is generated from the Number Range
table(NRIV) and the Records are displayed in SM13.The Locks are inherited to update
process.
6.The Update Process reads the temporary tables and Updates the Permanent tables
synchronously.Upon Commit/Roll back the Enque Locks are released.
Update Statuses:
Initial(init): When the Dialog Process Completes writing into temp tables and when
a commit is made then the records are displayed in SM13 with status 'init'
Run: When the update process is updating permanent tables then the status is 'run'.
Error: if the update is terminated then the records are displayed with status
'error'
AUTO: if the update error is resolved then the system start the updates
automatically using the status 'AUTO(sys)'
AUTO(DIA): if the update error is resolved then the system start the updates
automatically,if they are not started then they can be repeated in SM13 where the
status will be 'AUTO(DIA)'
Note: if v2 processes are not available then v1 update handles the v2 updates.
For every 5 Dialog Processes one Update Process is required.
Update Processes are configured by using the parameter
rdisp/wp_no_vb=2(v1 Updates)
rdisp/wp_no_vb2=2(v2 Updates)
Number Ranges: These are defined in Transaction SNRO and stored in the table NRIV.
Ever transactional Object has to be defined with the number range during
Implementation else SM13(Update)Errors Occurs.
Dialog Process Checks for a Number from the Number Range Interval and Commits the
Transaction with that Number in the Temp Tables.
The Update Process Updates the Application(Permanent Tables) with the Transaction
ID.
Update Deactivation:
The Update Process gets Deactivated when ever there is a problem in the Database
such as Tablespace Overflow,Max Extents Reached,Oraarch directory is full.
The database Administrator has to resolve the issue,once the issue is resolved the
update mechansim can be reactivated.
Do not Deactivate the Update Process Manually in SM14 unless a problem in the
database is noticed,else documentation need to be provided for system log(update
terminated manually with a userid, time stamp)
Update Deactivation stucks the entire SAP System.
Set the Paramater rdisp/vb_stop_active to disable the above feature.
set the Parameter rdisp/vbmail=1 to notify the users in case of an update error.
Update Reorganization
1.Run the Program RSM13002 to delete the old Updates(Earlier this Program used to
run in BTC Mode,SAP Recommends to run this program in Dialog Mode and fails(not
allowed)to run in BTC mode)
4.Delete Records Manually from SM13(Care full about the current Updates).Generally
not recommended as no logs and traces are run to track what has been deleted.
(however sm21 writes the logs)
SAPSQL_ARRAY_INSER_DUPREC
This is very known dump occurs in production environment. This dump occurs when any
transaction or job is trying to insert duplicate records in a table.Check whether
this error is caused by the user or the program
Check whether the Update is terminated in a Local Customer Program,if required
Correct the Program.
if the issue is global such as program error which is occuring after the
installation,after an add-on,after a support package, after an upgrade,after a
kernel patch update/upgrade, refer the issue to SAP Support with High Prioroity.SAP
Provides a interim note or patch to resolve the issue.
while reporting an issue to SAP Check SM21,ST22 and Failed Module in SM13 with
Error Message.
If the Record Does not exist in the system then ask the User to create the
transaction again.
Resolve any database issues when the updates are pending or stuck with c
ertain errors like ora-1629,30,31,51,52,53,54 and ora-255,272 which are specific to
Oracle database.The Resolutions(corrective measures) are available for oracle
errors in DB17
Update Function Modules are not found and Update gets terminated
if v2 processes are not available then v1 Handles the V2 Updates.
Enque Process:
it is used to lock and unlock the Objects during an update.These locks are
displayed in SM12 and Held for longer hours until the transaction is committed or
roll back.These locks are issued from a lock table which resides in the main memory
of the instance where enque process is created/located.
Enque Processes are configured by parameter rdisp/wp_no_enq=1. Generally One Enque
Process for instance is sufficient,more then one is required in a massive update
system.
The Lock table size on the memory ranges between 4mb to 100 mb(200 mb in the
Netweaver 7.3 Systems)
It is defined by parameter enque/table_size=4 to 200 mb.
For 4mb of enque table size the Number of lock/owners/objects/arguments can be
restricted up to 3715.
Enque Flow:
1.User submit the Request for an Update.
2.The Dialog or Background Process Handles the Request
3.Dia or BTC Processes communicates with Enque Process and obtains lock on the
record,so that no other user has write access to that record.
4.The Lock will be held until the transaction is committed or rolled back The Locks
are displayed in SM12.
5.The Record is Committed into the database using a Transaction ID.
6.The Locks are released.
Generally the Enque time will be 1ms to 5 ms. if it is more,
then check whether update mechansim is active.
DIA--DISP--MSG--ENQ--ENQ TABLE-->ENQ-->MSG-->DISP-->DIA
BTC--DISP--MSG--ENQ--ENQ TABLE--->ENQ-->MSG->DISP-->BTC
Due to the above process the Enque time can go upto 100 ms.
From Netweaver 7.3 onwards Enque and Message Server are installed together in
separate Instance Named as ABAP SAP Central Services Instance. Every process can
establish a direct TCP/IP Communication with Enque Process.In This Case the
parameter
rdisp/wp_no_enq=0
DIA---ENQ--ENQ TABLE--->ENQ-->--->DIA
BTC---ENQ--ENQ TABLE--->ENQ-->--->BTC
What happens to the locks and transactions that are commiitted during a system
crash??
Message Server: it is used to perform load balancing when more then one Application
Server serving the same Group are Configured.
it is also used to obtain the locks for Additional Application Server Processes.
(from Netweaver 7.3 onwards not required)
Enque Server and Message Server are installed together in a separate Instance with
instance number, from Netweaver 7.3 which is referred as ABAP SAP Central
Service(ASCS)
Logon Groups are defined in SMLG and RFC Server Groups are defined in RZ12.
Define a Logon Group in SMLG and assign to the Instances which are going to
Participate in Load Balancing.
Configuring GUI
1.Update /etc/hosts(hostname and IP Address)
2.Update /etc/services(sapms<SID> 3600/tcp)
3.create a Logon Entry in GUI using the Option "Connection Type as Group Server
Selection"
4.Specify the Description,SID,Name of the Message Server(Hostname:3600),Select the
logon Group and Save.
5.The Least Loaded Server is calculated based on Algorithm(think time).
Navigate to SMLG-->Menu GO TO-DIAGNOSIS-->Message Server Status Area-->The favorite
Compute time/server is displayed.
Note: if Message Server is not Started then SAP System will be Down.
There will be only one Message Server in the Entire SAP SYSTEM.
The Message Server can be monitored by using 'msmon'.
Gateway Process:
it is the process that is not displayed in SM50 along with Message Server. Enque
Server is also not displayed in SM50 from Netweaver 7.3.
Gateway parameters:
gw/max_conn=500(Maximum Number of active Connection which increased upto 4092)
gw/keepalive=300(Timer for check unused connections and disconnect)
gw/timeout=10000ms(Timeout for connecting to other gateways)
Spool Process: it is the Only Process that is used to output the documents to a
Printer,fax,email etc..
Spool Work Processes are created by using parameter rdisp/wp_no_spo=1
it is possible to configure more then one spool work process based on available
resources. (300mb per process)
Due to Spool in DB the DB Size Increases as a Result the backup time increases and
Tapes may not fit with the data.(Frequent Reorganization is required).for Smaller
Organizations File System(300mb-500mb) is fine but Medium and Large Size
Organizations "DB" is recommended.
4. The Print Requests which are stored in TemSe are called as Spool Requests.
5.The Spool requests are converted into Printer Specfic output requests using a
Spool Work Process
Access Methods:
it specifies How the Spool Work Process Formats/ Converts/ transforms/ transfers
the Spool request into Printer Specific Output Request.
Local Access Method: if the Spool Work Process performs the formatting locally on
the Application Server then it is called LAM
if the Spool Work Process(server) is Configured in Windows System then the Local
Access Method "C" is used(direct operating system call)
Remote Access Method: if the Spool Work Process performs the formatting Remotely on
a Printer Server than the Application Server then it is called RAM
if the Spool Work Process(server) is Configured in Unix System then the Remote
Access Method "U" is used(Unix Berkely Protocol)
if the Spool Work Process(server) is Configured in Windows System then the Remote
Access Method "S" is used(SAP Specific Protocol)
Front Access Method: if the Print Request is given to a Desktop/Laptop Printer then
it is referred as Front End Printing(method F)
if more then one Printer is connected then Print by Control Technology "G" Access
Method will be Used.
Print Servers are used to store the details of all the printer in the Company. They
Store Device Type,Device Driver,Model,Vendor, Warranty and Guarantee etc..
Device Type:(Provides the Printer Model-->it specifies that printer is known to SAP
System and Printer Driver is available in the System.
Firstly Check whether the printer is available and recognised in SAP System.Else
Refer to the sap Note Number 1100779 for PVP(Printer Vendor Program).
if the device type are not available then select 'SWIN' or "SAPWIN"
SWIN makes use of 'saplpd'(line print daemon) an exe in windows desktops,it comes
through SAP GUI.
Logical Spool Server: it does not exist,but points to one or more Real Spool
Servers. These are used for Load Balancing and Failover.
Define Logical Spool Server in SPAD by assining a mapping server and alternate
server.
Execute SPAD-->Select Spool Servers-->Display-->Change-->Define Spool Server--
>Select Logical-->Specify the Alternate and Mapping Server.Save.
The Real Spool Servers are displayed in Thick Green Colour
The Logical Spool Servers are displayed in light Green Colour
Each Print Request has to be formatted by the spool work process based on the
Printer. So configure Logical Spool Servers when more then one real spool servers
are available.
(Problem): The Request is printed and the Output contains minor errrors such as
page format,character set etc..
Spool Reorganization:
Delete the Old Spool requests using the reports RSPO0041/RSPO1041.
Check the Consistency of the Spool by using the report RSPO0043/1043.
Check the Spool Memory Usage by using SP12. it displays the total spool volume
based on Client ,User,Logs etc...
Execute SPAD-->Extended Admin-->Delete OLD Spool Request/TemSe Consistency Check .
5.check whether saplpd(sap line print daemon) is working in the work station.(older
versions)
7.Advice the User to route print request output to some other user for print.
8.Advice the User to route the request to other Users Inbox(User can print using
SBWP)
9.Change the priority of the Printing using SP01/SP02
Note:As an Admin,Do not Print from SP01 for any User unless there is a black and
white(email)request from the End User.
SP01 is too sensitive as it provides the output format of the Spool Request.
Email Configuration:
Execute SCOT
Click on the Node smtp(if it does not exist create one node with name smtp
select the check box node in use.
specify the repeat send attempt procedure(time as 30 min default),if required
Change it to 10 Minutes.
Specify the Mail Host(HostName/IP Address of the Mail Server)
Mail Port by default will be 25(change it accordingly based on the Instructions
from mail Administrator.
Code Page:Leave as it is(No Conversion is required)
Define the Scheduler that picks the mail for every 10 minutes
Go to settings-->Send Jobs--> click on create a job for internet-->Specify the Job
Name,Interval(default is 10 min)and Save it.
Defining and triggering the mail will be from the Application Side.
Ex:Payslip to Employees Email,Orders to customer and suppliers, Notifications to
the Customers(for Payment),dunning reports(6 Levels of Dunning Notices for
EMI,surity Holders, vehicle/ machinary maintenance
The Mail addresses are fetched by the Programs
Users--SU01(SAP Users and Administrtors)
Employess---PA30 transaction
Vendors --Xk03(Table LFA1)
Customers----XD03(Table KNA1)
Mail Test:
Execute So00 and send a message with the valid recipients.
Note: Every Manual Change Made in the File System has to be re-imported into
database.However it is not recommended to make changes in the file System.
The Instance has to be restarted for the Profile Parameter to take effect.
it is a best practise to keep a copy of the good known working profiles as a backup
into a file system when profiles parameters are edited.
On File System there will be only two versions one active and one backup version
where as database maintains the multiple versions.These Versions are stored in
table TPFET.These Versions can be deleted,compared,checked,activated using RZ10
There are three Profiles
1.Default Profile
2.Startup Profile
3.Instance Profile
1.Default Profile: it contains the Profile parameters that are applicable to all
the instances/application servers. mostly default database,instance Name,security
parameters are configured
in earlier versions message server and enque server details are maintained in
default profile.
2.Startup Profile: it is used to provide the startup parameters for the Application
Servers/Instances.
it contains the Parameters to start the SAP sytem
Copy kernel executables from Shared Central dir to Instance Local Dir using
'sapcpe'.
Start the Message Server using msg_server.exe
start the dispatcher using disp+work.exe
start the Log collector in Unix using rslgcol
start the Log Sender in Unix using rslgsend
Start the Internet Graphics Server using igswd.exe
No Changes are Required in the Startup Profile.
RZ10 Options:
Administration Data is Used to maintain the file System Details.Mostly Used during
file system/dir changes
In General There will be 2* Number of Instance +1(Default Profile) i.e if there are
50 instance then 101 profiles are available.
From Netweaver 7.3 Startup Profile is merged with instance profile thus resulting
the number of profiles to n+1.
Profile Management:
it is used to Maintain the Profiles using RZ10.select the profile and click on
change--Maintain the Parameters-->Copy,Save and activate the profile. An Active
version of the profiles are created at OS Level.(/sapmnt/SID/profile). The Existing
profile will be marked as *.BAK and new profile is created which will be read by
the instance during restart.
RZ10 is used to check the consistency of the Profiles.it is also used to delete all
the versions of the profiles.
RZ21 is used to define the Methods which are assigned with a Report,Functional
Module,Transaction.These runs in the Periodic Intervals by a Cyclic ABAP Program
and collects the Information based on releases.
There are three types of releases Data Collection,Data Analysis and Auto Reaction
Methods.
These Methods are assigned to Monitoring Tree Elements which are displayed in Rz20.
The Customizing Groups are used to alert the Users based on the Threshold Values.
Monitor the RZ20 Periodically and create the Alerts to L2,L3 and L4 based on
Priority of the Message.
WORKLOAD ANALYSIS:
GUI Time: The Time taken by the User Request to reach the Dispatcher
is called as GUI Time. Generally it should take around 200 ms. if it is more then
this then consider the following.
1.Network traffic/Bandwidth Usage is too high or Some other Group of Users are
sharing the same network.(switch,router,hub issue). The Users are logging to the
server using VPN
II.Wait Time: The Amount of Time the User request waits in the queue to allocate a
process based on FIFO.Generally the wait time should not be more then 50 ms or 10%
of Response time. if it is more consider the following.
1.The User Context is expensive i.e the User has more Authorizations and More User
parameters.
2.Reduce the parameters and Authorizations
3.Check whether sufficient memory is available for roll-in.
V. Enque Time: The Time taken to communicate with Enque process and obtain lock on
that record is referred as Enque Time. Generally the Enque Time should not be more
then 1ms to 5ms,if it exceeds then consider the following
1.Enque/table_size is not sufficient to hold the number of lock arguments, owners
and lock objects
2.Load on the Enque Process is huge due to block in Update Process(Update
Deactivated)
3.if required then increase the Enque Process by using par rdisp/wp_no_enq
VI. Processing Time: The Time taken to process the User requests in ABAP/SCREEN and
SQL Processing.
The ABAP Screens,ABAP Programs and SQL Code in the Programs may be Expensive.
ABAP Screens and Code are fine tuned by using CPU Time.and SQL Code is finetuned by
using Database Time.
Generally the Processing Time should not be more then twice the amount of CPU Time.
VII.CPU Time. it is the total time consumed by work processes to process the
requests in SCREEN/ABAP and SQL Interpretations.Generally the CPU should not be
more then 40% of Execution Time(Response Time-Wait time)
if it exceeds then consider the Following.
2.Check the CPU Utilization in ST06(it should be less then 30% in IDLE Time)
3.Worst Case route the Programs to another Application Server else Add CPU or ADD
one more Application Server
VIII. LG(Load and Generation Time): The Time taken to load and generate the
response from the Buffers is called as LG time. it can go upto 50 ms.when it goes
beyond the Time then consider the following
X.Database Time: The Time taken to communicate with the database and get the
response into the Application Server.Generally the Database Time should not be more
then 40% of Execution Time(Response Time-Wait time)
if it exceeds then consider the Following.
1.Database Buffer Hit Ratio is less then(ST04) 94%(Increase the DB Buffers Size
using parameter DB_CACHE_SIZE
2.The SQL Statements are expensive(ST05)
3.Resource Bottle Neck on the Database(CPU,Memory and Disk)
4.Monitor the Locks Waits in DB01
5.Database Statistics are Outdated.(Schedule Them in DB13)
6.Missing database Tables/Indexes in DB02/DBACockpit
(Recreate them in DB02)
Average Response Time: The Sum of (WAIT TIME+ROLL-in+Roll-out+ENQ+PROC+LG+RFC+DB).
Execution Time= Response Time-Wait Time.
Wait Time+Execution Time=Response Time
ST02: Buffers
The Buffers are stored in the Memory of the Application Server. These are stored
based on technical settings in SE13 and Parameters in Rz10.
These are used to store the most frequently Used and less frequently modified Data.
it displaysthe buffer Hit Ratio of the Application Server. Generally the Hit Ratio
should be 98%.if it is below 98% then Check the Buffer Free Space%,Free Directories
%ge and Swaps. it is recommended to increase the Free Space and Free Directories
based on the available resources. if required additional application Servers are
deployed based on the number of swaps. SWAPS occur due to space issues, directories
issues,support packages,add-ons,languages,transports,content changes etc...
Logging:
it is the process of logging the Events(info,warning,problem,error) by default is
called as logging.
logs are written to /usr/sap/SID/DVEBMGS00/log/SL0G.
logs are displayed using SM21.
Example of Logs:
1.System Startup Shutdown(each process)
2.Database Errors
3.All ABAP dumps
4.Update Errors
5.Enque Errors
6.User Disconnections
7.Lock Deletions
8.Background job failures
9.User Session Termination from SM04
10.IDOC Errors
11.Batch Input Errors
12.Operation Mode Switch
13.Network Issues
14.Memory Issues
15.Buffer Swaps
16.User Locks(admin and self lock)
2.Memory Errors: When required memory is not available to execute a program then
program is dumped.
3.Time-out Errors:When required Time is not available to execute a program then
program is dumped.
4.User Input Typo Errors(Instead of Alpahbet a Number,instead of Number a
Alphabet)
5.Divide by Zero results or anything by zero results in Dump
6.Presentation Server Installations Error with Message_type_X
Dump Analysis:
Check whether issue Occured in Standard Program/Customer Program
Check whether issue occured due to User inputs
Check whether issue Occured due to an Issue in Database
Check whether Issue occcured due to timelimit,memory Limit
Check whether Issue Occured due to Older/inCompatible Version of GUI
Check whether User has necessary Authorizations/not locked/self locked during a
logon to target system using RFC
Ensure that Update is not Deacivated
Ensure that Spool/Enque table is not Overflown
Read the Error Analysis and Provide the Resolution to the User.
if not Send the DUMP to SAP for Resolution,provides the issue is with a SAP
Standard program.