!--a11y-->
Characteristics for Data
Providers 
You can use this JavaScript function to determine which characteristics belong to a data provider. By doing this, you can then, for example, fill a dropdown box for changing drilldowns with the relevant characteristics and do not have to create a dropdown box manually for each data provider.
Moreover, this function is language-independent, which means the selections are adjusted automatically for each language. The texts are shown according to the logon language.
|
JavaScript Function |
SAPBWGetDataProviderDimensions |
|
Parameter |
Description |
|
Name |
Logical name of the saved query view |
|
Return value |
Array of characteristics and structures of the data provider The individual characteristics and structures are stored as arrays, as in the example: new Array(dimArray1, dimArray2, ...) The individual characteristics and structures have the following structure: new Array(iobjnm,is_structure ( ,X),hierarchyAssigned( ,X), activeHierarchy( ,X), axis (X,Y, ), filtered ( ,1 (single value), X(multiple filter values)), caption, unsupported properties) There are other properties in addition to those listed, but these have not yet been officially released. |

Listing characteristics and structures:
<SCRIPT language="JavaScript">
<!--
var dim = SAPBWGetDataProviderDimensions("myDataProvider");
var text = "";
if (dim != null){
for(i=0;i<dim.length;i++){
text = text + dim[i][6] + ", ";
}
alert(text);
}
--->
</SCRIPT>