Quantcast
Channel: SCN : All Content - SAP Business Explorer (SAP BEx)
Viewing all articles
Browse latest Browse all 3763

Problem with SAPBEXsetDrillState

$
0
0

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


Viewing all articles
Browse latest Browse all 3763

Latest Images

Trending Articles



Latest Images

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