Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
akshaykhatri1992
Explorer
2,009

Requirement from customer:

  • Customer checks the financial values on SAC story and is ok with the KPIs.
  • Customer needs a button in SAC to send the KPIs to 3rd party system in a format different from what we have in Step 1.

 

Sample Layout of Report for 1: Format of report to validate KPI values, Accounts on rows and Period Amounts in columns.

akshaykhatri1992_0-1750139502848.png

Sample Layout of Report for 2: Format of data to be send outside of SAC using Button Script:

akshaykhatri1992_1-1750139502849.png

 

Here we will not cover Analytic Model development on SAP Datasphere end to end, below is how we take the oData request of Analytic model

akshaykhatri1992_2-1750139502852.png

 

Copy URL and adjust the URL depending on fields required and additional operators like sort, filter etc. This URL will contain the fields that need to be sent outside SAC, hence needs to be accurate.

Example:

akshaykhatri1992_3-1750139502864.png

The above URL can be shared with Cloud Integration (CPI), to be maintained in HTTP Adapter, also can be made dynamic with placeholders/filters. ( In our case w e are passing fiscal year, Period, company code etc. and the same is changed dynamically at CPI end.

Sample IFLOW from CPI ( HTTP Adapter)

akshaykhatri1992_4-1750139502868.png

 

Create a connection in SAP Analytics Cloud with CPI ( HTTP Connection ) :

This will be used to POST the data from SAC to the endpoint of CPI tenant(S).

akshaykhatri1992_5-1750139502870.png

 

Create MultiAction in SAP Analytics Cloud with API

 “Test_Multiaction” created

akshaykhatri1992_6-1750139502872.png

HTTP API Connection is selected that was created in above step.

Message body can have fixed message, also can pass Parameters as in our case.

akshaykhatri1992_7-1750139502872.png

akshaykhatri1992_8-1750139502876.png

 

Parameters can be maintained here:

akshaykhatri1992_9-1750139502879.png

 

SAC Story/Page for Execution

I am taking an example of standalone story, but this can also be added to a new page of the same story that the user is viewing( like story in Sample Layout 1 shown above ).

akshaykhatri1992_10-1750139502880.png

As it can be seen above, we are using radio button, input text fields to capture user inputs to be passed to multiaction parameters shown above.

Before we can call the multiaction in our story, we need to attach/combine "Test_Multiaction" created above it in the story. Navigate to “Outline” and use “Add Multiactions” and follow screenshot below:

akshaykhatri1992_11-1750139502881.png

akshaykhatri1992_12-1750139502884.png

Below is the SAP Analytics Cloud script sample to set the parameters of Multiaction and also to call/execute the same. This will post the message to CPI

akshaykhatri1992_13-1750139502887.png

On successful execution, we get the message as below:

akshaykhatri1992_14-1750139502888.png

 

Monitor Job (MultiAction):

We can also monitor the status of runs/jobs for the created multiAction to check history and failure details.

Goto “Job Monitor - Multiactions”

akshaykhatri1992_15-1750139502890.png

 

akshaykhatri1992_16-1750139502893.png

 

 

3 Comments
paddyw
Participant
0 Kudos

Hi @akshaykhatri1992 , nice blog. Could you please let me know how you consume oData (which exposed from datapshere analytical model) in SAC? Thank you

rohit_chowdhury17
Participant
0 Kudos

@akshaykhatri1992 - Nice blog 

PramodMete
Newcomer
0 Kudos

@akshaykhatri1992 Excellent Blog 👌🏻👌🏻