cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Analytics Cloud - Passing Variable Date Range to BW Live Datasource?

vitran23
Active Participant
0 Kudos

Within SAP Analytics Cloud - Analytic Application, how do you set a variable that is a range value?

Example: the BW query needs a range of 1/2022 - 3/2022, how does I set that in Analytic Application scripting.

Accepted Solutions (0)

Answers (3)

Answers (3)

norman
Explorer
0 Kudos

Thanks Dixit,

I have since found this document that I think everyone will find very helpful.

SAP Analytics Cloud – Sample Content: Generic Analysis application – URL parameter | SAP Blogs

Regards,

-Norm

norman
Explorer
0 Kudos

Hi All,

Has anyone found a solution to this question yet? This is easy to accomplish in Webi with the UserResponse function to get the BW variable(prompt), create a webi variable to parse the data, and then passing it in the opendoc formlar?

0 Kudos

Hi Norman,

Range Variable values can be give as:

Table_1.getDataSource().setVariableValue(VARIABLE,{from:"fromValueId", to: "toValueId"});

I hope this helps.

Regards

Dixit

avsalynin
Active Contributor
0 Kudos

vitran23

as i remember, we can pass []

Table_1.getDataSource().setVariableValue(VARIABLE,[value1,value2,value3]);
vitran23
Active Participant
0 Kudos

That is defining an array of single values. What I'm looking for is the proper coding to set a range value.