Time-dependent hierarchy in query selection screen
Hello all
I am running query where input selection has following fields -
Fiscal year variable ( e.g. i can enter 2008)
Period variable ( e.g. i can enter 12)
Hierarchy Node variable
The hierarchy is time-dependent. I want that if I enter year and period as 2008 , 12 then
my hierachy node selction pop-up should show me only that hierarchy structure which was valid in 12.2008.
But my hierarchy selection always shows me hierachy structure that is valid on current date.
Can anyone help me on how to achieve this?
I have already coded keydate variable based on fisc year and period. But then how to make use of this key date variable so as to get correct selection of hier?
Regards,
Sanjyot
Hi Marcio
RSRHIERARCHYVIRT is for maintaining time-characteristics hierarchy.
My hierarchy is based on Consolidation Groups and Units.
But the hier is time-dependent.
So I want that when selection pop-up opens for a hier node , it should show me correct hier depending on year and period i have enetered.
Regards,
Sanjyot
Similar Messages
-
Selection of time-dependent hierarchy variables after selection of time
Hi guys,
I'm having the following question regarding the selections of variables in a BEx Query:
I need to select e.g. a position out of a hierarchy which is time-dependent. In the selection screen I'm only able to select a certain date but not the key date that I need for the hierarchy. Now I would like to replace the needed key date for the hierarchy out of the date value. Having the parameters for the hierarchy selected I would like to select a position of the right hierarchy.
My idea is to select the date first:
Date: 05.2009
In the next pop up window the hierarchy key date is replaced by the date:
Date: 05.2009 --> key date: 05.2009
Now I can select a position for the right hierarchy.
Is a two-stage selection possible? How can a variable be replaced and simultaneously serve in the selection of object with a hierarchy?
Thanks in advance!Hi Partho,
Please check this link. Might be helpfull.
http://www.ibm.com/developerworks/data/library/cognos/infrastructure/cognos_specific/page551.html
Regards,
Rahul -
Hierarchy in Query Selection Screen
The Hierachy is not Time Dependent and used varibale for selection screen.
When F4 is clicked for Hierarchy field, the following error is occoured
<b>Hierarchy <Hierarchy Name> # <Current Date> is not available for InfoObject <Info Object Name></b>.
This work fine in development but in quality this error occurs.
Please help to solve this.Hi,
could it be that the hierarchy has another technical name in Q-system and the query is set up to use the variable on another technical name from DEV?
Kind regards
/martin -
BEx query selection screen takes long time to popup
Hi,
I have a query which is taking long time to popup the selection screen. I have tried in RSRT the generate report option, the generating report takes 45 to 60 mins. After the report is generated the query selection screen comes up in couple of seconds. The first time I run the query everything its fine but then for the second time the problem comes back again.
The selection screen takes +/- 40 mins to comes up in RSRT and in the portal it times out.
I have run the statistics of the query and according to the statistics report the query takes a lot of time for the following component :
OLAP: Query Gen. 2681,312682
I have removed the query from the cache monitor and after that regenerate the report. But these steps didnu2019t solve my problem.
I made two test queries, in one query I have made the CKFu2019s and RKFu2019s directly at the infoprovider, and dragged and dropped in the KF structure. In the other query I made the CKFu2019s and RKFu2019s in the query KF structure itself. The query where I have the CKFu2019s and RKFu2019s at the infoprovider that query times out, the other query where I put the CKFu2019s and RKFu2019s in the query KF structure doesn't has this performance problem.
What I donu2019t know is why the query is failing when I use RKFu2019s and CKFu2019s from the infoprovider, the other query donu2019t have this problem.
Please advise how to proceed.
Thanks in advance,
ArashHi,
Please check the following notes which should be useful.
1387593 - Performance optimization for query change/generation
1416737 - Performance optimization for query change/generation(2)
1396485 - Performance optimization for query check/save
Then please execute the SE38 report ANALYZE_RSZ_TABLES (see notes
1472915, 1506560) and repair/correct the different tables to optmize
the query definition tables.
Regards,
Amit -
HIerarchy Variable in Selection Screen not taken into account.
Hi,
Our users choose a cost center hierarchy in the selection screen and run the report. As we have suppressed Unassigned Nodes, they do not appear. However when users then deactivate the hierarchy, unassigned nodes are shown. Their argument is that the unassigned nodes should still not be displayed because a hierarchy was entered on the selection screen. Is there a way of stopping this?
ThanksHi Shawn,
I think I get what you did in your query, though it took me some time...
Did you select the cost center in your query and set the display hierarchy using settings, hierarchy tab, select hierarchy, hierarchy variable (or something like that)? That would explain why the query isn't filtered on that hierarchy, only the display of cost elements is affected. You should also have the same hierarchy variable in your filter settings in the query designer. That way, the user filters on a hierarchy and the unassigned nodes will never be in the result.
Hope it helps, tell me if I got it wrong,
Kind regards,
Alex -
0CS_Item with time-dependent hierarchy
Dear Experts,
we are discussing pros and cons for a time-dependent item catalog (characteristic 0CS_item with time dependent hierarchy in BW) within consolidation SEM BCS 4.0. Does anybody has experiences on this topic?
I am quite sure it will be a performance issue and it means additional reporting effort (e.g. using reference period/year in the report comparing different hierarchies).
I am not sure if there are any other risks so I it would be great if anybody has some hints.
Thanks in advance,
Birgit Laux
Message was edited by: Birgit LauxBirgit,
Some other things to consider:
- frequency of changes to item hierarchy. Could lead to a lot of item hierarchies in BW over time.
- hierarchy validity date does not seem to be displayed when running web queries and thus makes it difficult for the user to select the correct hierarchy when executing the query. Still looking for a fix for this.
- greater complexity in overall design. Is it really necessary to achieve correct financial statement presentation?
Virtual cube performance is not great but you could implement the data mart which provides typical BW query performance.
I stayed away from setting the item as time dependent for these reasons.
Brian -
Hi All,
We have 0ORGUNIT hierarchy shown in one of the Webi reports. 0ORGUNIT is time dependent hierarchy.
In BW report we can see below nodes for hierarchy
Hierarchy Valid From Valid To
Z05 Root Company 01.07.2013 31.12.9999 - Parent node
Z05 Branch 2 01.10.2013 31.12.9999 - Child Node
Z05 Division 09.12.2013 31.12.9999 - Child Node
In BO webi we can see only two nodes
Z05 Root Company 01.07.2013 31.12.9999 - Parent node
Z05 Division 09.12.2013 31.12.9999 - Child Node
Any idea why in BO webi the other node is not shown ? This is happening only for time dependent hierarchy and only in BO not in BW.
Thanks,
ShraddhaHi Shraddha ,
Check at webi query panel level any restrictions applied to hierarchy levels.
Check at BEx query level,select 0ORGUNIT ,hierarchy -Expand to level .
Here specify Max level.
lastly, check any filters/restrictions applied on data.If yes,remove restrictions. -
Time-Depended hierarchy and BEx-Queries
Hi Gurus, Masters,
I have ONE time-depended hierarchy for 4 periods (times):
1, 2, 3, 4
I have 4 columns in Query with 4 periods:
1 col for 1 period,
2 col for 2 period,
3 col for 3 period,
4 col for 4 period.
I have 1 row with this hierarchy.
How can i share this hierarchy in my columns by validity:
for 1 col -> this hierarchy for 1 period,
for 2 col -> this hierarchy for 2 period,
for 3 col -> this hierarchy for 3 period,
for 4 col -> this hierarchy for 4 period?
Any answer will be very appreciated.
Thank you.
Is this possible?
P.S.
I have 2 solutions found.
Message was edited by: AndyMLHi Shashi,
One of the ways:
Create a variable type customer exit - in properties of the IO - in the 'select hierarchy' window there is a 'Variables' checkbox for key date.
Calculate the last date of the entered period/year in the exit.
Best regards,
Eugene -
Time Dependant Hierarchy in BEx
Hi All,
I have created a query on top of 0PS_C04.
In my master 0Project i have a hierarchy which is being displayed through BEx.
Now with every new fiscal year, new projects are added to the hierarchy.
When I run the query then all the projects of the hierarchy are displayed irrespective of the year they belong to.
My problem is that I want to display only 2009 related projects when i execute the report for 2009 and so on for the years that follow.
Can somebody please suggest a way out???
Thanks.
Regards,
RohitHi,
Are you using option : Time dependent hierarchy or Entire hierarchy is time dependent. If it's the latter, then you can just restrict your query with the hierarchy having end date 31.12.9999. Using key date option is also convenient.
--Akashdeep -
Hi,
I would like to set Time depend hierarchy (not by nodes, but all hierarchy) on the 0profit_ctr. but unfortunately, 0profit_ctr is not time depend. So I would like to add calday on the EXIT_SAPLRSAP_004(cmod) on the source system.
But I am no idea how to code it...
what I would like to do is to set DATETO and DATEFROM of the hierarhcy header.
parameter of the EXIT_SAPLRSAP_004 is below.
*" IMPORTING
*" VALUE(I_DATASOURCE) TYPE RSAOT_OLTPSOURCE
*" VALUE(I_S_HIEBAS) TYPE RSAP_S_HIEBAS
*" VALUE(I_S_HIEFLAG) TYPE RSAP_S_HIEFLAG
*" VALUE(I_S_HIER_SEL) TYPE RSAP_S_HIER_LIST
*" VALUE(I_S_HEADER3) OPTIONAL
*" TABLES
*" I_T_LANGU TYPE SBIWA_T_LANGU
*" C_T_HIETEXT TYPE RSAP_T_HIETEXT
*" C_T_HIENODE TYPE RSAP_T_HIENODE
*" C_T_FOLDERT TYPE RSAP_T_FOLDERT
*" C_T_HIEINTV TYPE RSAP_T_HIEINTV
*" C_T_HIENODE3 OPTIONAL
*" C_T_HIEINTV3 OPTIONAL
*" C_T_MESSAGES STRUCTURE BALMI OPTIONAL
*" EXCEPTIONS
*" RSAP_CUSTOMER_EXIT_ERROR
I guess I_S_HIER_SEL seems to me the hierarhcy header. but I could not find which fields of the TABLES are corresponding this hierarchy header.
Or is it impossible to set what I want to do on this exit?
Hope your help..
Kind regards,
MasaakiHi,
In this FM EXIT_SAPLRSAP_004..
see include program...
INCLUDE ZXRSAU04..
Write code
data : l_s_[structurename] like [extractstructure name],
l_tabix like sy-tabix.
case i_datasource.
when 'your datasource name'.
loop at c_t_data into l_s_[structurename]
l_tabix = sy-tabix.
fill the new field
select ... into l_zz...
where ....
l_s_[structurename]-[new field name, zz....] = l_zz...
modify c_t_data from l_s_[structurename] index l_tabix.
endloop.
Hope this Help.. assign points...
regards,
raj -
Creation of Time Dependent Hierarchy in R/3
Any ideas on how to create a time dependent Hierarchy in R/3?
Do we have any existing functionality we can leverage in R/3 for creating and maintaing time dependent hierarchy or through ABAP coding in R/3?
Any ideas or documentation will be helpful.Hi Jasmine,
check this documents/links to get an idea how to set up hierarchy extractor in R/3
[How to Create a Hierarchy Extractor for Employees and their Department Managers|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20a709c1-0a8e-2a10-21b4-f779728c63bf]
Re: Build Hierarchy with ABAP
How to create datasource for hierarchy
Double post: Creation of Time Dependent Hierarchy in R/3
Regards
Andreas -
Check box in SAP Query selection screen
I want to keep 2 check box in SAP Query selection screen.
could you please tell me any one.
regards,
kumarHi Vijay,
If these check boxes are the fields in the table you are using then you can do it in SQ01, otherwise you may required to make the changes in the standard code generated for that query.
You can find the name of the generated program of the query when you execute the query.
Reward points if useful.
Regards,
Atish -
Hierarchy in BEx selection screen
Hi, how can I get a variable with hierarchy in the selection screen?
1)how do I create a variable based on hierarchy?
Can someone please give me steps?
Thanks,
RadhaThat was helpful.
Variable hierarchy variable hierarchy nodes
<i>1. In the top left of the selection field, choose Single values and a hierarchy that contains the required hierarchy node, from the top right corner.
2. Select the Variables tab page.
3. Select the required variable from the list of available variables on the left-hand side.
4. Select the required variable and drag it into the Selection box on the right (or use the arrow icon pointing to the right).
5. Highlight a hierarchy node in the right-hand box and choose Select variable hierarchy from the context menu (right mouse button). You reach the Select Variable for Hierarchy dialog box.
6. Select a variable hierarchy. See also: Selecting Hierarchies
7. Choose OK.</i>
In this, in the 2nd point, I am not getti -
F4 search-help in infoset query selection-screen fields
Hi all,
I created an infoset, and it's corresponding query, and now I need to associate F4 search-help in two of the selection-screen fields. Since they don't have any reference field associated (they are SAP standard table fields), there are no possible values available to select.
How can I do this?
I have already tried to use the "AT SELECTION-SCREEN OUTPUT" in the infoset, but I'm not able to do that. When I try to use the select-options generated by the query (SP$00013 and SP$00014) I have a syntax error with "Field not known".
Can you help me? I never done this before, so I really don't have a guess.
Thanks in advance.
Beste regards,
Sónia GonçalvesHi all,
I have found thread that helped me a lot in this issue.
I just have one more doubt: I created the selection criterion and I can already see it in the query selection-screen, but it's appearing in the top of the selection-screen, in a different area called "General data selections".
Isn't it possible to include it in the "Report-specific selctions"?
Thanks in advance.
Best regards,
Sónia Gonçalves -
Query Selection screen field validatoin
I am testing a query using the RSRT2 transaction and have a query selection screen whose fields i want to create custom validations for. ( which should trigger when check or execute is pressed )
How can this be achieved ?
I tried looking for exits but did not find a relevant one.
Thanks in advance.Hello,
You need to write a routine in SMOD for selection screen validations.
It will come in i_step = 3. please refer foll code as example:
The code example is to check whether date is less than or equal to current date. If user enters future date it pop ups saying enter date less than or equal to current date.
DATA: LI_VAR like rrrangeexit,
wa_t_var_range like LI_VAR,
count type i value 0.
IF i_s_rkb1d-infocube EQ 'CUBE1' or
i_s_rkb1d-infocube EQ 'CUBE2'.
Check whether only one of date variable is entered in variable screen.
IF I_STEP = 3.
Read table i_t_var_range into wa_t_var_range with key vnam = 'VARDATE'.
if wa_t_var_range-low > sy-datum.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
I_CLASS = 'RSBBS'
I_TYPE = 'E'
I_NUMBER = '000'
I_MSGV1 = 'Enter date less than or equal to current date'.
raise again.
endif.
ENDIF.
ENDIF.
Regards,
Shashank
Maybe you are looking for
-
I am returning to Firefox after having used Safari on Mac for the past year. One thing I liked about Safari was that I could define what page gets loaded when I used the File Menu command to open a new Browser Window. I defined this as opening up wit
-
Dynamic Query for 'Select IN' -- URGENT!!!
I've got the following Select statement - SELECT Employee_Name, SSN FROM Company WHERE EMPLOYEE_NAME IN (c_Employee_Name) ; Here c_Employee_Name is a Returned RefCursor from another function. It gives error as Type mismatch. Is there anyway I can run
-
Slow site, latency between cloud service and SQL Azure?
We have a web site that works pretty swiftly in a local development environment. But once deployed to Azure it slows down to a crawl (even for a single user). Some pages take 30-60 seconds to load. Even the simplest pages take between 5 and 10 second
-
I've been having some trouble with very annoying feedback that literally sounds like the Amazon Rainforest whenever I select any of my tracks. I've tried going into the sound to change the audio inputs, outputs, mess around with the settings to try a
-
HT1695 New touch ipod and cannot get it to be activated on our WiFi system
We have just purchase our first ipod touch and have spend the past hour trying to get it activated, we go thru all the on screen procedures and still cannot activated it. How do we activate our ipod thru itunes Yes we are first time users Yes we hate