NTT DATA Business Solutions
NTT DATA Business Solutions | March 5, 2025

Utillisation of the SAP Analytics Cloud (SAC) Excel Add-in to Read, Edit, Process and Publish Data

Read the blog by Qasim Uddin, SAP Analytics Consultant, NTT DATA Business Solutions UK, as he takes a closer look at the Utillisation of the SAP Analytics Cloud (SAC) Excel Add-in to Read, Edit, Process and Publish Data.

This blog will be showcasing the Utillisation of the SAP Analytics Cloud (SAC) Excel Add-in to Read, Edit, Process and Publish Data.

Introduction – Business Scenario:

The current business scenario is, there were existing upload templates with financial data which was used to then upload using a flat file into SAC via the standard upload feature in the SAC Model. The disadvantage with this method is that they had to repeat the mapping process each time for a new cycle of data, creating time delays. In addition, since SAC is quite sensitive it would give many rejections and errors normally caused by spacing, human error, mapping errors etc.

If you combine these templates with the use of the Excel Add-in it can prevent that and make things a lot more efficient as they can push directly from the Excel template in which they do their normal planning functions in, there are less steps involved making the process more automated. It also allows for visibility of the state of the tables without having to go into SAC itself.

 

Step 1 – Enable the SAC Add-in in Excel (If already enabled please skip to step 2)

To enable the SAC Excel Add-in, you must first open excel and go to “File” and then “Options”.

Once opened navigate to the “Customize Ribbon” option and ensure that the “Developer” is checked and press “OK”

Installing the Add-in

Open a blank workbook in Excel go to the developer tab and “Add Ins” OR to the Insert tab and “Get Add-ins”

Then navigate to the store header and search for “SAC” and the Add-in Should appear “SAP Analytics Cloud for Office” – you can now press “Add”

 

Step 2 – Adding a Table from SAP Analytics Cloud

You should now see the SAP Analytics Cloud tab on the top, click this and go to “Sign In”
Here you will need to insert the URL for your SAC tenant this could be your production or test environment.

Once inputted the URL press “Go” and you will then be prompted to login, please use your SAC credentials to login:

You are now connected to your SAC cloud tenant; this will allow you to view models in your SAC system directly from Microsoft excel. Once logged in you can then start to add tables from models which you can use to analyze your data in excel. We require a table to be introduced as a reference for our SETDATA function. Click on “Add Table”.

When you select the add table option you want to go to the directory of where your models are kept. The screenshot below shows the path to models you should be familiar with. You want to select the model you want to update the of.

For this example, we would like to push data into the “Sales_Planning” model which we have selected to bring in. You can now use this table as a live view by adding dimensions on the right panel which mimics the designer panel in SAC. However, for this demo we are just introducing this table to allow for a reference point for our template.

 

 

Step 3 – Creating the Template for SETDATA

Now that we have introduced our table, we must create a template to allow for the SETDATA formula to reference the different dimensions within our model for it to push the data. To do this we must use the correct format (TUPLE; line by line) with all dimension inputs outlined, similar to the format used for flat file uploads into a model. It is also important that when populating the cells of the dimensions you use the ID’s and not the descriptions to avoid errors – I.e for version using “Public.BUD” instead of “Budget” as shown below:

Aggregating identical lines

Once all data lines that are in, we must now consider the identical data lines. There will be examples of data lines that may have the same input fields but different values. For this it is important to aggregate those values to capture the total data. As default the SETDATA logic takes the highest value for that line and processes it. Using this information, we can introduce the excel logic below to ensure our identical lines are being aggregated.

The first column we must create is to identify identical combinations:

Formula =A4 & B4 & C4 & D4 & E4 & F4 & G4 & H4 & I4

Our second column is to aggregate the “Value” column if there are matched lines:

Formula =SUMIFS(J:J, K:K, K4)

Step 4 – Introducing the SETDATA Logic

We can now use the reference table and template created with the SETDATA logic to push the values into the model. We do this by first introducing another column which will hold our SETDATA formula. Then we use the SETDATA formula which follows the logic as shown below.

=SAP.SETDATA(“Table Name: Reference to Table where you intend to push the data – In our e.g this will be Table2”, Cell reference to the Desired Input values -in our e.g this will be the Aggregated values column- “L4”, “Name of Dimension”, cell reference, “Name of Dimension”, cell reference .. )

SETDATA Logic in the example above is as follows:

=SAP.SETDATA(“Table2”,L4, “Version”, A4, “Sales Planning Measures”, B4, “Affiliate”, C4, “Channel”, D4, “Country”, E4, “Product”,F4, “SKU”,G4, “Level”, H4, “Date”, I4)

Please Note: It is important when referencing the dimensions in the SETDATA formula to use the exact same naming convention used when setting up the model. You can use the table designer view to find the exact names of the dimensions.

Finding The Table Name

The SAC Excel Add-in by default names the tables in the order in which it was introduced, you can find the table name in the left panel when selected the cells of the table. In our case the table name is “Table2”.

 

Step 5 – Refreshing Data, Processing Data, Revert Data & Publishing Data

Refreshing Data:

Once the SETDATA function is setup we can now use the “refresh” function which will run the function and return the current values that are in the model for each line of data, this is presented by the “Value (Set Data Push)” column. This column holds the SETDATA formula and is populated by the current data in the model.

Process Data:
From our example the “Value (Set Data Push)” column displays the current value in the model. Whereas the “Value” column is the new value we wish to push. The “Process Data” function will be enabled when it notices changes in the “Value” column to allow you to push these new values through. When you run the “Process Data” function This will push the “Value” column to the “Value (Set Data Push)” column whilst also taking into consideration the aggregation of identical lines.

Once clicked the “process data” function it will run and update the model with the new data. However, these values will not be persisted in the model until “Publish Data” is selected.

Publishing Data:

As shown above after running the “Process Data” we see the values now updated in Column M. We can also see the “Process Data” function is now grey whereas the “Publish Data” function is now available. To persist the data, you must run the publish data else the data changes will not be saved to the SAC model.

Revert Data:

If for some reason you are not satisfied with the data changes you may use the “revert data” option to go back to the last published state. Example shown below

 

Step 6 – Monitoring Data Changes

There is not an upload log that is generated like when you upload a flat file. However, if you wish to monitor the data changes made you can always navigate to the “Data changes” screen in SAC as shown. This will give you a similar view to the template created to track the data changes by line and you can also filter the changes here. Please note tracking data changes must be enabled in the model configuration first in order to view this screen.

Points to Note:

When you use the “refresh” option on the excel sheet it re-runs the function, but values only get pushed when you select “process Data”.

“Datacell not input enabled” Error
– This error is due to the dimension being in a flat hierarchy. The Excel Add-in cannot write to un-booked cells if there is a flat hierarchy present therefore, we must enable a hierarchy or alternatively create a second hierarchy that mimics a flat hierarchy to write data to these cells.

Best Practice:

– Always select the “refresh” option when switching on another tab to get latest values.

Conclusion

Ultimately using the SAC excel add-in set data function allowed for greater efficiency compared to using the upload method due to their being less screens and clicks involved to update the data within the model. It also reduces the amount of human error when putting in entries in the upload file as the templates generates the IDs for each dimension which are then directly pushed into SAC using the “process data” function. There are a few drawbacks which may improve overtime. One of them being that when there are significant number of data lines, then the system may take longer to process the data (e.g 300 lines vs 3000 lines). These are influenced by various factors such as your internet connection, Memory (RAM) on your PC since its both excel and cloud driven. I believe it’s a great functionality heading in the right direction which could use some tweaks to improve the time taken to carry out pushes.