cancel
Showing results for 
Search instead for 
Did you mean: 

SAC - Passing URL Variable Parameters to more than one model in a SAC Story

mario_11
Explorer
0 Kudos
1,386

Hi Everyone,

We are trying to run a story through URL parameters. There are 2 models in the story which are based BW live connectivity (BW Queries). I am trying to pass Fiscal year and Posting period through URL. Technical name of Fiscal year and posting period variables are same in both BW Queries. Variables are already linked in the story.

With one model the URL parameters works. What is the syntax to make it work with multiple models `?

I have tried with this link and it does not work :

https://mytenant.cloud.sap/sap/fpa/ui/app.html#/story&/s/F8800F8163EB373BC389116CF92A7171/?v01Model=view:[_SYS_BIC][t.2][C66px4qv3qxpjlocn4m2lr6xvk]&v01Par=ZFISCYEAR&v01Val=%5B%222021%22%5D&v02Par=ZFISCPER3&v02Val=%5B%228%22%5D,v02Model=view:[_SYS_BIC][t.2][C14s1lxbi6fyd2ywmdgk9shds]&v03Par=ZFISCYEAR&v03Val=%5B%222021%22%5D&v04Par=ZFISCPER3&v04Val=%5B%228%22%5D

From the below SAP documentation , I believe we can run it for multiple models:

https://help.sap.com/viewer/a4406994704e4af5a8559a640b496468/release/en-US/3fa25603111049fba11eb898c...

BR,

A Singh

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member745988
Discoverer
0 Kudos

Hi,

Understood. We had the same problem ... we openned a ticket to SAP but we have not received any answer yet.

Sorry.

Iñigo

hibb
Discoverer
0 Kudos

Hi,

did you get the answer from SAP?

I am sufferring from the same issue, so I just wonder whether you've got the solution or not.

If you've got the solution, is it possible to share the solution?

If it is possible, I would really appreciate it!💕

ziecar
Newcomer
0 Kudos
Hey did you get an answer in the meantime?
former_member745988
Discoverer
0 Kudos

Hello,

If I am not wrong and I understand what you said, you need to use the functionality of linking variables in the story:

1. Open the story in edit mode and click on "link variables"

2. Choose the models you want to link

3. Link the matching variables of both models (in your example: Fiscal Year, etc.)

4. Next time you open the story if you enter a Fiscal Year, the value will apply to both models.

mario_11
Explorer
0 Kudos

Hi Iñigo,

Linking of variables was already done . But when you try to run the story through URL parameters i.e. when you try to pass prompt values through URL it does not get passed to all models even though the variables are linked.

That is why in URL , we need to specify each model and its variables .

And for that i am looking for the syntax.

Hope my topic is clear now.

BR,

A Singh