Beruflich Dokumente
Kultur Dokumente
What is SAPOSCOL ?
What are the functions of SAPOSCOL ?
SAPOSCOL is an operating system collector. It is a standalone program that runs in operating system background.
CPU Utilization
Usage of Physical Memory
Usage of Virtual Memory
Usage of filesytems
Usage of Physical disks
Usage of running processes
SAPOSCOL runs exactly once per host and runs independently of the sap system.
By default, SAPOSCOL collects data every 10seconds and records it. It also records the hourly average statistics for the last 24hours in
shared memory. This data will be fetched by background job SAP_COLLECTOR_FOR_PERFORMANCE and writes it to the MONI
performance database table.
Sometimes, you may face transactional rfc issues in SM58 (like connection error/SQL errors/Application error/System error
etc). In those cases, you want to delete those problematic rfc entries. So, please proceed as follows for deleting those
entries.
Login to SAP system ABAP stack and navigate to SM58 transaction as shown below. Select the display period and username as
per your requirement and execute by clicking on highlighted icon below.
For example, there are 2 transactional rfc errors (similar to below screen)
If you want to delete them permanently from the above list, you have to proceed as shown below.
Based on the above criteria, whatever rfcs that is matching will be deleted and a confirmation message similar to below will
be displayed on the status bar.
Logon Groups:
Logon groups (or work groups) are configured to dynamically distribute the load being processed by the dialog
work processes.
In many cases, SAP systems will have 2 or more sap abap instances. In these cases, logon groups can be
configured to achieve dynamic distribution of dialog users on the ABAP instances.
Setting up logon groups helps in uniform distribution of the work load across the available instances. While
logging on using a logon group, the ABAP message server is contacted to identify the instance with best performance
statistics within the selected logon group. A report runs in SAP every 5minutes which determines the load across each
server and updates in the memory area of the message server. This information will be used by SAP GUI to determine the
best instance to distribute the next user.
SPACE is the default logon group. By default, every instance of an SAP system (including central instance) is
assigned to the logon group SPACE. This performs uniform distribution of the dialog workload.
However, if you want to distribute users on some other criteria as following, you can create additional logon
groups using SMLG transaction code.
Other criteria:
Logon groups according to SAP application / module: Separate logon groups can be setup for
applications/modules such as HR, FI/CO, SD, MM etc. It means HR module users will be restricted to logon to identified
instances, similarly other module users are allowed to login to their respective identified instances. The advantages of this
method, is only the programs of the respective module are loaded into the program buffer of the particular instances of
that logon group. Due to this, program buffer requires less memory and this helps to avoid buffer displacements thus
improving system performance.
If your SAP system is operating across multiple countries or languages, in that case it is good idea to
create logon groups specific to a country or language. By this way the data and text related to specific country
or language will be loaded into the buffers of the respective instances.
This minimizes buffer displacements and improves system performance. Also less memory is required for the table
buffer.
We can setup separate logon groups for some department like sales whose work is performance critical. For that logon
groups we assign instances which operates with high level of performance (e.g: high speed processors, less users per
server, no background or update workprocesses configured or a dedicated network etc)
Some department users may take time-consuming reports in dialog mode. For these type of users, you may have to create
separate logon group and assign an sap instance where profile parameter rdisp/max_wprun_time is set to very high
In this way we can separate performance critical/resource intensive applications from others.
For direct ABAP web service requests, we can setup logon groups that the SAP Web Dispatcher can use. If logon groups
are not configured for web dispatcher, the load is distributed to all ABAP instances on which ICM is configured. Also,
based on URLs we can distribute certain group of requests to dedicated logon groups.
Asynchronous RFCs are used to process in parallel. However if the parallel processes are not limited properly, they can
occupy all the available processes which impacts dialog users and can bring down the application. So, it is good idea to
create separate logon groups for incoming RFC calls so that RFCs are kept separate from workprocesses of online users
and thus avoids impact to dialog users.
Guide lines:
If an instance hangs or temporarily got disconnected, you should be able to redistribute the users
So, you need to setup at least 2 sap instances for each logon group.
Setting up logon groups involves extra administration and monitoring. So, unnecessarily large number of logon groups
shouldnt be setup
In the above example there are 2 instances (00 and 09) in this SAP system. These are not yet assigned to any
logon group.
We can create a new logon group by clicking on highlighted create icon on the above screen. It results in below screen.
In the above screen, either select logon group from dropdown or provide its name if you are newly creating. After that
assign instance for that logon group and click on copy to save the assignment.
In this example iam creating two logon groups hr and fico and assigning instances 00 and 09 respectively. Please find
below screenshots which explains the same.
Repeat the same step and create logon group fico and assign instance 09 for it as shown above.
After doing this, you can see following logon groups in SMLG
Once you are done with logon group setup, please log off from SAP system and goto SAPGUI of the respective SAP
system.
Click on properties of the respective GUI entry and goto to connection tab as shown below.
Please select Group/Server selection option from the drop down of Connection Type as shown above and maintain
description and system id of the instance as shown above.
Now, you should be able to view the newly created logon groups as shown in below figure:
Also, please note you are able to view logon group SPACE also which gets created by default
Now, you can configure any desired logon group to the users as shown below:
For example in the above screen fico group is assigned to the end users in his GUI so that now onwards, he will login into
instance number 09 only.
ii) Select the respective row and click on delete assignment which deletes the assignment of an instance to a logon group
(highlighted in green color in below screen)
Click on delete icon above which confirms deletion of assignment
iii)If you wish to delete logon group itself, then select the respective logon group and click on delete group in the above
screen highlighted in red color (please refer screen 1 of point ii above). This deletes the logon group itself and removes all
assignments related to this group.
Goto transaction code SMLG as shown below and click on highlighted icon below to view the load distribution across
instances
Alternatively, you can view this by navigating to Goto -> Load Distribution or by pressing F5 key in the above
screen
----------------------------------------------------------------------------------
The JVM automatically takes care of allocation of memory space for java applications.
While starting sap system, the java virtual machine allocates operating system memory for each of the generations. This initially
allocated memory is termed as initial or initial size. After complete usage of initial size, the java virtual machine further
allocates memory in stages upto a maximum defined value termed as max size.
The memory space that is available is called the available memory or allocated memory. Since this space is reserved by the
operating system, it is also called as reserved space. The space that is not reserved is called as virtual memory.
The reserved space is available to the JVM. However, not all the memory is used always. It will be used based on the
requirement. The memory that is actually used by the java applications is termed as used memory. If less space is required by
the java application, the memory is returned to the operating system in stages.
The memory area of JVM is mainly divided into 3 areas as listed below
Young generation
Tenured generation
Permanent generation
The 3 memory areas Young, Tenured and Permanent differ based on the data stored in them. Each of these generations has an
initial and maximum size.
Young Generation : The objects that have been newly created by the applications are stored in the younger generation.
For younger generation, we can define initial size and maximum size with the parameters -XX:NewSize and XX:MaxNewSize
respectively
Tenured Generation: The objects that have been required for a longer period of time by an application are automatically moved
to the tenured generation
For tenured generation, we cannot directly set initial size and maximum size directly. These are calculated from the parameters
of the younger generation and the parameters Xms and Xmx.
The parameter Xms is the start heap size or initial heap size and it defines the total initial size of the young and tenured
generations.
The parameter -Xmx is the max heap size and it defines the total size of the young and tenured generations.
Permanent Generation : The objects that are permanently required by the JVM such as classes and objects are stored in the
Permanent Generation.
For permanent generation, we can define initial size and maximum size with the parameters XX:PermSize and
XX:MaxPermSize respectively
Config Tool is the only tool used to set JVM parameters in an SAP java system.
Which tools can be used to restart any java application in SAP netweaver AS Java?
-----------------------------------------------------------------------------------------------
There will be many applications in SAP Netweaver As java. These java applications can be stopped, started or restarted using NWA tool and
Visual administrator tools.
In this article, am covering the process to be followed to restart java application through NWA
Login to SAP NWA tool through java link similar to below one providing hostname, port following by nwa quick link
http://<hostname>:<port>/nwa
Example: http://testserver:50000/nwa
ii) Once logged in, you will see screen similar to below
Navigate to System Management -> Administration -> Applications as shown in below figure.
In the above screen, from the dropdown box of show, select ALL applications and in the Get dropdown box, select Application name as
shown in below screen which displays all the applications and their status.
lect the application on which you want to perform start/stop.
you select the service respective operation is highlighted. i.e. if application is currently stopped, it provides option for you to start it and
viceversa.
u would like to restart a service, first of all stop it and then start it.
How to view SAP support pack schedule?
This article answers following queries in sap
----------------------------------------------------------------------------------------------
In real time, you may wish to perform support pack upgrade for an application like ECC. In those cases, you may be interested to know,
when is the next support pack stack release for specific application, so that you can plan upgrade accordingly.
You can get SAP support pack schedule from Service Market Place(SMP).
In SMP, Go to Software Downloads tab -> SAP Software Download Center -> SAP Support package stacks -> SP Stacks
maintenance schedule
You can have complete view of the schedule by collapsing the left side window.
In the above screenshot, you can view that SAP ERP 6.0 , support pack level 23 will be released in 16th week of 2013 in Quarter 2.
Similarly SAP Netweaver 7.0, support pack level 28 will be released on 4 th week of 2013 in Quarter1
Explain the steps you follow to deploy software using SDM tool in sap ?
----------------------------------------------------------------------------------------------------
Software Deployment Manager(SDM) is the standard tool to install or deploy java components on the AS java of sap.
SDM will be present in the Java Central Instance server. To access the same you have to navigate to the following path at Os level and
run RemoteGui.sh( if it is in Unix Os) orRemoteGui.bat file (if it is windows Os)
In windows :
<Drive>:\usr\sap\<SID>\JC<inst no>\SDM\program
In Unix :
/usr/sap/<SID>/JC<inst no>/SDM/program
I f you perform any of the above steps based on your operating system, SDM GUI will open as shown below:
Figure 1:
Click on Connect button (highlighted in above picture). Then System prompts you to provide SDM password to connect to the
tool as shown below.
Figure 2:
As shown in the above figure, please note SDM connects to port 18.
i.e If instance number is 00, then the SDM port will be 50018.
Please provide SDM password and click on Login button to connect to SDM tool. Once you are successfully connected, a screen similar to
below will appear.
Figure 3:
DM Repository
Deployment
Undeployment
og Viewer
SDM Repository: This stores information about the registered SDAs (Software Deployment Archives) and SCAs (Software Component
Archives).
When deploying SDUs, the Software Deployment Manager stores the data in the SDM repository, where it then manages the installed
archives.
In the above screenshot, if you select the icon highlighted in red color, you will be able to display public substitution variables and maintain
them.
You can add or remove substitution variables by clicking on plus and minus icons present in the below screen.
Figure 4:
By clicking on the icon highlighted in blue colour in the figure3, we can display SDM repository related configuration information as shown
below.
Figure 5:
Please refer below screenshot. By clicking on the highlighted icon in SDM repository tab, we can change the SDM password
Deployment: We use the deployment tab in SDM for actually deploying new Software Deployment Units (SDUs). The SDM takes you
through selecting the components and actually deploying software in the target directory.
SDM automatically checks for dependencies while undeploying any component. If you are undeploying any component, please
make sure you undeploy all other dependant components beforehand.
Log viewer: This tab page will be used to view SDM work related log. Once you select this tab, you can view screen similar to below one
which displays all the logs related to SDM tool.
We can locate this SDM log at Operating system level also at following path:
/usr/sap/SID/<Instance_name>/SDM/program/log
Figure 9:
If you wish, you can also check other logs related to SDM by clicking on highlighted Choose other logs icon in the
above figure. This will result in following screen, where you can select the desired log file to view the content.
e 10:
Please find below table which provides the log file names and their content
SDM Modes and start/stop process
This article answers following queries :
How to remove the link between SDM and Java control framework in sap?
-------------------------------------------------------------------------------------------
SDM is used by a large number of tools like JSPM, NWDI etc in the AS Java environment for deploying software. Also, SDM is the tool
used to deploy special software packages that are received from SAP and other providers.
Software Deployment is the last step in the delivery process of software. That is the transfer of supplied software packages (SDAs, SCAs or
other j2ee archives) into the runtime environment of the SAP system.
How to start or stop SDM independent of the java engine?
Usually SDM starts/stops with Java engine. However, it is also possible to start or stop SDM independent of the java engine. Please find
below process to do the same.
Open command prompt and navigate to the usr/sap/<SID>/<Instance_name>/SDM/program directory of your J2EE engine
Execute stopserver.bat file in windows to stop SDM. Incase if Os is UNIX related, execute stopserver.sh file. This stops SDM. To verify,
whether SDM is stopped or not, it can be checked in MMC or SAP Management Console or JCMon or JSMon
Execute startserver.bat file in windows to start SDM. Incase if Os is UNIX related, execute startserver.sh file. This starts SDM. To verify,
whether SDM is started or not, it can be checked in MMC or SAP Management Console or JCMon or JSMon
Modes of SDM:
Standalone
Integrated
These modes determine whether SDM will have link to Java control framework or not.
In standalone mode, SDM will not have link to Java control framework. Please note that in standalone mode, SDM will no longer start or
stop automatically with J2EE engine.
In Integrated mode, SDM does have a link to the Java control framework.
Open command prompt and navigate to the usr/sap/<SID>/<Instance_name>/SDM/program directory of your J2EE engine.
Execute stopserver.bat file in windows to stop SDM. Incase if Os is Unix related, execute stopserver.sh file
To remove the link between SDM and the java control framework, execute the following command in the command line in respective
operating systems.
sdm jstartup mode=standalone (In windows Os)
To integrate the SDM in the java control framework, execute the following command in the command line in respective operating systems.
Execute startsterver.bat file in windows to start SDM. Incase, if Os is Unix related, execute startserver.sh file
How to remove the link between SDM and Java control framework in sap?
-------------------------------------------------------------------------------------------
SDM is used by a large number of tools like JSPM, NWDI etc in the AS Java environment for deploying software. Also, SDM is the tool
used to deploy special software packages that are received from SAP and other providers.
Software Deployment is the last step in the delivery process of software. That is the transfer of supplied software packages (SDAs, SCAs or
other j2ee archives) into the runtime environment of the SAP system.
Usually SDM starts/stops with Java engine. However, it is also possible to start or stop SDM independent of the java engine. Please find
below process to do the same.
Open command prompt and navigate to the usr/sap/<SID>/<Instance_name>/SDM/program directory of your J2EE engine
Execute stopserver.bat file in windows to stop SDM. Incase if Os is UNIX related, execute stopserver.sh file. This stops SDM. To verify,
whether SDM is stopped or not, it can be checked in MMC or SAP Management Console or JCMon or JSMon
Execute startserver.bat file in windows to start SDM. Incase if Os is UNIX related, execute startserver.sh file. This starts SDM. To verify,
whether SDM is started or not, it can be checked in MMC or SAP Management Console or JCMon or JSMon
Modes of SDM:
Standalone
Integrated
These modes determine whether SDM will have link to Java control framework or not.
In standalone mode, SDM will not have link to Java control framework. Please note that in standalone mode, SDM will no longer start or
stop automatically with J2EE engine.
In Integrated mode, SDM does have a link to the Java control framework.
Open command prompt and navigate to the usr/sap/<SID>/<Instance_name>/SDM/program directory of your J2EE engine.
Execute stopserver.bat file in windows to stop SDM. Incase if Os is Unix related, execute stopserver.sh file
To remove the link between SDM and the java control framework, execute the following command in the command line in respective
operating systems.
To integrate the SDM in the java control framework, execute the following command in the command line in respective operating systems.
Execute startsterver.bat file in windows to start SDM. Incase, if Os is Unix related, execute startserver.sh file
Explain different usage types in SAP Netweaver
This article answers following queries:
------------------------------------------------------------------------------------------
Usage types are
Structuring elements for SAP software on a technical level
Determine the intended purpose of a system
Are realized by installing and configuring a collection of software components
May required other usage types to operate
This usage type provides the ABAP foundation of SAP Netweaver. Search Engine Service (SES), which enables users to search for business
objects using Search and Classification (TREX) is part of AS ABAP usage type.
This usage type provides the Java foundation of SAP Netweaver. It consists of
J2EE 1.3 Compliant application server (for running enterprise applications)
SAP Composite Application Framework(for building and deploying composite applications)
User interface technology WebDynpro (for developing professional business applications for mobiles as well as for desktop clients)
Adobe Document Services (to provide a range of form and document creation and manipulation functions)
This usage type provides flexibility to setup core portal components while implementing a portal where full capabilities of portal (like
knowledge management , collaboration etc) are not needed.
Usage type EP provides all the portal capabilities except that are present in EPC usage type. So, inorder to install an enterprise portal with
full capabilities it is required to install both EPC and EP.
Usage type BI provides the infrastructure for SAP Netweaver scenarios like
Usage type BI Java is used to provide Java runtime for IT scenarios such as
Enterprise Reporting
Query and Analysis
Business Planning and Analytical Services
Enables variants such as Information broadcasting and adhoc query & analysis
Enables webdynpro based BI applications
Enables third party data access via Universal Data Integration
Usage type PI
consists of all core components that model, design, automate and integrate processes in one or more application systems
Integrates internal and cross company processes
Formerly termed as Exchange Infrastructure (XI)
SAP Netweaver AS is the logical result of further developing SAP application server Technology (earlier called SAP Basis), where by
special attention is paid to web applications.
SAP Netweaver offers :
A reliable, convenient and user friendly development environment
A reliable and thoroughly tested runtime environment for running ABAP and Java programs
Support for various open standards like HTTP, HTTPS, SOAP, SMTP, SSL, SSO, X.509, Unicode, HTML, WML and XML
Support for platform independence ( i.e. running on different Operating systems/databases)
High Scalability
A framework for executing complex business processes that meets highest security standards
Multi level architecture ( i.e. Presentation level, Application level and Database levels)
Support for various user interfaces like SAPGUI, Browser etc
Information Integration :
Information integration layer provides access to all structured and non-structured information of an organization/company.
For example :
SAP Netweaver Systems like Business Intelligence- BI, Enterprise Portal (Knowledge Management- KM ), and Master Data
Management(MDM) areas provide comprehensive options for uniform access to distributed information in a company.
Process Integration :
Process Integration ensures that business processes work across system borders in a landscape of heterogeneous systems. In other words, it
allows communication between different system types.
For example :
SAP XI or SAP PI system plays a crucial role and connects SAP and Non-SAP systems. It mainly uses open standards from XML and Java for
that.
Application Platform :
SAP Netweaver application server provides proven infrastructure for running business applications that are based on ABAP or Java. In
addition to runtime environment for ABAP or Java, the respective development tools are also available for you to implement your own
applications.
Mainly, Application platform supports
Open standards
Browser based access
Web services
-----------------------------------------------------------
The kernel of the SAP Web Application server supports SMTP (Simple Mail Transfer Protocol).
This protocol enables email exchange between SAP system and each SMTP mail server, without
having to use additional external components.
The SAP system sends the outbound emails to a separate mail server, whilst the mails in the
inbound direction can be received by any number of mail servers.
To use the SMTP functionality, below mentioned profile parameters are to be maintained, in the
application servers of SAP using RZ10 transaction.
In the above line protocol can be any one of SMTP, HTTP or HTTPs. For web dispatchers, there
is an additional protocol named ROUTER
For Example, this parameter may look like one of these below:
icm/server/port_0 = PROT=SMTP, PORT=3
icm/server/port_1 = PROT=HTTP, PORT=1086
icm/server/port_2 = PROT=HTTPS, PORT=1444
Optionally, we can also set TIME_OUT parameter to define maximum waiting time (in seconds) to
be applied for a mail server to respond.
This parameter icm/server/port_<*>, opens a TCP/IP port for receiving mails through the SMTP
plugin. <Port> describes the port that is to be used. If no mails are to be received in a
given SAP system, then please maintain the port number as 0.
Please find below screenshot, which gives an idea on how to maintain this parameter in RZ10
profile of SAP application server
Please make sure RZ10 parameter rdisp/start_icman is set to true as shown below. This
setting ensures that ICM(Internet Communication manager) is started so that
application server can directly process all external protocols like HTTP
is/SMTP/virt_host_<*> = <host>:<port>,<port>,...;
Example values will look as shown below:
is/SMTP/virt_host_0 = *.25010;
is/SMTP/virt_host_1 = *:25011;
This parameter defines a virtual mail host for receiving mails. If all incoming mails are to
be received and processed by one single client of the sap system, then this parameter is not
required to be set. In this scenario, is/SMTP/virt_host_0=*.* will be used by default.
If multiple clients are to be used as recipients, a virtual host to be created for each of
these clients.
<host> indicates the name of the host to which the incoming mails are addressed. If mails are
to be sent independent of the host being addressed, * can be entered.
<Port> describes the number of the port to which the incoming mails are addressed.
Please find below screenshot which helps you in understanding how to set this
parameter in sap system
In the above example, value * is set for both host and port
After maintaining these parameters, a service user to be created using SU01 transaction.
S_A.SCON profile need to be assigned to this user. This service user can be used for
processing incoming mails in every SAP system client
After this, every user who is supposed to receive emails in an sap system should require an
email id. This email id should be maintained in Email section of address tab in SU01
transaction
Goto transaction SICF and provide SAPCONNECT in the Virtual Host field as shown below and
execute
Double click on SAPconnect entry highlighted above which displays below screen
In the above screen, in the host data tab, please maintain the the sequence number of
parameter is/SMTP/virt_host_# from the profile. If you have created only one client, enter 0.
After this navigate to Logon Data tab in the above screen. It results in below
screen
In the above screen, please maintain client, language and user/password details. The user to
be maintained here is nothing but service user created by you for incoming mails.
After this, navigate to Handler list tab of the above screen, which will be
similar to below screen
Also, please note that each SMTP server must be activated after being created or
changed. To activate, please goto tcode SICF and navigate as shown below. Please note
inactive servers are grayed out
SAPCONNECT Administration using SCOT
We have to configure SAPconnect settings for every client of sap system that is used for
send process
Domain Configuration:
First of all, domain configuration to be done. To perform that, please goto SCOT
transaction and navigate as shown below ( Settings -> Default domain)
It results in below screen and system prompts you to provide your organizations domain
name. Please provide the same and click on tick mark to confirm
Once you the provide the same, please navigate to SCOT transaction again and
double click on SMTP node which was highlighted in green below in the below screen
Once you double click on SMTP, it results in below screen
In the above screen, please maintain Mail host details. After that under
Supported address types section, click on Set pushbutton, which is next to
Internet. It results in below screen
In the above screen, in the address area, which make sure your organisations domain
address details are maintained.
For example: if your company name is XYZ345. It will be like XYZ345.COM
Leave all other default settings unchanged.
Select the variant SAP&CONNECTALL by positioning the cursor on it. Choose schedule job
periodically. Select the desired interval like every 15mins. Choose create and complete the
job schedule.