Trigger Process Chain From SAC With BPC Live
Trigger Process Chain From SAC With BPC Live
- SAP Community
m
m
Products and Technology Groups Partners Topics Events What's New Get Started
u
ni
t
y
SAP Community Products and Technology Technology Technology Blogs by SAP
Trigger Process Chain from SAC with BPC Live Conne...
1
mansi_dandavate
Product and Topic Expert
Subscribe
2022 Sep 22 6:15 AM
2 Kudos 3,517
SAP Managed Tags: SAP Analytics Cloud, SAP Analytics Cloud for planning,
BW Planning
We built a planning application in SAP Analytics Cloud using SAP BPC Live Connection.
The requirement was for the users to be able to load the actuals data in the BPC System
from the application and also get a real time status whether the data load got completed.
Since we have the Planning trigger in SAC Stories, we thought we could use that to
trigger a process chain in the backend system. There is a very good blog related to this
issue which we followed where we build a planning function using fox formula. Inside the
fox formula you can call the function module to trigger the process chain.
https://blogs.sap.com/2015/07/08/how-to-trigger-a-process-chain-using-a-planning-
function-in-sap-des...
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 1/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
However with the above approach since we are going to trigger the planning sequence
from SAC, we couldn't find any way to send back messages to SAC about the process
chain status. It was becoming difficult for the users to check the latest status of the data
load in SAC.
So while trying to search a better approach we realized that there are two standard
planning function types provided by SAP for this purpose.
As shown below you can find the planning function types in BI Content under Function
Type for Planning. When you use these for the first time, you need to activate them from
the BI Content.
Once activated the Planning Function types are ready for use.
Now lets look at the step by step process to create the Planning sequence to trigger a
process chain.
1. Since our planning function will have to based on an Aggregation Level, we need a
Plan DSO and a Aggregation level as the first step. Create DSO and Aggregation
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 2/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
level as shown below. You can create a Custom InfoObject to store Process Chain
ID. The DSO is of type Direct Update, Planning enabled.
2. The next step is to create planning function on this aggregation level that we created.
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 3/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
Enter the Name of the Process chain in the parameter as shown below :
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 4/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
Enter the process chain name in the Planning Filter as shown below.
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 5/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
4. Once the planning function and planning filter is created, we have to create a Planning
Sequence. Add the planning function and planning filter that we created before in the
planning sequence.
Save the planning sequence and execute it. As shown below you will see a message that
the Planning sequence executed without errors.
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 6/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
Go to RSPC and check the logs for the process chain to see if it got executed. As shown
our process chain got executed below :
Now create another planning function and planning sequence to check the process chain
logs.
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 7/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
5. To use this planning sequence in SAC, we will need a Model in SAC. So lets go to BPC
Environment and create a model. You first need to create an environment for your project
if you dont already have it, and then create the model.
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 8/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
6. Now lets go to SAC and create a BPC Model from the BPC Live Connection. Create a
sample query on the aggregation level as shown below and you can use that in the SAC
Model. See below :
As shown below create a SAC Model from BPC Live Connection. In BPC Environment
select the environment and the BPC model we created in previous step and then select
the BW Query and click on ok and save the model.
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 9/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
7. Now create a blank story and add Planning Trigger Object as shown below.
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 10/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
Add a planning trigger in the story and select BPC Planning Sequence Trigger. Here
select the model that we created in the previous step.
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 11/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
As shown above my planning trigger is added to the SAC Story. I added one more trigger
for the planning sequence ZAGG_PC_PS1 for checking the logs.
As shown you get a message that the planning sequence is executed without errors. This
means that the process chain is executed in the backend. To check the status of the
process chain click on the second planning trigger.
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 12/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
It gives the status of the process chain as ok which means the process chain executed
successfully. If the process chain fails you can see the errors here and if the status is
active it means the process chain is running. You can click the button multiple times to
check the status of the process chain.
Labels:
Technology Updates
Add tags
Comment
2 Comments
saimukesh_9
Newcomer
2023 Apr 19 2:51 PM
0 Kudos
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 13/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
Hello Manasi,
We have a typical situation in our project. we could able to trigger the PC in BW4 after
clicking on planning sequence button in SAC. However, when multiple users are
triggering the planning sequence same time or almost same time the PC is failing. We
have included the check IF last run active process step in the Process chain but it doesn't
solve the issue. After adding the process type check if last run active the initial run is
failing and the subsequent run is becoming green. Any thoughts like, how to make the
second run wait as the first run is still active and running. Appreciate for your thoughts.
mansi_dandavate
Product and Topic Expert
2023 Apr 20 9:26 AM
0 Kudos
Hi SaiMukesh,
I am not sure of the requirement where multiple users would be required to execute the
same data load in the backend at the same time.
In our case we had a Controller and only he had access to run the planning sequence to
load data. So if other users need to refresh the data they need to let the Controller
know. May be you could look at something like that.
Otherwise you will have to write a custom code in the ABAP program where you first
check if the last run is active and if it is, you give some wait time like 30 seconds if the
chain takes that much time to load.
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 14/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
Regards,
Manasi
Comment PREVIEW
Hint: # links to products, @ links to members
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 15/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
SAP Datasphere تحقيق أقصى استفادة من بيانات األعمال1 SAP MDG Data Quality Management 1
SAP MDG DQM 1 SAP s4hana cloud 1 SAP S4HANA Migration Cockpit 1
Related Content
We are currently receiving the below error, but it happens randomly with dev
webdispatcher DW0
in Technology Q&A 12 hours ago
Former Member
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 17/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
ThomasJenewein
Product and Topic Expert
christine_donato
Active Participant
26539 60 452
MartaZet 12
kpsauer 7
sandesh_arote 7
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 18/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
Daniel_Davis 7
BorisZarske 7
ruth_groene 6
abhishekd 5
Andre_Fischer 5
schardosin 5
Raja_Gupta 5
View all
Trademark Support
Cookie Preferences
Follow
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 19/19