Variable for hierarchie node
Hi,
i use in my query different hierarchie nodes in columns
For example
COL A: Hierarchie Countries Node: World
COL B: Hierarchie Countries Node: Europe
in an other Query
COL A: Hierarchie Countries Node: World
COL B: Hierarchie Countries Node: Asia
So i'd like to use a variable for these nodes to enter Europe or Asia.
I've a variable for hierarchies, but when i use it i can only enter the name of the hierarchie. Here countries.
How can i enter nodes in a variable and store them in one workbook with different tables. Both tables use the same query but one with Europe and one with Asia
Thanks for help .... Markus
Markus,
Do you mean to say :
You have different hiearchies in two different queries and would like to enter only the node ? did you try using Hierarchy node variables - this should allow you to select a hierarchy node from the hierarchy attached.
or did you mean that depending on your node input the query should select the appropriate hierarchy - you can try this using a user exit not sure if it can be done in any other way.
Arun
Similar Messages
-
How to prevent BPC from automated calculating for hierarchies / nodes?
Hi experts,
I am looking for a practicable way to prevent the system from automated calculating for hierarchies, and especially for nodes within hierarchies?
Let's say, I have ENTITIES (AS A HIERACHY) in rows and ACCOUNTS in COLUMNS. Now I want the system to block adding up the values for one specific account on node XY. Instead of the sum of all base member entities, the cell for account XY should be left empty.
Is there a practicable way to deal with this?Hi Stefan,
you can prevent the system to calculate a node by editing the Formula Property in the Dimension.
You can insert 0 or null to the Formula field for the specific element.
But in this case the values from your leaf elements lying under your node wont be calculated even in higher hierarchy nodes.
For ex.: with the following structure
-A
---A1
A11
A12
---B1
B11
B12
If you set A1 to 0, the top node A will only be calculated by values of B1
Regards
Jörg -
Creation of Variable for Hierarchy Node
Greetings...fellow matez,
I am using Characteristic "0PROFIT_CTR" : PROFIT CENTER
Here, I created used SAP <b>Standard</b> variable 0N_PCTR (Profit Center/Profit Center Hierarchy)
This meets my requirement of allowing User to Input the TOP MOST Hierarchy Node basically means my Hierarchy.
Now, what I need is the ability of a User Input/Key In Variable to ask for a specific Node of my Hierarchy instead of just the <b>'main'</b> hierarchy
Let me demonstrate with an example :-
At the moment, I have a variable defined for "0PROFIT_CTR". So, I am able to choose "XXX GROUP" as my hierarchy.
Now, under this "XXX Group" I have several Sub-Nodes like XXX-Functional Groups ; XXX-Business Units; XXX-Subsidaries.
How can I create a variable which prompts for this Subnodes of my hierarchy ?Matez,
Issue remains unresolved.
What I need is a <b>Hierarchy - NODE</b> variable for my "Profit and Loss" Hierarhy
But, when I use the variable option in the 'Selecting Variable for Hierarchy' scree, I only get to choose my Hierarchy instead of my Hierarchy Node.
How can I created a variable of type Hierarchy-NODE instead of Hierarchy for my characteristic "0Account"
Kindly advice matez! -
Variable for hierarchy node using in authorization
Hi all,
I have the following problem:
When I create a variable for a hierarchy node and I use it for the authorization, I have the possibility to say, that a user can see all elements under a node.
But it should now be possible, that the user can also see the usage of this node bottom-up ( multi-level usage of this node ).
Is there a possibilty ?
Thanks
DieterHi,
I would suggest you provide more details than just "doesn't work". In addition keep in mind that this is a forum and not an official support channel. In case you need a faster response you should talk to the support team.
Ingo -
How do we create variable for hierarchy node selection
hello all,
I have to create a variable as to where the user ca input the node of hierarchy in his selection at the start. Do we have to create a new variable ?
I have the hierarchy loaded for that infoobject. I tried creating a new variable but the when I select from drop down as varaibles and name of the hierarchy no variables shows up.
ThanksHi Raj,
Please see this link:
http://help.sap.com/saphelp_nw04/helpdata/en/83/096d399bd2046fe10000000a114084/content.htm
It has complete details.
Hope this helps... -
How to do authorizations on unassigned nodes for hierarchies
Hi,
Is there a white paper from SAP that shows how to do authorizations for unassigned nodes for the hierarchies? Or has anyone completed this challenge and would be willing to share their approach and strategy?
Thanks
WillHi Ashwin,
The characteristics are 0COSTCENTER and ZDEPT. The Hierarchy structure should be
-Test Hierarchy
--Cost center 1
---Dept1
---Dept2
---Dept3
--Cost center 2
---Dept4
---Dept5
---Dept6
--Cost center 3
---Dept7
---Dept8
---Dept9
Etc.
We have transaction data where a certain Cost center doesn't have the department and when displaying the hierarchy there would be some unassigned nodes for the BW report.
What would happen if the following hierarchy is in place and I am trying to do authorizations for the 0COSTCENTER and ZDEPT:
-Test Hierarchy
--Cost center 1
---Dept1
---Dept2
---Dept3
--Cost center 2
---Dept4
---Dept5
---Dept6
--Cost center 3
Where cost center 3 has no department for it?
Thanks and regards
Will -
BPS Variable for hierarchy type User-Exit
I try to make this type of variable.
The variable is NCSTOPU, hierarchy is
NHSTOPU like
NHMAIN
-- 4
-- 401
-- 402
-- 403
-- 5
-- 501
-- 502
-- 503
So The ABAP is
FUNCTION ZCCB_AHR_VAR_HIER.
*"*"Ëîêàëüíûé èíòåðôåéñ:
*" IMPORTING
*" REFERENCE(I_TYPE) TYPE UPC_Y_VAR_TYPE
*" REFERENCE(I_AREA) TYPE UPC_Y_AREA
*" REFERENCE(I_VARIABLE) TYPE UPC_Y_VARIABLE
*" REFERENCE(IS_HIE_KEY) TYPE UPC_YS_HIE_KEY
*" EXPORTING
*" REFERENCE(ET_HIE_NODES) TYPE UPC_YT_HIESEL
DATA ZHIER type upc_ys_hiesel.
*CHANM UPC_Y_CHANM
*HIENM UPC_Y_HIENM
*HIEVER UPC_Y_HIEVER
*DATETO UPC_Y_DATETO
*NODENAME UPC_Y_NODENAME
*HIECHA UPC_Y_CHANM
*DUMMY_LEAF UPC_Y_DUMMYLEAF
*TO_CHADEP UPC_YTO_CHADEP
ZHIER-CHANM = 'NCSTOPU'.
ZHIER-HIENM = 'NHSTOPU'.
ZHIER-NODENAME = '5'.
ZHIER-HIEVER = 'A'.
ZHIER-HIECHA = '5'.
ZHIER-DUMMY_LEAF = ''.
ZHIER-DATETO = '99993112'.
INSERT ZHIER INTO TABLE ET_HIE_NODES.
ENDFUNCTION.
But it doesn't work.
The mistake is
Selected node 5 does not exist
The node 5 selected as the start value for characteristic 5 with the specified compound table does not exist in hierarchy NHSTOPU.
What is the problem?Configuration of the variable:
Variable Type - Hierarchy node,
Characteristic - NCSTOPU,
Hierarchy - NHSTOPU,
Replacement type - user-exit,
FUNCTION MODULE NAME - ZCCB_AHR_VAR_HIER.
In the planning level the characteristic NCSTOPU is set with this variable.
In the Layout 1) the characteristic NCSTOPU - Lead Column,
2) Hierarchy in the lead column - Hierarchical Data Model, BW Hierarchy -
Authorizations for Hierarchies in BW-BEx
Hello, Experts!
I am having some problems in order to give specific access for specific nodes on the hierarchy on the profiles creation. For example, we need to give permission to the profile "Profile_one" (that can be viewed on the PFCG transaction) to access only the node "Node_one" of our hierarchy ("E_ERP01" - object 0city_code) and we need to give this authorization to a range of users.
We have studied some options like the one suggested on RSSM transaction and we have already tried creating an authorization object named "ZHIER". But the problem found on this transaction is that we have to create a profile authorization for EACH user that is mentioned on the range of authorization and then we need to link it on the transaction PFCG. But the users assigned on PFCG transaction don't receive all the same profile authorization (ZHIER), only the one that was mentioned on RSSM transaction.
Could you please help us to find a way to assign specific nodes of a hierarchy to a specific range of users? We have already searched and studied some notes without success.
Many thanks for your help.
Best regards,
Isabela.If the account type keep changing every month , you must have to maintain that field out side the cube though.
I guess you can use the hierarchies (or) add the flag as an attribute to the GL account master data,then you can filter on this field in reports.
But hierarchies gives more visibility on data/navigation.
Hope this helps.
cheers
Martin -
Run a query multiple times in the same report for different nodes in Hier
Hi,
I have created a query as per my requirements. But my issue is I need to run the report for all the profit centers in a hierarchy. Right now I enter a node value of the hierarchy in the variable and I get the result. But I want to run it for each node in the hierarchy and display the result in the same report.Is it possible to do so in web using information broadcaster or any BI 7.0 tools. Has anyone done similar to this in web. I would prefer the web route rather than the excel but if excel is the only answer I will follow the excel path.
Looking forward to your suggestions on this.
Thanks,
KalHello Kal,
if the number of Profit Centers is limited, you could probably work with query views (one for each PC) and include all these into your Web Template.
If this is not appropriate, I don´t know if there is any way of programming possible.
Regards
Cornelia -
Can Universe designer recognize hierarchies (nodes) define in a dimension t
Hello,
Using BOE XI 3.1 SP3.
We have hierarchies (nodes) defined in our dimension tables.
Does the designer will recognize them? If yes, how?
Do we have to re-create these hierarchies in the custom hierarchy panel?
If the Universe designer doesnu2019t recognize these nodes defined in the dimension tables, which other SAP products will? OLAP (it will require creating aggregate fact table (cube) first, right?), Voyager?
Iu2019m looking for functionality similar to what Cognos-PowerPlay has.
Thanks.Hi,
Thanks for the interesting link.
If I understood well BO will take advantage of nodes/hierarchies defined within dimension tables only if the data resides on either a BW database or a OLAP (aggregated ) tables. If my data source (star schema or 3rd normal) is at the lowest atomic level then I have to manually defined the hierarchy via the hierarchy panel of the designer. BO designer can't take advantage of what has been already defined in a dimension table.
Thanks. -
Change the environment variables for sid adm failed
Hi Experts,
I have installed ECC HA on AIX/ORACLE
now i want to change the environment variables for the qr1adm user at the standby node
i tried to change the /home/qr1adm/.profile with command
vi /home/qr1adm/.profile it is changed and i saved this changes.
now I login with qr1adm user and i executed this command
env |more
it comes with the old values
i don't know why?
and if i oppened the .profile file i'm finding the new values
So could you please tell me how can i change the environment variable for qr1adm user
Thanks
Sherif
Edited by: Sherif Eid on Jan 23, 2008 9:08 AMThanks Sridhar ,
which hostname?
for example i have
.dbenv_R3QASsvc.csh
.sapenv_KFGKWERPR303.csh
i want to tell you that R3QASsvc is the virtual hostname
and KFGKWERPR303 is the name of the primary node A
and the phiscal host name of node B is KFGKWERPR307
so which one should i change it?
thanks
Sherif
Edited by: Sherif Eid on Jan 23, 2008 11:59 AM -
Customer Exit variable on Hierarchy Node
Hello Experts
I am in the process of creating a Customer Exit variable on a Hierarchy node. This will be populated at run time based on the value of a Characteristic variable.
The Hierarchy is activated and included in the roes of the report. I would like the end result to be exactly the same as it would if I had manually entered a variable in Hierarchy node variable
I have written exits before for Characteristic variables, however, I am unable to get this to work for Hierarchy Node variables. Please find below the code I have prepared so far. I follow the approach of creating a seperate executable program for each Customer Exit variable. This Program will be called by the Exit.
DATA: l_s_range TYPE rrrangesid.
DATA:l_s_var_range TYPE rrrangeexit.
FIELD-SYMBOLS : <fs_var_range> TYPE rrrangeexit.
IF i_step = 2.
READ TABLE i_t_var_range
ASSIGNING <fs_var_range>
WITH KEY vnam = 'ZMO_WBS_LVL2'. " Characteristic variable
IF sy-subrc = 0.
l_s_range-low = <fs_var_range>-low.
l_s_range-high = '0HIER_NODE'.*
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
endif.
endif.
I would be obliged if anyone can help me understand what is being overlooked. The Query is presently returning "No Applicable data found"
Thanks in advance
Regards
Zubin KurianHello
I have made the changes. Please refer the Code below for reference. This code will function display only those Nodes at and below the WBS element(s) that were entered into the variable ZMM_WBS_ELEMT
IF i_step = 2.
SORT i_t_var_range BY VNAM.
LOOP AT i_t_var_range ASSIGNING <fs_var_range>
WHERE
VNAM = 'ZMM_WBS_ELEMT'. " Multiple Value, & Mandatory
IF <fs_var_range> IS ASSIGNED.
CLEAR: l_s_range.
l_s_range-low = <fs_var_range>-low.
l_s_range-high = '0WBS_ELEMT'.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
ZVAR_COUNT = 1.
ENDIF.
ENDLOOP.
Edited by: Zubin Kurian on May 10, 2011 4:38 PM -
Creating custom class instances for XML nodes
Hi guys,
I'm trying to load an external XML document in my application
and create an instance of a custom class for each node in the XML
based on the value of some of their elements. The instances created
will eventually end up in a DataGrid by the way. The problem I'm
having is there seems to be many ways of doing small parts of this
and I have no idea how to make them all gel. Initially I'm using
HTTPService to load the XML file but I've seen people just use an
XML object. Then, after that, I initially set the loaded XML to an
ArrayCollection but others have used XMLList or XMLListCollection.
I've no idea what's the best way to do this.
Eventually, when I've created all of these instances by
looping over the XML and creating them how will I make them
bindable to the data grid? I'm guessing I'll have to group them
somehow...
Any help would be greatly appreciated. ThanksHey Tracy,
That is exactly what I was talking about in a previous post
you replied to
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1344350
Anyhow, Below is some code I created to do what your saying
somewhat dynamically. The idea being you can have many different
object types that you may want to populate with data from XML. In
my case I am using e4x as the result type from my web services. At
present I have about 6 different classes that call this function.
I'd love to get some opinions on the function. Good bad or
???? Any improvements etc????
package . . . .
import flash.utils.describeType;
import flash.utils.getDefinitionByName;
import flash.utils.getQualifiedClassName;
import mx.utils.ObjectUtil;
* Utility class to convert xml based Objects to class
instances.
* Takes a value object as the destination and an xmlList of
data
* Look through all the items in the value object. Note we
are using classInfo..accessor since
* our objects are bound all variables become getter /
setter's or accessors.
* Also note, we can handle custom objects, arrays and
arrayCollections.
* History
* 03.11.2008 - Steven Rieger : Created class
public final class XMLToInstance
public static function xmlToInstance( destinationObject :
Object, sourceXMLList : XMLList ) : void
// Get the class definition in XML, from the passed in
object ( introspection so to speak )
var classInfo : XML = describeType( destinationObject );
// Loop through each variable defined in the class.
for each ( var aVar : XML in classInfo..accessor )
// If this is String, Number, etc. . . Just copy the data
into the destination object.
if( isSimple( aVar.@type ) )
destinationObject[aVar.@name] = sourceXMLList[aVar.@name];
else
// Dynamically create a class of the appropriate type
var className : String = aVar.@type;
var ObjectClass : Class = getDefinitionByName( className )
as Class;
var newDestObject : Object = Object( new ObjectClass());
// If this is a custom type
if( isCustomType( className ) && ObjectClass != null
// Recursively call itself passing in the custom data type
and the data to store in it.
// I haven't tested nested objects more than one level. I
suppose it should work.
// Note to self. Check.
xmlToInstance( newDestObject, sourceXMLList[aVar.@name] );
else
// Must be some sort of Array, Array Collection . . .
if( ObjectClass != null )
var anXMLList : XMLList = new XMLList(
sourceXMLList[aVar.@name] );
for each( var anItem : XML in anXMLList )
// I'm sure there are more types, just not using any of them
yet.
if( newDestObject is Array )
newDestObject.push( anItem )
else
newDestObject.addItem( anItem );
// Add the data to the destination object. . . .
destinationObject[aVar.@name] = newDestObject;
} // end function objectToInstance
public static function isSimple( dataType : String ) :
Boolean
* This function is pretty self explanatory.
* Check to see if this is a simple data type. Did I miss
any?
* History
* 03.11.2008 - Steven Rieger : Created function
switch( dataType.toLowerCase() )
case "number":
case "string":
case "boolean":
return true;
return false;
} // end isSimple
public static function isCustomType( className : String ) :
Boolean
* This function is pretty self explanatory.
* Check to see if this is a custom data type. Add them here
as you need. . .
* History
* 03.11.2008 - Steven Rieger : Created function
var aClassName : String = className.replace( "::", "."
).toLowerCase();
aClassName = aClassName.substr( aClassName.lastIndexOf( "."
) + 1, aClassName.length - aClassName.lastIndexOf( "." ) );
switch( aClassName )
case "ndatetimevo":
case "expenselineitemvo":
return true;
return false;
} // end isCustomType
} // end class
} // end package -
Error BEA-382510 bad value for type node
Hi,
We have a requirement to read the xpath from the resource file placed in project folder in OSB and use that xpath to generate the report. For this I have done the following:
1) Made the xpath entry to properties file as <xpath>$body/*/*/EMPTYPE/EMPDATA/EMPNO</xpath>
2) Created a variable to fetch the xpath value from property file, say xpathvar
3) Created another variable, say reportvar which will have the contents: <report>{$xpathvar/text()}</report>. This should fetch the xpath from the variable and replace it in the calling part to fetch the value of the xpath.
4) For report generation the in key value it is ./text() from variable reportvar.
When I test this it throws error:
<con:errorCode>BEA-382510</con:errorCode>
<con:reason>
OSB Assign action failed updating variable "reportxpath": com.bea.wli.common.xquery.XQueryException: Error parsing XML: line 1, column 19: {err}XP0006: "$body/*/*/EMPTYPE/EMPDATA/EMPNO ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
</con:reason>
Any pointers will be highly appreciated.
Thanks!I think you cant substitute xpath as you have did.
As shown in the blog which you mentioned in the other post you may need to have a xslt transformation with xalan:evaluate to correctly process the xpath read from the properties file.
<report>{$xpathvar/text()}</report>. Here $xpathvar having the value '$body/*/*/EMPTYPE/EMPDATA/EMPNO' will be treated as string type (this will be string as you have read from the properties file as string) and not node. And you are trying to apply the text() function on a string instead of node which is resulting in that error. -
Can "Create Internal Leaf" be done for multiple nodes of a hierarchy
Dear all,
Since MDM cannot associate main table record to non-leaf node in a hierarchical lookup table, I need to create internal leaf nodes for those non-leaf nodes. But the number of target non-leaf nodes is really huge. Is it possible to select all of them and create internal leaves all together?
Thanks + Best Regards
JeromeHi
I think if we can create hierachy by levels not thru parent-child way but split hierarchy creation, the the level 2 or level 3 (last level of any hierarchy)should become a leaf node.
I tried that but it is creating 'Null' for leaf nodes. i.e. not stopping at level 2 or 3 while creating hierachy. If we can get a workaround to stop 'Null' creation , problem can be resolved. I am in sp4.
I will be interested to know the resolution
-reo
Maybe you are looking for
-
IPhone Contacts Breeding Like Cockroaches - Same With Some iCal events
Annoying problem on the iPhone: If someone calls me and they are not in my iPhone address book, and I choose to create a new contact from the received call log, then every time I sync my iPhone, that newly created contact gets duplicated every time I
-
Flash 9 Alpha ate my help files
Just installed the Flash 9 taster (as it were) to explore the delights of as3 - boomshanka - no helpfiles, have not nosed around yet to see what else is ary Anyone else had good or bad experiences with this update??
-
I need to put the -Time Code- numbers running on the video... help
OhI have FC Express.. I have Effects:Video Filters:Video: Blink, De-Interface, Flicker, Image Stabilizater, Shift Fields, Stop Motion Blur, Strobe & Viewfinder... No Timecode generator or reader here... ?
-
Outlook Calendar 2013/ Office 365 - Best Practice Sharing an Outlook Calendar with others
I am being asked to share user calendars with several users. Would anyone have a recommendation or know the best practice on doing this? I know of two options. Normally I would have used the option in Outlook to add delegates. I was working on anoth
-
Connecting to Oracle After installing D2K - V.20 on an Oracle 8.1.5
I can not connect to Oracle. I have forms in Drive C: and oracle 8.15 in drive D: Oracle Path: D:\Oracle\Ora81 Forms Path: C:\Forms5 They have to diferent home Paths in the Registry. Now the registry has 2 sets of folders. For Oracle: Oracle\All_home