Sap Basis
Sap Basis
Sap Basis
SAP BASIS
2
SAP BASIS
Yahoo/
Google
1. Client requests
2. The request is processed by an interface
3. The request reaches server
4. The server process the request
5. Response back to the user either {Ticket/ Email}
R/2 Client-Server
4. Servers are heavily loaded/ traffic, long queues there by reducing the performance of the servers.
6. Server needs to process the request (Understanding the user language). Interpretation takes
Client requests and server responds. The major disadvantage of Client Server architecture is
The need of middle layer/ tier rose to come out of the steps. The result is the Application layer/ Server
Application server is deployed and it provides the following functionality
1. DB Client is installed to free up the clients (i.e. there will be only one DB Client for Application
server earlier each client needs DB Client software)
2. There is a queue mechanism to handle the request there by reducing the load on the client and
server.
3. User requests are served based on the FIFO using dispatcher.
4. Work process task handlers are used to interpret and process the request.
4
5. Intermediate buffers are available for the frequently accessed content to reduce the load on the
Database server.
6. The server side processing is only takes place for new requests there by server resources are
optimally used.
It is the Intermediate layer in between the Client and the Server. It is installed with a database
client to communicate with the database server i.e. all the clients are freed with DB Clients.
Application server/ layer handle the request and process them based on FIFO (First in and First out). It
has its own queue mechanism to process the user request. It also contains the task interpreters to
interpret the user request and route it to the server.
5
It is intelligent to store the frequently accessed data thereby reducing the load on the server.
R/3 Architecture:
SAP uses the industry specific 3-Layer Architecture and named it as R/3
Architecture. It consists of three 3 Layers
It is a client for all the SAP Solutions. It is also referred as SAPGUI. There are three 3 types of SAP GUI
SAP provides various versions of GUI (4.6c, 620, 640, 700, 710 and 720)
2. Application Server:
It is used to handle the user request and process them to the database. It has dispatcher
to process and monitor the user request, work process to process and interpret the requests, Buffer
areas to store the frequently accessed data. It absorbs the load both from Client and the server.
It is the area where the complete data resides. It has its own queue, process, buffers, and
request handling mechanism. Most of the databases are on Oracle. SAP is pushing MAXDB (without
any license key), Microsoft SQL Server & IBM DB2 with discounted prizes.
SAP is focusing SMB (Small Mid-sized Business) and promoting SAP for nearly 1 million/ Rs. 10 Lakhs/
per customer.
6
Supporting Platforms:
SAP can be installed on Microsoft windows 2000, win2k3 (2008 is under evaluation). It
can be installed on 32bit or 64bit operating systems. 64 bit means a single process can serve the user
64 32
with 4GB RAM/ Memory whereas in 32 bit it is 1.9GB Memory. 2 , 2 / 8 bytes.
HP UNIX 11.23
ORACLE 9.2.0.6 / 10.2.0.4
IBM Specific operating system with version 5.3 technical (TL) level 7 (TL7)
This is also IBM specific which provides more consistency, reliability, mileage than any other
operating system and database.
Note: Linux with MaxDB is supported by SAP and provides more leverage (Finance)
Microsoft windows and SQL Server This is the best combination for interactive usage
7
Installation of Presentation Server (SAPGUI)
Use presentation server DVD and go to the respective OS win32 and run setupall.exe and follow the
onscreen instructions.
Saplogon icon is installed on the desktop.
Double click and enter the entries of the application server
BASIS
Eg:
Basis provides User Management
Business process Monitoring
Role based Security
Performance Gauge etc.
1. Presentation Server
2. Application Server
3. Database Server
It is an
1. Presentation Server SAP GUI. It is of 3
types SAPGUI for windows, HTML establish connection with SAP
Application Server based on the name of Instance Number, SID etc.
Use presentation server DVD and go to the respective OS win32 and run setupall.exe and follow the
onscreen instructions.
Click on logon
1. Single GUI to access all the SAP Applications (ERP, CRM, SCM, XI, BI and SRM)
2. We can login with our logon language i.e. specify the language during logon. Same GUI is allowed
to login with different languages
Login - From Tools Administration SU01 - From Menu Favorites > Add
4. GUI is downward compatible to support all the SAP Applications which are below the gui version.
Example: GUI 7.0 cannot support the component that are built on 7.10 but 7.0 can handle 7.00, 640,
620, 46D, 45A etc.
5. User parameters are defined for the frequently keyed in content. Eg: A user belonging to the sales
organization, division, plant, sales area should get all the values by default while creating sales order
(VA01) etc.,
Steps:
Click on sales organisation field and press F1 and click on technical settings
Note the parameter ID
10
2. Execute SU01
Save the data. Now whenever the user executes the transaction VA01 it will be filled with the default
values with 0001 and 01 for Sales organization and Distribution channel respectively there by
reducing the user tasks.
6. User can be specified with 1. Role based menu or with 2. SAP Easy access Menu to reduce the load
on the request processing (Roll Area)
7. SAP GUI is intelligent to determine the least loaded server when more than one instance is
configured. It gets the information from the Message server.
8. It provides access across the low speed connections and displays the screens without graphics/
logo which consume more network traffic. (Low Speed/ High Speed)
9. It provides command window to navigate to the respective functionality and minimizes dialogue
steps.
12. SAP Provides various shortcuts window /n to open window from existing window and /o to open a
new window /ex to exit the screen.
14. The character set can be changed to suite various languages and printers.
2. Application Server
It is a physical server which is used to handle and process the user request. In SAP naming convention
we define them as an Instance and it is possible to install more than one instance on a single server
provided they are differentiated by the instance number.
Instance number is a 2 digit number that varies between [00 to 97] 98 and 99 are reserved for routing
purposes.
2. Central Instance
This is the Instance where Application Server/ Tier/ Layer are installed. There will be only
one instance in the entire system.
3. Dialogue Instance
These are the instances which are used to handle the load on the central instances. We
can install as many instances as possible assuming that each instance can serve up to 200 - 500 users
depending upon the type of the users.
12
Kernel
SAP
K
E DB
R
OS
Usr\sap\<SID>\sys\exe\uc\NT1386
Installation Logs
.tsk file specifies the table/ index etc that needs to be created on the DB.
Each task is commanded by .cmd file and during the process they writes into .log file
Eg: Sasapappl0.tsk.bck
Sapappl0.tsk
Sapappl0.cmd
Sapappl0.log
Sapappl0.str - Structure of the DB
Control.xml
Keydb.xml -Helps to restart installation from the point where it is failed.
13
WHAT HAPPENS DURING INSTALLATION?
Note: The user who initiates the installation should have the privileges as Local administrator to install
the software, create users, create groups, assign groups, create services etc., (This problems occurs in
a Domain)
If the user does not exist it creates now.
On Windows OS <SID>ADM is also responsible for database but on UNIX ORA<SID> is the
owner to work on the database. ORA<SID> provide the runtime environment for Database.
Windows
App Server Database
<SID>ADM <SID>ADM
UNIX
5. It creates local groups and global groups and assigns them to users
SAP_LocalAdmin
SAP_SOL_GlobalAdmin from Computer Management -> Local
SAP_SOL_LocalAdmin Users and Computers we can view this
6. It creates Services
SAP<SID> is used to start the SAP System; if the service is not started SAP will not start.
SAPOSCOL is started first to check whether the resources are available (Operating system collector) It
is used to collect the OS Utilization information and pass into SAP system.
SAPCCMSR is an agent to collect JARM (Java Application response time Management) and pass it to
ABAP CCMS (Computing Center Monitoring System)
It is only used in JAVA and ABAP stack.
Users
Groups
Services
Creating directories
Executables
- OS Dependent
- DB Dependent
15
Note:
Where the systems are installed with these schema owners i.e., these users owns the
respective databases.
Query:
9. Now command files are created pointing to .str and data on the exports
10. The task files are created to create the tables and load the entries
The task files are displayed as process on the installation screen
"2 complete 3 running 4 waiting"
11. Upon running all the tasks the SAP Database is created and DBStatistics runs.
12. DB Users are set with default password and SAP Application open RFC Connection.
--- Installation Successful --
16
SAP Installation Steps
\USR directory is created with a shared folder SAP with shared SAPMNT & SAPLOC
CCMS
PRFCLOG
PUT
SID HOSTS
Trans
CCMS - Used for alert logs that is populated by the service SAPCCMSR
(Java Stack Only)
SAPMnt: Is a shared SAP Mount which is used to host the directories related to SAP.
(It may be required to create SAPMnt in earlier versions but in the current versions based on
Netweaver it is created automatically)
SAPLoc in Windows
This SAPmnt is shared because it needs to share the transports, support packages, profiles,
executables etc between systems in the landscape.
TASKS
Installing SAP Component on SOLMAN
On Windows/ SQL Server
On Windows/ Oracle
Windows/ DB2
Linux/ Oracle
HPUnix/ Oracle
AIX
Solution Manager connects all the three systems (ERP i.e., ECC6.0, Netweaver & CRM2007)
18
I. Installation Inputs
SAPInst
SID
Mater Password
JCE Policy
Users,
Groups,
Services,
Directories,
SharedMnt,
Kernel (Extraction),
CreateDB,
LoadDB,
Updated Stats,
RFC's
DEFAULT USERS
SAPSR3
SAPSR3DB
A host is either a client or a server. A host has its own address on the network, and is its own
machine.
A server has its own address and sometimes multiple addresses. It provides access to services
and information.
Interface / Screen
Exports/ System Copies
Kernel [Dependent]
Install Mstr [Dependent]
Java Comp [Independent]
JRE [Dependent]
Exports [Independent of OS, DB]
Installation Directories D:\usr\sap
\USR directory is created with a shared folder SAP with shared SAPMNT & SAPLOC
CCMS
PRFCLOG
20
PUT
SID HOSTS
Trans
CCMS - Used for alert logs that is populated by the service SAPCCMSR
(Java Stack Only)
PRFCLOG - These are also populated from JAVA Engine
(Generic Request Message Generator GRMG)
PUT - is used during upgrade
SID Hosts - the complete SAP Application Server.
Trans - is used to host the Developments
SAPLOCAL_ADMIN
SAPGLOBAL_ADMIN
ORA_SID_DBA
ORA_DBA
ORA_SID_OPERATOR
Check the USR Directory (SAP Instance files..... App) predefined shared SAP Directory with
SharedMnt, (SAPMnt), and SAPLoc on windows
Note: SID Specifies the Application Server and is possible to have multiple <SIDS> differed by the
instance number
Queries:
Note: In the console tree of SOLMAN if all the three entries (SERVICES, USERS and GROUPS)
are available then only we can confirm there are 3 Instances in one single system.
Config..... Usagetypes.properties - used to specify the usage types that are installed on the
system.
EP EP
BI BI
JAVA JAVA
ABAP ABAP
Enterprise Portal
Contains executables and profile parameters to start and stop the system
EXE Directory - hosts all the executables from netweaver exe dir contains UC/
NUC and 32/64, i386/ ia64
17-jul-09
Instance:
Structure of INSTANCE
Instance contains Dispatcher, Queue Mechanism, and Work process, Task Handler with ABAP,
SCREEN, and SQL Interpreters. It also contains buffer areas, DB Client and Roll area.
Dispatcher
It is used to handle the user requests that are coming from SAP GUI using DIAG
(Dynamic Information Action Gateway) protocol on port 3200 + Instance Number.
(3201, 3202 etc)
Dispatcher manages all the work process and maintains a queue. Once the request is
sent to dispatcher the dispatcher keeps the request in queue. Based on the availability of work
process it will assign the process to the user request based on FIFO (First In First Out)
Work process handles the user request using Task Handler. Task Handler contains 3
Interpreters ABAP, SCREEN and SQL.
24
ABAP interpreter used to interpret the ABAP code in the user
request SCREEN interpreter use to interpret the screen
SQL interpreter interprets the SQL statements that are sent by the user.
Open SQL
This is SAP Proprietary language to ensure that the SAP Components are Database
independent. Each instance is installed with DB Client software to communicate with Database in
Native Language.
The SAP Kernel which is O/S and DB Specific helps in the interpretation.
The user request is processed and it handovers (handshake) the task to Database process.
DBWP (Database work process) process and responds back to the R/3 work process. R/3 work process
checks for frequently accessed content and keeps the copy in R/3 Buffer areas. (Frequently accessed
data). The response rolls out into the user context before it is sent to the user.
User Context
It is a user specific roll area which is used to keep user authorizations, parameters, screens and
earlier accessed content.
1. User requests
2. Dispatcher handles the request
3. Keeps in queue and assign WP based on FIFO
4. The work process gets the username, password, client, logon language and the task handler
interprets and hand over the task to the database process.
5. The DB process checks the credentials of the user and provides the necessary authorizations to the
process.
6. The entire information is copied into the user context which is referred as ROLL OUT. (The
information is copied into Roll Area which is subsequently available for all the requests made by the
user)
25
Note: The user context remains until the user is logged out. The user context is displayed in the
transaction SU56. If the user accesses other than the transactions in SU56 it is missing authorizations
and displayed from the Tcode SU53 (Missing Authorizations)
1. User executes a transaction Eg: ME22N - Purchase Order (or) VA01 - Sales order
2. The request is handled by dispatcher and hand over to the work process.
3. Work process requires information that is not available in the work process. The work process
copies the user related information into the task handler i.e. copy user context into the Task Handler.
It is also referred as ROLL IN
4. Further processing continues
Even though the processes are unique at OS level SAP differentiated between the work
processes based on the nature of work.
The process are determined by the instance name DVEBMGS<Instance_No>
For Dialogue instances the work process will be denoted as D01, D02....
D - Dialogue
V - Update
E - Enqueue
B - Back ground
M - Message
G - Gateway
S - Spool
It hosts all the process and their will be only one central instance in the entire system.
1. DIALOGUE 'D'
It is only the process which communicates interactively with the users. There
should be atleast 2 Dialogue work process per instance. Dialogue work process initiates Update,
Background and Spool.
2. UPDATE 'V'
It is used to update the transactions in the database. It is initiated by Dialogue
process. There should be atleast 1 Update in the entire system. It is also recommended to have an
update process for every 5 Dialogue.
26
3. ENQUEUE 'E'
It is used to provide locks for the records that are going to be updated. It ensures
consistency for updates. There will be only 1 Enqueue configured in the system during the
installation. It is possible to have more than one enqueue provided they are installed or configured on
the central instance.
4. BACKGROUND 'B'
The tasks which are expensive or time consuming are scheduled to run in the
background mode non-interactively. There should be atleast 2 background work process in the
system
5. MESSAGE 'M'
There should be only 1 message server in the entire R/3 system. It is used to manage
all the dispatchers. It is used to load balance the requests to identify the least loaded dispatcher.
It is also used to provide locks to the request that are coming from Dialogue instances.
6. GATEWAY 'G'
It is used to provide a means of communication with SAP and NON-SAP systems. There
will be only 1 gateway for each instance.
7. SPOOL 'S'
It is used to print the documents to a printer or output to a fax machine etc. There
should be atleast 1 Spool process in the entire system. It is also possible to configure more spool
process depending on the print/ spool volume.
18-jul-09
DVEBMGS00
Dialogue - Interactive - 2 per instance - Initiate update, spool and btc (background)
Message - Used during load balancing. It also procures lock from enqueue server To
serve the requests that is coming from dialogue instances. Only 1 Per
system.
Spool - It is only the process that outputs the documents to printers, fax etc. It is
initialized by Dialogue and BTC. Atleast 1 spool per system.
INSTALLATION
6. Install JRE 1.4.2_12 (Java Run time environment) to run the sap inst screens
28
7. Set the JAVA environment variable JAVA_HOME or path
Check java -version
9. Set the host name which should not be more than 13 characters
11. Ensure that the installation ports 21212, 21213 are not blocked
(Need to inform Network Admin or Proxy Admin not to block the ports)
12. Ensure that 3200, 3300, 3600, 4700, 4800 series ports are not
blocked. (DVEBMGS utilises these ports)
13. Dump the software into the system. The folders should not contain spaces,
Special characters etc (Eg NWDump or Newfolder - all one word), underscores
are allowed
15. Get the private static IP address from the Network team (192., 172., 10. networks)
PRACTICAL SESSIONS
www.service.sap.com/instguides
www.service.sap.com/platforms
www.sercvice.sap.com/swdc
- My companies Application component
- ERP 6.0
Select the Database
From Downloads Tab - Select the components Exports, Kernels, JAVA
SR1 - SR2 - SR3 -EHP1 - EHP2
29
Market place > Help and Support > Search for Notes
T1 Shopper Port scan - To check whether these ports are open or blocked.
IDES (International Demo Education System) will have more clients 11-12 Predefined clients and in
the Non-IDES system only 3 Clients (000, 001, 066)
In IDES additional clients - 800, 811, 812 clients are
available. There will be only 2 exports for Non - IDES system
And 6 Exports for IDES system.
LABEL.ASC - contains the content and the DVD number from which we can find whether it is an Export
1 Or Export 2 etc.
Note: Only exports will change for each application like CRM, SCM, SRM etc
20-jul-09
INSTALLATION
1. Central Instance
2. Database Instance
3. Dialogue Instance
JCE Policy
JAVA Cryptography which is used to provide the secured encryption & decryption over the
web - because the content transmission over the web is not secure.
- The input lists screen is displayed to review before starting the installation.
- Continue the installation
- Installation depends upon the export content (IDES version may consume 8-12 Hrs) Production
version ma take 4-6 Hrs. It also depends upon the memory.
Components lies in ECC6.0 are (SALES, FINANCE, and PURCHASE... around 35 modules)
31
To display all these over the web then EP (Enterprise portal) is required.
Note: All the SAP components will be installed on the Netweaver Platform. It is up to the customer to
choose the Netweaver components and It is mandatory to choose ABAP components. ABAP is the
platform for all the SAP Components.
ABAP is a part of the Netweaver.
ABAP provides the runtime environment for all the above components i.e. USER Management,
Administration, Management of the file system, processes securing the sensitive data, fine tuning the
performance, database administration irrespective of the SAP component and also managing printers.
POST INSTALLATION ACTIVITIES
SAP is a transaction based. Menu based consumes more dialogue steps than transaction based that is
why SAP BASIS consultants are more familiar with transactions.
32
Login to the system with SAP*, DDIC and Master password (specified during installation)
1. Execute transaction SM28/ SICK (Installation consistency check). It checks the compatibility
between OS, DB and the R/3 kernels. If there is any inconsistency it will recommends us to fix before
proceeding further. Based on the displayed message we may need to upgrade OS patch levels, DB
support packs and R/3 Kernels.
SM28/ SICK
2. SLICENSE - It is a transaction that is used to apply the license to get the runtime support for
the system even though it is valid for 30 days (4 Weeks i.e. 28 days). It is recommended to apply
license because they are not considered for support.
Except DEV and SANDBOX remaining all the systems like QAS, PRD, PRE-PRD are set to not-
modifiable i.e. no object can be modified in these systems.
The changes are only transported to the not modifiable systems.
21-jul-09
Checks for the Incompatibility between R/3 Patch Levels, Kernel Levels, OS levels and Database
patch levels.
2. SLICENSE
SAP Issues two licenses, one is the permanent key valid upto [31129999]
The other one is Maintenance Certificate which is valid upto 3 Months. This Maintenance certificate
is introduced from JAN/ 2009 onwards. It locks SPAM so that no upgrades are allowed without a valid
Maintenance certificate.
SE06 transaction is used to set the CTS (Change Transport System). It initializes the Transport
Management system. A message will populate to configure TMS in the client 000.
35
TMS: Transport Management System. It is used to setup the systems, their roles, Domain controller,
backup domain controller, landscape and their routes.
1. Domain Controller: There will be only one Domain Controller in the system landscape. In most of
the environments [DEV] is treated as DC because, this is the first system in the Landscape
Login to the system/ Client 000 with the user other than SAP*/ DDIC
Execute T-Code STMS
NOTE: If the Domain already exists then we can execute a TCode [DICO] to delete the existing TMS
configuration. It should be executed in STMS and also the RFC connections.
TMSADM is a communication user created during TMS configuration (Do not delete the user, lock
the user, change password, set to expiry will hault the system transports, support packages and
applicatoins etc)
A message SAP system "waiting to be included in the transport domain" is displayed in the external
system.
Login to the DC
Execute STMS
From Menu Overview > Systems
The system is waiting to be included
Select the system and click on approve from Menu SAP System.
Virtual Machines/ Systems can be replaced by real systems and the configuration now points
to the real system.
System : JOQ
Description : Quality System
TRANSPORT GROUP
It is a naming convention group_<SID> we can configure all the systems to a single transport group
i.e. all the developments which are performed in Development system will be automatically available
to other systems in the landscape. The group of systems which shares the transport directory in
common are said to be in one group but due to sensitivity of PRD it is moved into a separate group.
1.
Shared Data
2.
Defining the Landscape
37
Execute STMS
> Click on transport routes
From over view menu
> click on change
> from Menu Configuration
> Standard Configuration
> Three systems in group
22-jul-09
Perform DICO to delete the STMS configured earlier if necessary and the RFC connection from the
external system.
POST INSTALLATION ACTIVITIES Continuation ...
38
From 000/ SAP*
Create an new user as SAPUSER copied from SAP*/ DDIC logging in as SAP* user from the newly
created client.
Login to the new client with our userid and password and lock the DDIC and SAP*
Execute SMW0
GOTO - SM30
Click on maintain
Click on new entries
START_IMAGE : ZTEST
Prompts for the Change request - proceed and test the logo
SETTING UP TEXT
Execute - SE61
40
1. SICK
2. SE06
3. SE03
5. RZ10
Used to import the profiles from OS level to DB. The profiles are available in
\usr\sap\<sid>\sys\profile. These profile requires management for fine tuning, configuring buffers etc
From 000 > Goto RZ10 > Utilities > Import profiles of Active servers >SAVE
6. SMLT
41
Perform language transports if any. The system is an unicoded system to support the all
available languages but we need to import the additional languages as per the requirements.
Download the languages in
\usr\sap\trans\eps\in Directory
Goto SMLT > and create a language > specify supplementary language i.e. if the script is not
available in main language it will display in secondary language.
English > Primary
German > Secondary
Clink on ADD from NLS settings to include additional languages that are going to be
imported using SMLT.
Steps:
42
1. Execute I18N
2. Add language that needs to be imported in I18N
3. SMLT create language
4. Click on > Import package > specify the path \usr\sap\trans\eps\in
6. SPAM
Apply the patches that are relevant for SAP application component
7. SR13 Install SAP Library
43
SAP Provides screen context help i.e. when a user struck at one screen he can use Menu Help >
Application help.
SR13 >
New Entries
1. Dynamic Help
2. Plain Html Help - Html documentation installed on Web Server
3. Plain HTML - HTML docu installed on File server
4. HTML Help File - It occupies less space, opened by html help viewer.
It is in compressed format.
For documentation > Market Place > SAP Solutions > SAP ERP >English Note:
Need to create a folder in D:\SAPHELP...... (sapdocdc.ini) paste the path.
Note: Create users in SU01 and assign SAP_ALL to the functional and technical team as the security is
not implemented.
24-jul-09
Dispatcher - DPMON
Workprocess - SM50/ SM66
User Context - SU56
Task Handler - from Work Directory
Buffers - ST02
Dispatcher receives the request and processes them according to the queue. The requests are
processed by using a dialogue process. Dialogue process is the only process that interacts with/
communicates interactively with the user. There should be atleast 2 Dialogue process per instance.
Each process requires 75MB to 150MB of memory on any average.
The memory should be calculated after reserving memory for OS and the Database.
Min and Max upto 40 Processes, but depends upon how heavy the processing goes.. If a reporting
user requires 3GB of memory then there will be a memory bottleneck.
The maximum number of work process an instance can support is W0 to W99 (100 Work processes).
There are cases where more than 100 are configured but it is not recommended. If the system
supports more than 100 processes then it is better to configure one more instance on the same server
differed by the instance number.
The dialogue response time should be around 600 to 1000 Milliseconds (1 Second)
Each dialogue process is restricted by using a parameter rdisp/max_wprun_time = 600 s
(10 Minutes) after which the process will be timed out. In order to run the activities that consume
more time then the above we need to run in the background mode or increase the parameter value
from RZ11 (Dynamic parameter) i.e. during the month end the parameter can be changed to 1800 -
10000 from RZ11 for specific period of time. Upon task completion reset the value in RZ11 (No
system restart is required)
Each user transaction may be served by one or more processes with out restricting to the user
similarly each work process serve multiple users with out restricting the user. (No dialogue process
remains ideal)
Each process can serve 5 - 10 users and Each SAP transaction consists of multiple (LUW -
Logical unit of work) Each LUW contains task which should be completed/ rollback as a group. Each
LUW is a commit or rollback (no intermediate stage ... which makes the system inconsistency)
2. BIND 1 & 2
Tickets to and fro + Accommodation)
LICENSING
10 + 1
Users Developer
4% VAT 48,000
17% Maintenance /Year 2, 04,000
-------------------------
14,04, 000
5 1 2
22% 24% 26%
Eg: Telco - 5000
Bajaj - 270
ARAMCO -50000
47
Once the license key is received then goto SLICENSE Tcode -> INSTALL
And click Install new licenses button
25-jul-09
Dialogue handles the requests and process only reports with out any assistance. If the reports are
long running, time consuming, expensive then they can be scheduled to run in the BTC mode.
During an update dialogue updates temporary table and update-process updates them later.
48
For print requests Dialogue handles the request and update in Temse. The spool process
Prints from Temse (Temporary Sequential file it can be at file/ DB Table)
Dialogue communicates with enqueue while updating a transaction and obtains lock so that no user
can update there by assuring data consistency.
Dialogue communicates with the message server to obtain locks for a record that is coming from
Dialogue instance.
Dialogue communicates with the gateway while establishing connection with other SAP systems.
DPMON.exe is a dispatcher monitor which can be executed when the user could not login to the
system (Experience Hour glass). Its not a TCode.
Work process list is displayed in SM50/ SM66. Each process has the following
Waiting for
PRIV Mode: The process goes into Heap mode. It will be completed only after the task
completion/ timeout.
SLEEP MODE: The work process goes into sleep mode waiting for resources (RFC
problem)
- Restart YES/ NO : if the process is terminated and it will restart automatically (Yes), not restart(NO)
26-jul-09
SM66 GLOBAL WORK PROCESS OVERVIEW
It displays the processes based on status. It displays the processes belongs to all the
instances. From SM66 - Click on SELECT PROCESS
50
The major advantage of this is it displays the memory consumed by work process. Double click
on the WP to display (Extended, Roll and the Heap Memory)
On Oracle execute
SM04 : is used to display the logged in users along with the sessions. We can
terminate the session or the user completely using End session or logoff user.
From User > Logoff User > Local or End the session
It is used to run the expensive programs, reports that consumes more time in the background
mode. i.e. a job is scheduled to run at a specific time or periodically.
Example: Daily report, Weekly sales report or expensive to run in the peak hours so they are
scheduled to run in the background mode during off peak hours.
Process Flow
5. BWP looks into the table and identify the jobs which are in the Ready State.
6. BWP runs the job in the Active mode till completion/ Cancelled.
BWP are defined by using rdisp/wp_no_btc=2 (Min 2 per system)
We can increase as many as possible depending upon the resources.
** Note: We can pause jobs by setting the value to 0 zero **
JOB STATUS
Execution server - Name of the instance that provides BWP to run the job
Exec Target - Willsys_<SID>_00
Click on step
JOB STEPS
We need to specify the following for the JOB Execution
1. ABAP Program
2. External Command
3. External Program
1. ABAP Program - Is a predefined program that will be run in the background with user inputs as
variants.
2. External Commands: The job can be executed by external commands which are defined in
SM49/ SM69. These commands are OS commands that will be executed at command level.
3. External Programs:
NAME: Name of the program
Parameter:
Target Host:
Name : Specify the name of the program and the parameters. Specify the name of the target
host. Specify the start condition
Immediate/ Periodic/ Jobstart, Event (SM62)/ Operation. Modes.
It is the process of switching DIA to BTC and vice versa during the peak hours as we need
more dialogue process and during off peak we need more BWP to run the BTC jobs.
rdisp/wp_no_btc = 2
rdisp/btctime = 10
Execute SM37
Specify username, date & time, job name, status ----- Execute F8
1. The jobs with status RELEASED indicate the jobs are released with scheduled time and waiting for
their turn/ time.
2. The jobs with status READY indicates the jobs are ready to pickup by the scheduler
Eg: Consider a CAB - might come late
No sufficient CABS
1. The existing jobs are running for a long time i.e. expensive programming or sql
statements/ fetching huge amount of data.
2. The configured BTC processes are not sufficient to handle the requests in Ready status.
4. Also due to passing the jobs by extending scheduler time/ making BTC to 0 by running the
program BTCTRNS1.
Action:
1. Increase BTC work processes based on the available resources by using the
parameter rdisp/wp_no_btc = 2
2. Schedule the jobs appropriately during off peak hours.
1. Some jobs are bound to run for hours and based on history leave them to run.
2. Check the bottle neck on the target system (ERP-BI-EP-SRM-SCM-SRM)
3. Wait until the locks are released/ jobs are completed. Report to SAP in case of dead
locks. Select the status - Db click - and click on Job Logs
Execute SM37
5. CANCELLED
1. User and password Issues (Authentication/ Authorization) user lock, userid expiry, password
change, lack of roles etc.
2. File system problems: BTC reads from the file system to update the database. File not opened,
or corrupted, file sharing issues, file came with different characters, file not found as well.
10. Problem in the program and inputs (Indefinite loops like 1/0)
1. As a part of the post installation we need to schedule house keeping jobs in SM36
Execute SM36
Click on "Standard Background Jobs"
56
1. Used to display the jobs based on job, username, date and status
2. It displays the job logs
By highlighting a job and click on Job Log
58
5. Background job out put is a report to a spool (Printer), fax or email or even updating a
database (Eg. Client Copy)
28-jul-09
1. CONTROL-M Scheduler
2. RED WOOD Scheduler
3. TIDEL Scheduler
4. SAP Job Scheduler
5. MAESTRO Scheduler / IBM
These Third party schedulers are not specific to SAP but we can customise these to
SAP These job schedulers are intelligent to work based on the status of Predecessors.
The tool defines when to trigger, how to handle various statuses and alert users accordingly.
Eg. KODAK Runs 14,000 Jobs/ day
HP Runs 20,000 Jobs/day
59
BTC - Business Case
Sony an electronics company communicates with suppliers for the TV Cabinets/ Circuit boards,
Picture tubes, assembling & packing.
9. To run Database jobs using external commands DB13 (SM49 provides commands)
NOTE: In table TSTC, we can get a list of all existing Tcodes and which programs are called by
those transactions.
From SE11 - Provide the table name TSTC and execute providing the T-Code to find the Program
No bother of "Schedule/ Released" Will not in our scope
We need to take care about the Status
61
Ready for longer time
Active for the longer time.
BTC logs are deleted by scheduling RSBTCDEL which deletes the log files from TBTC* based on the
time interval in the Variant SA38.
UPDATE PROCESS
It is used to update the database from Temporary tables. There are three 3 Types of updates
Technically for every 5 dialogue work process there should be one update of type V1/ V2
Update Flow:
And gets a transaction ID from Number Range Buffer (Transaction SNRO and Table NRIV Number
Range Interval Table)
SNRO
NRIV
Eg: