2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne...
- 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
Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP,
ABAP, SAP Analytics Cloud, SAP HANA, and more.
Blog What are you looking for today?
Trigger Process Chain from SAC with BPC Live Connection
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.
You can read the link below for this :
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.
1. 0RSPL_START_PROCESS - Start a Process Chain
2. 0RSPL_GET_PC_LOG - Get Logs from a Process Chain
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
3. Now lets create a planning filters as shown below.
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.
Select the plan DSO now that we created before.
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.
Now go to view mode and click on the first planning trigger.
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,
Wonderful blog. Very insightful and helpful.
However, I have a query which we are facing currently.
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
Email me when someone replies
Cancel Post Your Comment
Labels In This Area
ABAP CDS Views - CDC (Change Data Capture) 2 Advanced Event Mesh 1 AI 1
Analyze Workload Data 1 BS Reclassification 1 BTP 1
Business and IT Integration 2 Business application stu 1
Business Technology Platform 1 Business Trends 1,655 Business Trends272
CAP 1 cf 1 Characteristics display 1 Classes 1 Cloud Foundry 1
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
Confluent 1 Customer COE Basics and Fundamentals 1
Customer COE Latest and Greatest 3 Customer Data Browser app 1
Data Analysis Tool 1 Data Migration 1 data transfer 1 Databricks 1
datasphere 2 Event Information 1,395 Event Information 205 Events 1 Expert 1
Expert Insights 179 Expert Insights913 General 2 Getting Started 2
Google cloud 1 Google Next'24 1 GraphQL 1 introduction 1 Kafka 1
Life at SAP 779 Life at SAP48 MDG materials 1 MDGM 1
Migrate your Data App 1 MLFlow 1 MTA 1 Network Performance Analysis 1
NodeJS 1 PDF 1 POC 1 Product Updates 4,542 Product Updates 982
Replication Flow 1 REST API 1 RisewithSAP 1 SAP AI 1 SAP BTP 1
SAP BTP Cloud Foundry 1 sap cloud alm 1
SAP Cloud Application Programming Model 2 SAP Datasphere 2
SAP Datasphere تحقيق أقصى استفادة من بيانات األعمال1 SAP MDG Data Quality Management 1
SAP MDG DQM 1 SAP s4hana cloud 1 SAP S4HANA Migration Cockpit 1
Software Evolution 1 Technical article 1 Technology Updates 6,844
Technology Updates 1,219 Workload Fluctuations 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
Chain the General Splitters in CPI iFlow
in Technology Blogs by SAP Saturday
AI-Powered Predictive Maintenance with SAP: A Step-by-Step Guide
in Technology Q&A Friday
On-Premises to Cloud SAP S/4HANA Conversion Planning and Execution – Part 1:
Migration Timeline etc.
in Technology Blogs by Members Thursday
SCC - Shadow attempts to authorize itself unintentionally with a certificate
in Technology Q&A Thursday
https://community.sap.com/t5/technology-blogs-by-sap/trigger-process-chain-from-sac-with-bpc-live-connection/ba-p/13524319 16/19
2/11/25, 3:25 AM Trigger Process Chain from SAC with BPC Live Conne... - SAP Community
Popular Blog Posts
Get Your SAP HANA Idea Incubator Badge Today!
Former Member
42564 254 1283
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
SCN Mission - SAP HANA Quiz Challenge is now retired
ThomasJenewein
Product and Topic Expert
43842 203 806
Share your #HANAStory and Win
christine_donato
Active Participant
26539 60 452
Top Kudoed Authors
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
Privacy Terms of Use
Copyright Legal Disclosure
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