Académique Documents
Professionnel Documents
Culture Documents
Revision History
Date of this revision:
Revision Summary of Changes Author Changes
Date Marked
18/12/15 Document Created Javaid Awan No
Approvals
This document requires the following approvals:
Name Title Method of signoff Date of Version
Approval
BI Services Manager
Distribution
This document has been distributed to:
Name Title Date of Version
Issue
BW Operations Handbook
The purpose of this document is to provide housekeeping and monitoring tasks for BW (Business
Warehouse) appliance. It is a critical appliance in the Analytics landscape as all design, build and data
loading for reporting is executed within BW. This document is not a training guide on BW, an appendix
has been included to highlight key terms and references in the BW architecture.
This documentation provides a starting point for Project, BAU Support and BI Administrators to
familiarise themselves with the procedures for the optimal operation and use of SAP NetWeaver BW
Business Warehouse. It contains specific information for various housekeeping tasks, and lists the tools
that you can use to perform them. It also refers to documentation required for these tasks.
In this documentation, it is assumed that the system or systems are running, or could at least be started
once. This documentation therefore contains no information about installation. Configuration tasks are
only described if they also occur during running operations.
Technical maintenance and management of BW resides completely within the Data Centre. Even
though BW technical infrastructure is managed by T-Systems, certain tasks must be carried out by the
relevant BAU service organisation or in conjuctions with T-systems depending on the RACI.
BI
BI is a single Instance Enterprise Data Warehouse in BAT. It is based on a Layered Scalable
Architecture (LSA) and includes BWA as an accelerator to increase data availability and reporting
performance. All Info Providers are indexed in BWA and there is a step in the Process chain that will
load the data into BWA
BW Landscape
· Housekeeping starts during all phases of design and build but is managed by operations
· Housekeeping covers basis, volume management and application management (i.e PSA and
change logs)
· LSA is a framework that needs to move towards a more optimal balance within the context of
BAT actual reporting needs and volumes.
· Coding should implement best practise in a consistent way to avoid further housekeeping via
optimistion activities.
· SAP BW Application
· Reporting
· Volume Management
· System Stability
Reporting Rationalisation
As part of good housekeeping practise, it is essential that the following guidance is adopted by design,
build and operations teams.
· Review reports that are actually used by the business to make decisions rather than ones that
exist
· Reviw global key figures, rows and colums across reports to avoid overlap
· Do not develop reports that are already available in ERP especially for formatting purposes
· Development of master data reports should be avoided for formatting purpose or data quality
purposes as these are process issues
BASIS Housekeeping
A range of basis activities need to be peformed on a regular basis (subject to BAT
internal alignment) to allow smooth functioning of the basis layer within SAP BW. The
checks should be carried out monthly as a minimum and verified as being correct
during volume testing for each and every technical and functional release.
Basis Parameters
SAP BW is installed with some default parameters during the installation process as
determined by the basis team. These parameters are stored in the profile of the
instance and need to be regularly managed to reflect the performance of the system
that may change as a result of changing usage, design, deployment of technical infra-
structure and volumes. The following parameters need to be reviewed regularly by
basis.
The above are the minimum parameters that need to be managed on a regular basis.
RFC Connection
SAP BW communicated with the ERP or SAP source systems using a remote
functional call (RFC) method on a transactional basis. The RFC connection needs to
be set to load balancing. In addition, the RFC logon group must be set to PUBLIC. The
definition for PUBLIC can be checked using transaction code SMLG.
Work process distribution should be towards dialog processes for extraction and
loading into BW. Application servers need to be dedicated to Business objects and to
ERP proceeses. In addition, the logon groups should be checked for load distribution
across application servers to ensure optimal performance via testing to determine
whether to use an available , best or weighted method (also called round robin
methods). This load distribution can be checked using transaction code SMLG.
Missing Indexes or Tables
Performance in SAP BW is managed using a consistent set of indexes and table
entries. Each time data is loaded, these are updated to ensure improved performance.
It is a mandatory that during the design and build (testing) phase, consideration is given
to process chains that control these updates. However, it is also mandatory to check
this during operations to ensure that changes are correctly reflected in the database.
These can be checked using transaction code DBACOCKPIT under the diagnotics
node.
The check should be performed daily for new deployments and root cause understood.
SAP has issued an OSS note(1820508 - Missing secondary indexes for infocubes in
transaction DB02 > Missing Tables and Indexes) to help with this. These indexes and
missing entries need to be assessed in context of BAT’s load schedule too. For
example, the indexes may just be missing temporarily during load times given the 3
hour load.
ABAP Dumps
Basis should carry out a weekly checks of ABAP dumps to ensure that all jobs initiated
by SAP BW are executing properly. Job status can be checked using transaction code
ST22. Evey job that has been cancelled or has not finished after the SLA time needs
to be investigated to allow basis parameters to be verified and redetermined.
Job Logs
Use report RSTS0024 to delete job logs that are no longer relevant for application
processing.
TemSe Logs
Use report RSPO1041 to remove spool requests as these are not automatically
removed by SAP.
Schedule this monthly. This will help to remove inconsistencies in temporary sequential
files or spool database.
Change Pointers
SAP generates change pointers for loads. These can be deleted if already processed
or have become obsolete.
Deletion of Roles & Links
Using report RSRLDREL unwanted roles and links between objects can be removed
that would otherwise be stored in cluster VRBINRELATION.
Table Logging
Ensure that unnecessary able logging is removed. This can be done using transactio
SLG2 or report SBAL_DELETE.
This report should be run monthly. If deletion is not needed, then archive these using
archive object BC_SBAL.
Load Schedule
BAT loads data on a 24/7 basis every 3 hours including all master data. Given the level
of layers and volume of data, this needs to be reviewed on a daylight basis rather than
the current approach. This activity should be considered to optimise the continued use
of system resoruces and master data refreshes.
BW Statistics
Each time an event arises for runtime objects, SAP BW records the start and end
times. These statistics are recorded for a range of events such as queries, DTPs, BWA
indexes etc. These in turn can be analysed using SAP BW technical content. Over
time, these tables grow large and take up storage. These statics are written to
RSDDSTAT* or UPC_STATISTIC*, RSDDSTAT_OLAP, RSSDDSTAT_DM,
RSDDSTATWHM, RSDDSTATDTP and RSL_STAT.
BATCH Logs
SAP BW manages all background messages and parameters using special log tables
held in table RSBATCHDATA. These are needed to control processing of BW events
and should not be held when background jobs have completed or have been
investigated for any issues. It is recommened to remove these logs to ensure table
overflow does not occur . This can be done using transaction code RSBATCH or
program RSBATCH_DEL_MSG_PARM_DTPTEMP.
A retention timeframe can be specified within a variant and executed as part of a batch schedule or
manually. The delete flag needs to be activated to remove from the database.
The technical name of the DTP can be determined from request monitoring.
A check can be made along with deletion of unused PSA content. This can be
managed using a variant within a batch job.
Process Chain Logs
Report RSPC_INSTANCE_CLEANUP can be used to clear process chain logs that
are no longer needed.
The process chain can be made retention date dependent and can be executed with
a variant.
The output is shown above. These in turn can be removed to clean up the system
using the deletion flag in the variant.
RSPC_LOG_DELETE
SAP BW Temporary Tables
Read OSS note 449891 before running this housekeeping task. Report
SAP_DROP_TMPTABLES
Security Logs
Each time the system is accessed, SAP BW creates logs to allow audit trail to take
place. Given the frequency of report execution during the month and month end, these
log tables grow. The manage authorisation logs, go to transaction code RSECADMIN
and analyse the logs before deletion.
Click on authorisation logs and specify a range of parameters to allow analysis and
deletion.
This will allow a manual deletion and display of logs. One can also use archiving objet
RSEC_CHLOG and RSECPROT to archive logs for security. This will need to be
scheduled via jobs and an archive location needs to be set up.
BW Requests
During request processing, tables RSMON* and RS*DONE are used to process the
status for administration purposes. If the request is not complete, the status of the
request is set accordingly. These statuses along with other data are stored as
administration data that grows over time to allow request queries to take place. This
takes up space in the landscape and needs to be managed. To manage this
information, use the object BWREQARCH to archive the data with transaction code
SARA or using program RSARDISP.
This will allow deletion for those tables that are linked to this object. Follow the normal
archiving principles.
Above screen show the write variant fields that need to be specified as per BAT’s
retention policy for this object.
Absence of the above will make housekeeping and optimisation more challenging
rather than routine. To check for variations, check the dataflow transformations for rule
groups, constants, start routines, end routines and the code contained therein. A strong
recommendation is to get a strong developer to check all code to ensure it is optimally
written as poor code will lead to performance issues and low reusability.
Bookmarks
You can remove entries that are no longer required from the table RSWR_DATA
using the report RSWR_BOOKMARK_DELETE (SAP Note 1419451).
Removal of traces should be run weekly. Using OSS note 1334342, implement
avoidance of traces that lead to generation of these logs.
Instance Cleanup
Use the report RSPC_INSTANCE_CLEANUP to delete old data from the table
RSPCINSTANCE
Reporting
One of the core house keeping tasks is to analyse reporting that is carried out in BW
using business objects via BW. At start of projects, it is not uncommon to meet
business demand
Essentially, BWA index generation should be minimised via reduction in the load
frequency.
Development of master data reports in SAP BW/ should be avoided as these can, in
general, be found in ERP and are of ‘format’ nature.
Lifecyle of Data
All reporting, and their dataflows, contribute to increase in the size of the database with
creation of logs, statistics, index records, partitions and number of records per object.
Change Logs
Given the numbr of standard DSOs in BAT, the change logs allow the before and after
image comparison during th load process. The volumes have built up over time with
little value to the business as this is primarily a technical requirement of design. It is
suggested that this be deleted as part of a scheduled job to ensure technical
persistency decreases within the Oracle DB. Remov change logs that are older than 1
month to manage data volumes. To do this follow the guidelines below.
· Recovery Process
The recovery of data is often sited as a reason to keep change logs. However,
the change logs only relate befor and after image in areas of transformation and
delta management within BW. Given the lifecycle of data and specific
identification of values that require recovery, it is advisded that a manual
recovery would be sufficient rather than long residence of change logs.
· DSO Type
The standard DSO is primarily used to generate change logs. Use of this object
should be limited. However, if used as part of design, lifecycle and recovery
process guideliens should be used to remove change data.
Propagation Layer
Currently, the size of this layer is 12TB. This can be removed or kept to a minimal level
for recovery of new change requests where any basic transformations take place.
Reporting Layer
Currently, the size of this layer is 2.7TB.The primary purpose of this layer is to provide
queries with data that the business needs for reporting. Most of the cubes are line item
enabled and have residenc in BWA as well. It is advised to optimis this layer as follows.
System Stability
The primary objective of housekeeping during design, build and operations is to ensure
system stability. System stability needs to be understood and reported on to allow a
sense check based on facts rather than opinions. It is recommened to measure system
stability around business criticality, system integrity and performance.
· Busines Criticality
It is strongly recommended to give priority or operations to business critical
reports and linked dataflows during at least period end or daily activities. Each
report should be given a ranking for measuring system performance and
integrity. A list of all business critical reports (top 20%) should be managed first
followed by the next 30% and then the remaining 50%.
· Performance
o Load Performance. The end to end analysis of the dataflow and the steps
within from the extractor to the final delivery point of the meta chain
needs to be measured and reported.
o Reporting Peformance. Give the wide use of BWA with Crystal reports
and Analysis for office, regular runtime statistics and root cause needs
to be reported based on business criticality.
· Integrity
o Techncial reconciliation. Here we measure the number of records match
the source system and the source layer within SAP BW as expected.
o Functional Reconcilation
§ Transactional values match the source system. These should be
carried out for business critical activities only on at least monthly
basis based on optimal selection parameters.
§ Transactional volumes match the source system. These should
be carried out for business critical dataflows
§ Master data matches the source system. Typically, main cause of
errors in reporting is caused by incorrect master data during data
migration into OLTP or transformations within SAP BW.
Use of LSA going forward should now be controlled given the change of
technology and its duplication of data.