on 04-23-2013 10:45 AM
Hi gurus,
I want to set variable values in my workbook and refresh it using VBA. I am using this code:
Sub LoadData()
Sheets("Apkrovimai").Select
Run "BExAnalyzer.xla!SAPBEXsetVariables", Range("valRange")
Run "BExAnalyzer.xla!SAPBEXrefresh", True
End Sub
valRange range stucture:
ZCOMP_CODE_AUTH | 4600 |
ZSVM_FISCPER_EX | 003.2012 |
I tried this structure too:
ZCOMP_CODE_AUTH | 1 | 4600 |
ZSVM_FISCPER_EX | 1 | 003.2012 |
Problem: Code just don't work no error no nothing.
Details: I tried debugging it:
Run "BExAnalyzer.xla!SAPBEXsetVariables", Range("valRange")
goes to
Function SAPBEXsetVariables(varValues As Range) As Integer
Call pAddin.SetVariables(varValues.Value2, varValues.Application.ActiveWorkbook.Name)
End Function
and varValues.Value2 is with values:
But this gives me no clue why variables is not set.
Can someone help me with this problem?
Thanks in advance.
Values should be place on one line.
No need for header.
Structure can be found in CustomXML part of the Excel file in under Excel 2010.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Question is dublicated: http://scn.sap.com/thread/3347923
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sarunas,
I am fairly new to BEX and struggling to find a solution to this same issue. Did you come up with a solution or are you using the Button workaround? I'm trying to avoid going that direction in favor of a simpler routine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.