Beruflich Dokumente
Kultur Dokumente
In SAP BPC 7.x EVDRE you may want to filter members according to both attribute values and/or
member selections. You can find these complex selection examples in "Usage and Considerations
of EVDRE" document like "SELF,DEP and ACCTYPE="INC",ID=Account:SalesKorea". For some of
end users it may be complicated to hardcode this selection string into EVDRE Dimension
Memberset field.
For one of our clients we decided to leverage MS Excel VBA functionality to achieve easy selection
of dimension members in an EVCVW functionality fashion. Of course you can argue we may achieve
this functionality with defining hierarchies in dimension but I personally do not like to have many
many hierarchies, and prefer flat dimension structure.
Lets start with a EVDRE(1x1) in "Sheet1" which has material dimension in row expansion. As you
can see Memberset is by default SELF,DEP.
In Sheet2 prepare a EVDRE for only ROW expansion listing Material dimension and place properties
which you want to construct hierarchy based on these properties. In BPC MS you can also use
EVLST function but since in NW version you do not have this functionality it is better to use EVDRE.
You can use default controls like combobox, listbox, checkboxes but if you want to use Treeview you
have to add Treeview control from "Additional Controls..."
From "Additional Controls" list you can add Microsoft TreeView Control, version 6.0
First command button will construct treeview from a selected region in Sheet2. VBA coding will be
similar to the below one:
Second Command Button enables user to write selected nodes into a cell seperated with commas.
Code for second button will be like this:
Now our UserForm is ready for users to call, so place a Shape object in Sheet1 and assign a macro
to this shape.
When you click on shape object you will get a hierarchical representation of Material dimension like
this
After you select dimension members and attribute nodes and click on commandbutton2 as you can
see comma seperated memberset is written to destination cell specified in code.
Now you can pass these selected values to EVDRE Memberset field. In case of no selection you
may want to use EVCVW option, so using an IF formula for checking empty selection will be
beneficial.
SAP BPC allows us to use flexibility of Excel, in this example I have tried to show a simple solution. I
hope developers may add some simple but handy functionalities in coming service packs.
You may want to examine a simple macro example without EVDRE's, download here