Time Characteristic in a query

I have an InfoObject called Time (0Time) which I want to include in a query.  The object is part of my InfoProvider.  The time is given in hours what I want to do is group the time so that I have three values represent morning afternoon and evening.  How can I do this? Thanks

In the rows part of the query designer, right click on the word Rows and select New Structure. In the Structure you see right click and select new Selection. Here make the selection by including 0TIME(drag and drop from left hand box). Right click 0TIME in the right hand side and Restrict. Restrict with values, like 00:00:01 to 12:00:00 (for Morning). Clcik OK. Change the description of the Selection to Say "Morning" and click OK. You can repeat by creating new selections for Afternoon and Evening.
You can save the structure and use it across multiple queries if reqd.
Hope this helps...

Similar Messages

  • BEx Query - Time characteristic Description problem

    Hi Guys,
    In one of the queries, I have '0I_FPER' as the time-characteristic in the columns section. I have few key figures in my rows section. When i executed the query (filter char. - Fiscal year variant restricted to July - June, 4 special periods i.e. V6), i get separate columns for each month as required. But, the descriptions for the months are July 2005, August 2005 ... June 2005.
    They should get displayed as
    July, 2004 August 2004 ... June 2005
    How do i get the description in the desired format.
    Any help will be greatly appreciated.

    Hi guys,
    I am awaiting a solution. The values are not being filled by any variable. As mentioned before, 0FISCPER has been restricted on 0I_FPER variable. The Fiscal Variant is V6. On execution, the following output appears (with user-entry values for 0FISCPER being 001/2005 - 012/2005):
    July 2005 August 2005 .....  June 2005
    I am expecting something like
    July 2004 August 2004 .....  June 2005
    I have problem only with the column description. The data appears correctly. i.e. Data for July 2004 appears correctly but with heading July 2005 instead of July 2004. I created text variables on 0FISCPER for all the months of 2004. But no help.
    Any help will be greatly appreciated.

  • Display of Time Characteristics in a Query

    Hi all,
    Is there a<b> way to display a query as follows</b>:
            Month1_____Month2______Month3____Quarter1  
            Shipments__Shipments___Shipments_Shipments
    Material 150_________50_________100________300
    How can I do that in the query designer?
    Thanks a lot
    Christian

    Hello Christian,
    Create a user entry variable for calendar period/year. this will have month1 value ( say 01/2006). Create restricted keyfigures using shipments KF and TimeCharacteristic Calendar Period/Year. For this time characteristic restrict it with the variable that you have created.
    For other two create the restricted kfs or new selection keyfigures in the structure using variable as user exit type with single value. In the exit read the above variable and derive these values.
    For the quaterly values use variable offset using the first created user entry variable.
    Hope this helps,
    GSM.

  • The time characteristic consistency check has produced an error     DBMAN     62

    Hi
    We are getting an error while updating to one target as The time characteristic consistency check has produced an error""
    * Checked the respective PSA data field  which is fine. Dates are in correct format.
    * RSRV ran for the particular target. It had error but the jobs were successful till yesterday.
    * Data from 01.05.2014 is having the problem ( Which I got from the record number in PSA )
    NB: We are running on HANA database but the respective target is not yet HANA Optimised
    Details Figures Attached
    Any Idea.. What could  have gone wrong
    Regards
    Reshoi R

    Hi
    Record Number 2995 is shown in the figures attached.
    I have already carried out the deletion and automatic repair mentioned in RSCV061 even before posting this question but of no use ( I have shown that also in the figures attached at the posting time.
    Reporting is fine. The problem is while loading the data to the cube. The loading is fine till date 30.04.2014 but from the date 01.05.2014. The record is error while updating.
    The cube is partitioned from month 01.2008 to 12.2015.
    Regards
    Reshoi R

  • Dump when trying to display characteristic values in QUERY DESIGNER

    Hi Experts,
    Life seems to become a struggle with 7.0 for me :-(.
    My current problem:
    If I try to display characteristic values  in Query Designer (left section of screnn, wthin dimensions) system dumps frequently.
    It's that kind of dump, that doen't help really (to my oponion)_
    What happened?
        The exception 'CX_RSR_X_MESSAGE' was raised, but it was not caught anywhere
         along
        the call hierarchy.
        Since exceptions represent error situations and this error was not
        adequately responded to, the running ABAP program
         'CL_RSBOLAP_BICS_SERVICES======CP' has to be
        terminated.
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "UNCAUGHT_EXCEPTION" "CX_RSR_X_MESSAGE"
        "CL_RSBOLAP_BICS_SERVICES======CP" or "CL_RSBOLAP_BICS_SERVICES======CM003"
        "HANDLE_UNCAUGHT_EXCEPTION"
    ... etc.
    BW 79, SP21
    GUI 7100.4.14.3136
    Any ideas?
    Thanks in Advance and Regards
    Joe

    Hi Vikram,
    Thanks for reply. Reinstalling GUI was successful, but - error still occurs. ..
    Regards
    Joe
    Edited by: J.F.B. on May 28, 2010 3:02 PM

  • Characteristic issue in Query

    Hi:
    I have a question regarding a query. I have a multicube created from the Sales Overview cube and a cube which holds plan data.
    I have a a charactrisitcs 0CUST_SALES__0CUST_GROUP (master data) in Identification checked for the both cubes.
    When I run a query created on this cube for sales wty, The value shows up correctly. But when I drill down by 0CUST_SALES__0CUST_GROUP, the characteristic value is Not assigned.
    I checked 0CUST_SALES and I have the value for the field 0CUST_SALES__0CUST_GROUP. Why system shows #- not assigned when I drill down by this particular characteristic?

    Hi Sunil,
    Do you have any other characteristic in the query rows , or any other characteristic  restricted in the query that is from only one basic Cube?
    Also check by running reports if  you have data in Basic cubes by  0CUST_SALES__0CUST_GROUP .
    Vijay.

  • Reduce the execution time for the below query

    Hi,
    Please help me to reduce the execution time on the following query .. if any tuning is possible.
    I have a table A with the columns :
    ID , ORG_LINEAGE , INCLUDE_IND ( -- the org lineage is a string of ID's. If ID 5 reports to 4 and 4 to 1 .. the lineage for 5 will be stored as the string -1-4-5)
    Below is the query ..
    select ID
    from A a
    where INCLUDE_IND = '1' and
    exists (
    select 1
    from A b
    where b.ID = '5'
    and b.ORG_LINEAGE like '%-'||a.ID||'-%'
    order by ORG_LINEAGE;
    The only constraint on the table A is the primary key on the ID column.
    Following will be the execution plan :
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=406 Card=379 Bytes=2
    653)
    1 0 SORT (ORDER BY) (Cost=27 Card=379 Bytes=2653)
    2 1 FILTER
    3 2 TABLE ACCESS (FULL) OF 'A' (Cost=24 Card
    =379 Bytes=2653)
    4 2 TABLE ACCESS (BY INDEX ROWID) OF 'A' (Co
    st=1 Card=1 Bytes=6)
    5 4 INDEX (RANGE SCAN) OF 'ORG_LINEAGE'
    (NON-UNIQUE)

    I order it by the org_lineage to get the first person. So it is a result problem? The order by doesn't give you the first person, it gives you a sorted result set (of which there may be zero, one, or thousands).
    If you only want one row from that, then you're spending a lot of time tuning the wrong query.
    How do you know which ORG_LINEAGE row you want?
    Maybe it would help if you posted some sample data.

  • Time out of the Query

    Sdn
    Im getting Time out for one query while excuting in PRD system. That query filter field setting is Only values Infoprovider. But DEV Im able to excute the same query, but in this system that field setting is Only posted values in navigation
    advance wishes

    Hi Kirun,
    I'm sure, it can be done in dev because the data is not big like in the production.
    You need to tune up your info provider (info cube/ods).
    I had once the problem like you, i can run in dev, but not in prd.
    due I use ODS, so that I tuned it up by creating Index. And after it, it can run well.
    If it's Info cube, you can create aggregate / compress it.
    Hope it helps you a lot.
    Br,
    Daniel N.

  • CV04N takes long time to process select query on DRAT table

    Hello Team,
    While using CV04N to display DIR's, it takes long time to process select query on DRAT table. This query includes all the key fields. Any idea as to how to analyse this?
    Thanks and best regards,
    Bobby
    Moderator message: please read the sticky threads of this forum, there is a lot of information on what you can do.
    Edited by: Thomas Zloch on Feb 24, 2012

    Be aware that XP takes approx 1gb of your RAM leaving you with 1gb for whatever else is running. MS Outlook is also a memory hog.
    To check Virtual Memory Settings:
    Control Panel -> System
    System Properties -> Advanced Tab -> Performance Settings
    Performance Options -> Adavanced Tab - Virtual Memory section
    Virtual Memory -
    what are
    * Initial Size
    * Maximum Size
    In a presentation at one of the Hyperion conferences years ago, Mark Ostroff suggested that the initial be set to the same as Max. (Max is typically 2x physical RAM)
    These changes may provide some improvement.

  • TIME KF in the query??

    Hi all,
    I loaded data from ODS to Cube and have Time CHARs in my Cube. But I don't have any values for my TIME CHARS in the query. Can someone tell me how to fix it?
    Thanks
    J.

    Hi John,
    Just check the Update Rules and Transfer Rules whether mapping has been done properly for the Time Chars and also check whether data exists for Time Chars in the underlying ODs from which the data is pulled into Cube.
    Thanks,
    Vamsi

  • Time to execute a query

    Hi,
    How to find out the time taken by a query to execute ?
    Jamila

    Jamila, let me put technical what Justin said...
    jaffar@PRIMEDB> set time on
    09:27:04 jaffar@PRIMEDB> set autot trace
    09:27:17 jaffar@PRIMEDB> select * from emp_new;
    no rows selected
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=1 Card=6 Bytes=132)
    1 0 TABLE ACCESS* (FULL) OF 'EMP_NEW' (Cost=1 Card=6 Bytes=132)
    Statistics
    20 recursive calls
    3 db block gets
    16 consistent gets
    5 physical reads
    796 redo size
    589 bytes sent via SQL*Net to client
    372 bytes received via SQL*Net from client
    1 SQL*Net roundtrips to/from client
    1 sorts (memory)
    0 sorts (disk)
    0 rows processed
    09:27:26 jaffar@PRIMEDB>
    set autot trace command allows you to run the query without actually running the query, therefore, it wont' display the result. But, certainly, it wil take time. We 20 million rows are not much for oracle. It all depends, whether you query is doing FULL TABLE SCAN or INDEX SCAN.
    SJH
    OCP DBA

  • Remodeling a time characteristic in a cube - Doesn't allow??

    I have a cube containing time characteristic 0CALWEEK.  I would like to use the remodeling toolkit so i can write some custom user exit code to replace the values in this field based on logic.  However I am not allowed to select this field!!  Why doesn't SAP allow you to remodel (change values) in any of the time characteristics in a cube??  Is there any way around this?
    Thanks, Peggy

    You are close to my issue.  This is a regular basic cube.  (no non-cumulative)
    It contains snapshots of an 18 month plan (future dates).  We have over 2 years of snapshots.  Last year the source system sending us the plan data used a calendar that handled the weeks of 2010 differently than the SAP calendar.  (SAP buckets the first 10 days of 2010 in week 1; whereas our company only used first 3 days of 2010 as week 1).
    Anyway, we have about 100 million records in these snapshots to adjust the calendar week to match up with the SAP calendar week.
    All we wanted to do was to use  the remodeling toolkit on the 0calweek field and choose "replace characteristic" and populate with a bit of ABAP code.  However we are not allowed to pick any time characteristics.
    We know we could always use the old standard ways to move data around to dummy cubes and fix, but that takes hours of processing for all the data we have to do.  (actually about 10 cubes this size).
    So we are testing the remodeling toolkit by adding a new characteristic that "references" ocalweek and using Abap to populate that the way we want.  We can move the queries over to the new field.  That seems to be working and fast since work is done using Oracle level commands, instead of data packet by data packet.
    Do you have any other ideas?
    Thanks much!

  • Time characteristic restriction in BW BPS

    Hi to all,
    I got one question for BW-BPS. This was happened after upgrade of Netweaver
    service pack. Before that it was fine. My question is as follow:
    Under DW workbench when I create an InfoProvider which included time dimension
    that consist of fiscal year, fiscal year/period, posting period, calendar
    year, calender year/ month. I try to select fiscal year, fiscal year/period
    under a planning level, then I select unassigned(#) time characteristic for
    fiscal year/period and save it. System allow for this restriction under time
    characteristic fiscal year/period. However, if I deselect fiscal year, fiscal
    year/period under a planning level and select calendar year, calender year/
    month under the same planning level, then I select unassigned(#) time
    characteristic for calender year/ month and save it. System was not allow for
    this restriction for time characteristic and generate the following message:  
      Message: UPC003- Value# is not permitted for characteristic calendar
    year/month.
    There was no characteristic relationship set for time dimension
    characteristics. I still not understand why system is not allow for
    unassigned(#) time characteristic selection for calender year/ month
    Therefore, I would like to need a support for this. Is it a system error?

    Hi Gupta,
    Thanks for your guide. I already try as per your instruction but not work because when I create a planning level with only 0calmonth, system still not allow me to include unassigned (#) for time restriction. May be I could explain to you why I need to select unassigned (#)  for 0calmonth.
    My explanation is as follows:
      Actually I already create a planning level with selected time characteristic calender year only for example Year 2008 and input value. Now I want to distribute the yearly figure to monthly, therefore I need to create another planning level and perform top down distribution. In the top down planning level, I have to select calender year/month for time characteristic and restrict the period to Jan 2008 to Dec 2008 and include unassigned(#) for the purpose of running distribution function.
    As I have told you in the earlier note which mentioned that the above task was actually worked in the beginning time before we have upgrade our Netweaver service pack. Unfortunately, it not work anymore after the upgrading of Netweaver .
    Do you have any idea regarding the scenario of before and after upgrading of Netweaver. Does it affect the previous settings?
    Hope you can help me to find out more on this.
    Tq.

  • Time of first SQL Query

    Hi,
    I want to see time of first SQL Query that execute today morning when I Bring up my database!!!!!
    Can anyone help me???

    What kind of investigation is this ?
    You should be able to see this by querying V$SQL view and ordering by LAST_ACTIVE_DATE column provided:
    * it is not aged out and
    * it was not re-used

  • Date time characteristic converted in a string in Universe OLAP

    Hi there,
    We are facing to the following issue. Maybe one of you has been already facing to.
    We have created a BO universe on top of BI queries (based on MDX) and we make WEBI reports.
    We note when we update/refresh the OLAP structure, all characteristics (Number and date) are converted/considered as a character and string and we loose in that way the time information.
    This is very ennoying when sorting on time dimensions as WEBI can only sort on Alphabetic order.
    Indeed, we would like to display the last 13 month of a key figure as from the last month.
    As the time characteristic is automatically converted by the Olap refresh structure in a string, we can't display the last 13 months in logical/natural/calendar order.
    Ex: NOV 2007 | DEC 2007 | JAN 2008 | FEB 2008 ....DEC 2008
    Any idea :
    - why the 'Refresh structure' command automatically convert into a string?
    - how to force him not to convert to string and keep the date information?
    - order date as the logical/natural/calendar one?
    Beforehand, thanks a lot

    Hi Ingo,
    I'm using 0CMonth or 0CALMONTH which are SAP characteristics.
    Do you know how to sort data by date and not by string?
    When we recuperate infoobejcts from BI queriies, all objects are string and all LOV are sorted by string which don't help us.
    imagine we have JAN 1996, JAN 1997,... FEB 1996 etc etc.
    A nightmare
    Laurent

Maybe you are looking for

  • Closing and opening in new fiscal period

    Hi I am going to close last fiscal period and open new period . What should I do step by step for closing inventory and BP and Accounting and Open them in new Period. does system has any facility to do these step automatically. Thanks in advance

  • Error While generating Control Reciepe

    Hi, I am mapping MTS scenario for PI industry and i stuck up with an error while creating Control recipe system gives following erroe msg, No values assigned to char. 0010 PPPI_INSTRUCTION in process instruction 9999 phase 0020. Msg number is  CB210.

  • Can't sync music on iPad?

    So I realised today that I couldn't add new songs or play some of my already existing songs on my iPad (using iTunes) so I tried to remove the entire music library, and sync it again. But when I removed it, I couldn't sync it back?! The weird thing i

  • External Hard Drives not showing

    I have 2 external hard drives connected using FW 800, a Western Digital 500TB & a Seagate 500TB. The Western Digital has a habit of freezing and the last time this happened I powered down the iMac. When I re started the iMac neither external hard dri

  • Making sure on screen colors print the same

    Hi, Hope you are having a nice evening. I just did a test print of a PDF that was exported from Indesign. The Indesign document contained things like a logo (which was created in Illustrator.) The color of the type in the logo looked accurate across