Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

select specific dim member when opening a report

$
0
0

Hi,

 

I am looking for a way to select a specific element of the flow dimension when opening a report. I believe I need a macro and the on_workbook_open() function into which I then add a setcontextmember function. However I am totally unclear on what the syntax is.

 

I added a new module to my Excel sheet and tried this code

 

function on_workbook_open()
Dim connect As String
connect = api.GetActiveConnection(FORMULAR)
api.SetContextMember connect, ACCTDETAIL, S_010

 

The sheet I am using is called FORMULAR and it contains 14 individual reports, none of which uses the ACCTDETAIL dimension in row, column or page axis.

 

That just got me an error messagen when opening the file again (saved as xlsm). Can anyone help me with this one?

Thanks, Arnold


Viewing all articles
Browse latest Browse all 5414

Trending Articles



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