Tuesday 5 November 2019

How to Optimize BPC Model in SAP BPC 11, version for SAP BW/4HANA

In this blog, I will briefly describe you how to create a data manager package to achieve this. In the end, user could trigger this package no different to what he can do in older BPC release.

1. Create a BW Process Chain for BPC Model


a) Goto tcode RSPC in SAPGui, and create a new Process Chain.

b) Create a step with process type ADSOREM

In process type navigation pane, find ‘Clean up Old Requests in DataStore Objects(advanced)’ (tech name ADSOREM)

SAP BW/4HANA, SAP HANA Tutorial and Material, SAP HANA Study Materials, SAP HANA Online Guide, SAP HANA Online Exam

i.  Create new variant for this step

ii. Input/select the tech name of the aDSO (of the BPC model) in first column ‘DSO(advanced)’

iii. Select ‘Activate Requests’ for column ‘Clean-up action’

iv. Input number of requests you want to left for compress( Select All but the X latest request) in column ‘Reqs’, optionally you can also input the days in next column as ‘Select all requests older than X days). In my example, I input 0 to clean-up(compress) all requests.

SAP BW/4HANA, SAP HANA Tutorial and Material, SAP HANA Study Materials, SAP HANA Online Guide, SAP HANA Online Exam

 c) Create two steps with switch mode of aDSO

It’s only possible to run clean-up when aDSO in load mode, so we have to switch aDSO to load mode first and then switch it back to Plan mode after execution.

In process type navigation pane, find ‘Switch DataStore Object (advanced) to Load Mode’  and ‘Switch DataStore Object (advanced) to Plan Mode’, and create two steps with them. Please input the same aDSO tech name you used in step b).

SAP BW/4HANA, SAP HANA Tutorial and Material, SAP HANA Study Materials, SAP HANA Online Guide, SAP HANA Online Exam

d) Create a Start process

In process type navigation pane, find ‘Start Process’ and create a step with it.

SAP BW/4HANA, SAP HANA Tutorial and Material, SAP HANA Study Materials, SAP HANA Online Guide, SAP HANA Online Exam

e) Define dependency between steps

SAP BW/4HANA, SAP HANA Tutorial and Material, SAP HANA Study Materials, SAP HANA Online Guide, SAP HANA Online Exam

Now you should have four steps in the process chain, we need to define dependency with it.

We start with ‘Start’ step, right click it and select ‘Connect to’ -> ‘Switch to Load Mode’; then you link ‘Switch Load Mode’ to ‘Clean Up DSO Request’ then to ‘Switch to Plan Mode’ in the same manner.

Please note that you when link to ‘Switch to Plan Mode’ please make sure that you select the third option ‘always’ as you need to switch back to plan mode no matter the previous step succeeded or not.

SAP BW/4HANA, SAP HANA Tutorial and Material, SAP HANA Study Materials, SAP HANA Online Guide, SAP HANA Online Exam

When it’s done, you should have something similar like this in network view. (Too see network view, go menu Setting -> Network display)

SAP BW/4HANA, SAP HANA Tutorial and Material, SAP HANA Study Materials, SAP HANA Online Guide, SAP HANA Online Exam
f) Check and Activate

2. Create a BPC Data Manager Package to trigger BW Process Chain


Now it’s time to create a Data Manager Package in EPM plug-in to let end user to trigger this process chain when needed.

a) Log-in EPM plug-in to the BPC model and go to Data Manager Ribbon

b) Go to ‘Organize Package List’ and add a new package

c) Select process chain ‘/CPMB/TRIGGER_BW_CHAIN’, this chain is delivered by BPC to trigger any BW process chain.


SAP BW/4HANA, SAP HANA Tutorial and Material, SAP HANA Study Materials, SAP HANA Online Guide, SAP HANA Online Exam

d) Modify Script if you don’t want end user to select the BW process chain (created in previous step)

i.  Select ‘PROMPT’ on left and de-select the checkbox of column ‘Activate’. This is will hide the prompt for BW process chain name input.

SAP BW/4HANA, SAP HANA Tutorial and Material, SAP HANA Study Materials, SAP HANA Online Guide, SAP HANA Online Exam

ii. Select ‘TASK’ on the left and input the name of created BW process chain in step 1 into column ‘Value’.

SAP BW/4HANA, SAP HANA Tutorial and Material, SAP HANA Study Materials, SAP HANA Online Guide, SAP HANA Online Exam

iii. Save to leave this popup.

e) Give a name/description and save this new package.

3. Execute Data Manager Package


Run this package from Data Manager, once status is showing ‘Succeeded’, we can go and check the backend.

Goto BW Modeling Tool (Eclipse), find aDSO of BPC Model and select ‘Manage aDSO’ from the toolbar.  There you can see that all the requests are activated.

SAP BW/4HANA, SAP HANA Tutorial and Material, SAP HANA Study Materials, SAP HANA Online Guide, SAP HANA Online Exam

NOTE:

◒ You need to create a process chain for each model you want to compress.

◒ Process type ADSOREM today can only compress records (per key combination), zero elimination is still NOT possible at the moment.

◒ Above BW process chain is just a simple(basic) example, in your real use case, you can add other process types to fulfil your user requirement in one execution.

No comments:

Post a Comment