Technology Blog Posts by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
nateguttman
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,060

This blog will help you combine a Display Parameter with Filter Parameters from help.sap.com while using the SAC API URL.

Let's assume a situation where we have a financial Story that needs to be viewed by each manager in a department. In this financial Story, we have multiple pages providing different levels of detail. Our task, is to create a URL that opens page 4 and applies a filter on the Manager dimension in our financial Story. So that, managers get an instant view of their financial data on the page they prefer in as few clicks as possible. This can save users time by automatically opening a page and setting a Story filter. It can also decrease additional overhead of developing and maintaining different Stories that provide similar views for each manager.  

I will use the example Unencoded Example URLs for filters on one model found in the help.sap.com Filter Parameters page. This URL filters on two members: "SM1", "SM2" in the Manager dimension. Below is what we can start with:

https://<TENANT>/sap/fpa/ui/tenants/<TENANT_ID>/bo/story/<STORY_ID>?f01Model=view:[_SYS_BIC][t.TEST][Employees]&f01Dim=Manager&f01Val=["SM1","SM2"]

To add the Display Parameter to this URL, you can add the page number (or ID) after the Story ID in your URL, then follow with the Filter Parameters. The page parameter can look like this: 

 /?page=4

The updated URL for our example is below, the added page Display Parameter is in bold:

https://<TENANT>/sap/fpa/ui/tenants/<TENANT_ID>/bo/story/<STORY_ID>/?page=4?f01Model=view:[_SYS_BIC][t.TEST][Employees]&f01Dim=Manager&f01Val=["SM1","SM2"]

I used a page number to simply explain this example. It is best practice to use the page ID. 

I wanted to share so that you can quickly combine Display Parameters with Filter Parameters. Please always refer to the help.sap.com site for the most up to date guidance when using the SAC URL API. 

2 Comments