Tips Tricks and Techniques For Optimal Use of Process Chains
Tips Tricks and Techniques For Optimal Use of Process Chains
Tips Tricks and Techniques For Optimal Use of Process Chains
Tips, Tricks and Techniques for Optimal Use of Process Chains Jeevan K Ravindran
BI Solution Architect, TekLink Intl.
Comprehensive look at tips, tricks and best practices Understand new features available in BI 7.0 System performance optimization options Process chain monitoring tools Custom techniques and methods
7/22/2008 - Slide # 2
Process Chain Basics and beyond New features in BI 7.0 System performance optimization options Monitoring and analysis of Process Chains Utilities and custom techniques Summary & Wrap-up
7/22/2008 - Slide # 3
Process type generally corresponds to a BW activity Examples of Process types are Load data, Activate ODS etc.
7/22/2008 - Slide # 4
An instance of a process type Contains specific values / parameters to execute a process type (step)
Details
Scheduling time
System creates a batch job named BI_PROCESS_<PROCESS TYPEs name>
The job listens to a preceding steps event (except for Start variant) The batch job uses the program RSPROCESS Process chain name, variant, wait time etc are passed to the program
7/22/2008 - Slide # 5
7/22/2008 - Slide # 6
Process Chain Basics and beyond New features in BI 7.0 System performance optimization options Monitoring and analysis of Process Chains Utilities and custom techniques Summary & Wrap-up
7/22/2008 - Slide # 7
(*)
(*)
Deletion of Requests from the Change Log (*) Execute Planning Sequence Switch Realtime InfoCube to Plan Mode / Load Mode Close Request of Real-Time InfoPackage Interrupt process Trigger Event Data Change (*) Archive Data from an InfoProvider Check process chain is already active (*) Data Transfer Process
In Tcode RSPC, for a process chain, select the menu option: Process Chain -> Attributes -> Process Status Evaluation.
7/22/2008 - Slide # 9
1) Using a custom ABAP program to schedule the process chain (PC) execution.
The custom ABAP program will check the execution status of the PC If the PC is not running, the ABAP program will start the process chain
7/22/2008 - Slide # 10
Step 1) Drag the process type Is the Previous run in the chain still active? into the Design window Step 2) When you connect this process type to the next step, the following pop-up appears.
Step 3) Select the line Inactive (value 1) as show in the below figure, and then press the Green check mark button.
7/22/2008 - Slide # 11
Step 5) Connect the process type Is the Previous run in the chain still active? to the process type created in Step 4.
This time, select the option Active (value 2). And press green check box.
7/22/2008 - Slide # 12
While scheduling BEx broadcaster setting, select the option Execute with Data change in the InfoProvider.
Step 1: Include the process type as a step after data load. See below figure.
7/22/2008 - Slide # 13
If you schedule many broadcast settings based on the data change, it can affect your system performance.
GOTCHA!
7/22/2008 - Slide # 14
Process Chain Basics and beyond New features in BI 7.0 System performance optimization options Monitoring and analysis of Process Chains Utilities and custom techniques Summary & Wrap-up
7/22/2008 - Slide # 15
Initial Fill of New Aggregates / Roll Up of Filled Aggregates Initial Activation and Filling of BIA Indexes / Roll Up of BIA Indexes Compression Construct Database Statistics Archive Data from InfoProvider Delete / Generate indexes Deletion of Requests from the Change Log (*) Deletion of Requests from PSA
Miscellaneous
7/22/2008 - Slide # 16
Requests that have incomplete quality status and that have not been updated into a data target .
7/22/2008 - Slide # 17
Establish log retention policy (For example, 90 Days). Use TCode SE38 to run the program
Time period is specified here If marked, logs of erroneous batch jobs will not be deleted.
The log deletion program deactivates some steps of the process chain it touches.
GOTCHA!
7/22/2008 - Slide # 18
Process Chain Basics and beyond New features in BI 7.0 System performance optimization options Monitoring and analysis of Process Chains Utilities and custom techniques Summary & Wrap-up
7/22/2008 - Slide # 19
Transaction - RSPC
Display process chain logs
Transaction
- RSPC1
Transaction - RSPC2 (*) Transaction - BWCCMS (*) Transaction - ST13 (*) BI Statistics reports
Status of execution
Link to log
7/22/2008 - Slide # 21
Jobs from different process chains (PC) have the same name
For example, BI_PROCESS_ABAP could be from PC #1 or PC #10 or PC #14
To narrow down selection to only process chain related jobs, populate the fields in the section Contents of Program Variant.
7/22/2008 - Slide # 22
RSM37 cont
A sample output from RSM37 is shown below
Process Chain Name Job Name Process Type Variant Name
7/22/2008 - Slide # 23
BWCCMS
BWCCMS functions similar to transaction RSPCM.
Can be used to identify overall process chain errors (status) just by looking at the node Process chains.
7/22/2008 - Slide # 24
7/22/2008 - Slide # 25
ST13 (cont)
Step 4: Enter selection values, and hit execute button. Step 5: The next screen shows process chain executions
Link to PC log PC Runtime value
Step 4 Step 5
7/22/2008 - Slide # 26
Process Chain Basics and beyond New features in BI 7.0 System performance optimization options Monitoring and analysis of Process Chains Utilities and Custom techniques Summary & Wrap-up
7/22/2008 - Slide # 27
How to debug a process chain? How to stop a running process chain? How to identify chains that use a particular Process Type? How can we incorporate decision branches in a Chain? Custom method to schedule process chains. Custom method to identify errors in process chains.
7/22/2008 - Slide # 28
Step 3: Enter a wait time greater than 0 seconds. And then, activate the Process Chain.
7/22/2008 - Slide # 29
7/22/2008 - Slide # 30
Accept Process Chain as a Select-Option variable. Call the function module for selected chain(s) The parameter I_KILL = X will terminate data loading processes.
Alternate option
Using TCode RSPC, select the process chain. Switch to change mode. Go to menu Execution. Then select Remove from schedule.
7/22/2008 - Slide # 31
The subsequent screen will show the process chains that use this process type.
7/22/2008 - Slide # 32
7/22/2008 - Slide # 33
While trying to connect the Decision variant to the subsequent step, the a pop-up appears as shown in Fig 2.
Fig 1 Fig 2
Final
Fig 3
7/22/2008 - Slide # 34
Inclusion Days
In the Drive program, Create a variant (with event name and dependencies) for each process chain
Schedule
Step 1 - Identifies the process chains that the system has not yet analyzed Step 2 Check process chains execution status Step 3 For those chains in error status, perform further checks
Analyze the status given in the process chains log. Analyze the status of the job spawned from the process chains step. If the process type has any interface, the watchdog program must
For more details, please refer to the March 2008 BI/BW Expert article titled Uncover Process Chain Execution Errors When SAP
NetWeaver BI Fails To Notify You. By Jeevan Ravindran, TekLink
International. Download the source code from the website - www.bwexpertonline.com
7/22/2008 - Slide # 36
This provides flexibility to schedule process chains with the help of a driver ABAP program
7/22/2008 - Slide # 37
Q&A
Questions?
How to contact me? Jeevan Kumar Ravindran TekLink Intl Inc. , www.tli-usa.com Cell:609-468-6279 Email: [email protected]
7/22/2008 - Slide # 38
Copyright
2008 TekLink International Inc.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of TekLink International or the author of this presentation. The information contained herein may be changed without prior notice. This document is provided without a warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. TekLink shall have no liability for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. This limitation shall not apply in cases of intent or gross negligence. The statutory liability for personal injury and defective products is not affected. TekLink has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third-party Web pages nor provide any warranty whatsoever relating to third-party Web pages SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, Duet, Business ByDesign, ByDesign, PartnerEdge and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned and associated logos displayed are the trademarks of their respective companies. Data contained in this document serves informational purposes only.
7/22/2008 - Slide # 39