Quantcast
Channel: SCN : Discussion List - SAP Business Explorer (SAP BEx)
Viewing all articles
Browse latest Browse all 4032

SAPBEXsetVariables range

$
0
0

Hello BExperts,

 

What format/structure does the SAPBEXsetVariables API function expect for its input range? I have been struggling for several days now to figure this out. The description of the API function is below.

 

Function SAPBEXsetVariables(varValues As Range) As Integer 

Set variable Values for User to provide Pop-Up Filter selections (Filter dialogs will be disabled if properly filled)

 

The code I have written attempts to open a workbook, set the values of two variables that it normally would prompt the user for, and refreshes the workbook.

 

Sub TestMacro()    Dim varValues As Range    Set varValues = Worksheets("Test").Range("A6:F7")    Run "SAPBEXreadWorkbook", "W4FSAZJXZ341W13I569KJ28RX"    Run "SAPBEXsetVariables", varValues    Run "SAPBEXrefresh", True
End Sub 

 

The workbook opens and refreshes just fine, but always prompts me for the variable values.  The workbook only contains one query. Searching the Internet reveals that several others have had this problem but I cannot find a solution.

 

It appears that with BI 3.x one could simply overwrite variables values in the hidden "SABBEXqueries" sheet. But it seems that sheet no longer exists for BI 7. Function SAPBEXdebugPrint does not seem to be available for BI 7 either so I cannot see the C_T_VARIABLES structure that some recommend looking at.

 

The last post in the following thread appears to reveal the structure of the range that SAPBEXsetVariables expects, but did not work for me. BEx still asks me for the values of the two variables.

http://forums.sdn.sap.com/thread.jspa?threadID=276850&tstart=0

 

Any help would be appreciated!

 

Edited by: alfredough on Dec 29, 2011 5:48 AM


Viewing all articles
Browse latest Browse all 4032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>