Hi all,
I'm trying to change the drilldown of my query in a workbook using VBA coding, but the commands SAPBEXsetDrillState and SAPBEXgetDrillState do not work. Does anybody know something about or do you have a working example?
I have three navigation panes in cells B78:D86, E78:G88, H78:J83. My code is:
Set rgFilter = Sheets("Query").Range("E79") 'filter cell for characteristic
iResult = Run("BExAnalyzer.xla!SAPBEXgetDrillState", iState, rgFilter) 'get drilldown
If Run("BExAnalyzer.xla!SAPBEXgetDrillState_currentState") = 0 Then 'characterstic is in drilldown
iResult = Run("BExAnalyzer!SAPBEXsetDrillState", 1, rgFilter) ' Drilldown
End If
The 1st getDrillState command raises a context error (retrun value -1), but the cell is a filter cell. If I use the same cell to filter the characteristic, it works:
iResult = Run("BExAnalyzer!SAPBEXsetFilterValue", "1100", "", rgFilter)
I´m on SAP BW 7.31 SP 4, SAP GUI BI-Addon 7.30 SP 3.
Does anybody have a working setDrillState with BI-Addon 7.20 or 7.30?
Best regards
Arne