on 08-22-2016 3:33 AM
Hello Experts,
New to analysis office and I am having difficulty with understanding SAPGetCellInfo API Function with the property Selection.
I have got the following report
With my understanding, when i run the following code, I should get details regarding the GLAccount Dimension( Row filter) , Time Dimension (Column Filter) and Measure. Is my understanding correct or its totally wrong.
Public Sub CellInfo1()
Dim Result13 As Variant
Dim txt As String
Dim i As Long
Result13 = Application.Run("SAPGetCellInfo", ActiveCell, "SELECTION")
For i = LBound(Result13) To UBound(Result13)
txt = txt & Result13(i) & vbCrLf
Next i
MsgBox txt
End Sub
When I try to run this, I am getting subscript out of range error. Kindly correct me where I am going wrong. Your help is much appreciated.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vicky,
result (1,2) is the generated technical name of the key figure "FK Fakturier. Wert".
To be honest, what result (1,3) is, I'm not 100% sure. I assume it is the row reference. Similar to what you have as drill-down characteristics in SAPGetData:
In the previous example you found this information in Result (2) to (4).
Assume you refresh your report during the month. The value itself can change day by day, so you need a second "constant" for explicitly defining the row, related to the one specified key figure...
BR, Martin
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.