Quantcast
Channel: SCN : All Content - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5457

OpenMemberSelector opens too complex member selector

$
0
0

Our BW system is on version BPC 10.0

 

 

In the VBA of some of our input schedules we have a function after_workbook_open in which we open a member selector when the workbook is opened, in order to induce that the user selects a member from a certain dimension.

 

In the example below, we used the environmentshell/planning; FPMXLClient is activated for the VBA.

 

 

Function AFTER_WORKBOOK_OPEN()

 

      Run "MemLook"

 

AFTER_WORKBOOK_OPEN = True

 

End Function

 

   

Sub MemLook()

 

Dim EPM As New FPMXLClient.EPMAddInAutomation

Dim BV As String

 

BV =
EPM.OpenMemberSelector(EPM.GetActiveConnection(ActiveSheet),
"ACCOUNT", EPM.GetContextMember(EPM.GetActiveConnection(ActiveSheet),
"ACCOUNT"))

 

If InStr(1, BV, ";") > 1 Then

EPM.SetContextMember
EPM.GetActiveConnection(ActiveSheet), "ACCOUNT", Left(BV, InStr(1,BV, ";") - 1)

     Else

EPM.SetContextMember
EPM.GetActiveConnection(ActiveSheet), "ACCOUNT", BV

 

End If

     EPM.ExpandActiveSheet
     EPM.RefreshActiveSheet

 

 

End Sub

 

 

 

However, the member selector which is opening is different from the member selector which the user opens in the EPM-context bar.

 

The first one is a more complex one in which the user needs to check a box next to the appropriate member, and then click the "right" arrow to move it to the selection list.

 

Is it possible via VBA to open the more simple member selector? Using another method or another class for example?

 

Thanks in advance for your valuable advise.


Viewing all articles
Browse latest Browse all 5457

Trending Articles