Convert Date to Calendar week in Query Designer

Hi experts,
Is it possible to convert date to week in the query designer?
Thanks in advance for your help.
Best Regards,
Rose

Hi,
Can you please explain more about virtual char you mentioned?
What i am actually doing is i am using a formula variable (getting the value from customer exit) and i based the calculation of other keyfigures basing on this value.  The input value.. (data type date ) does not filter my query output.. it is only purely used for calculating other keyfigure values.  The data types (Dimension Settings ) available in formula variable are only quantity, amount, pice and number, date and time..  there is no week there.  So currently I am using the date.  If I can convert date to week then.. I can make my query a lot simpler.
Thanks for your reply...
Regards,
Rose

Similar Messages

  • Need to convert  Date from calendar to String in the format dd-mom-yyyy

    Need to convert Date from calendar to String in the format dd-mom-yyyy+..
    This is absolutely necessary... any help plz..
    Rgds
    Arwinder

    Look up the SimpleDateFormat class: http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
    Arwinder wrote:
    This is absolutely necessary... any help plz..For you maybe, not others. Please refrain from trying to urge others to answer your queries. They'll do it at their own pace ( if at all ).
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • How convert date/time from xml in xdp(Designer)?

    Hi, i want to convert date/time format from xml in Designer, date/time value in xml is NOT in common format YYYY-MM-DD (if is in a common format i can do this with pattern)
    I have a "DateTime" Field in Xdp can get from Xml date and time:
    In XML <DateTime>DD-MM-YYYY</DateTime> i want to convert in XDP in DateTime Field in "DD-April-YYYY"
    Can i do this?

    You can do this way..
    Bind the date field to your XML tag.
    Set the display pattern for the date field.
    In the initialize event of the date field place the following code.
    Set JavaScript as language.
    var dtStr = this.rawValue;
    var pos1=dtStr.indexOf("-");
    var pos2=dtStr.indexOf("-",pos1+1);
    var strMonth=dtStr.substring(0,pos1);
    var strDay=dtStr.substring(pos1+1,pos2);
    var strYear=dtStr.substring(pos2+1);
    //Assign the formatted value to the Date field.
    this.rawValue = strYear + "-" + strMonth + "-" + strDay;
    Thanks
    Srini

  • Create a function that convert date Gregorian calendar to Hijri calendar

    hey guys, i had an assesment i need to finish as my test for flash developer vacancy...
    i need to create a function that convert date Gregorian calendar to Hijri calendar in flash
    is that possible??
    i've search through google, but still doesnt find anything useful yet..
    kinda need ur help plz.....

    http://www.codeproject.com/KB/datetime/hijrigregorianclass.aspx

  • How convert Date to Calendar

    i nedd convert a type Date to Calendar or how can increment a Date value in relation with the int value?
    Help me please

    Calendar has a setTime(Date) method, I think. You could look it up, I'm just going from memory. So create a new Calendar object and call setTime on it.

  • Sort data by key figure in Query Designer

    Hi Gurus,
    Is it possible to sort a query according to a key figure from Query designer?
    Thanks

    Using condition TOP N is the solution

  • Date to Calendar Week in Update Rules

    Hi Experts,
    Does anyone of you know how/where BI/BW do the mapping when translating date in to a week in update rules?
    Thanks in advance,
    Rose

    Hi Kazmi and Ram,
    In Update Rules, in Time Ref tab, we can specify the source field e.g. posting date,  to get the calendar Year/Week time characteristics.   My question is where does the update rule get the week basing on the source date?
    This question is brought up to me because week days can be different from country to country.  e.g. in US  it is sunday to saturday and in Norway it is Monday to sunday.  If we do reporting that consolidates data from US and Norway and probably and use week as part of that report, then we have an issue.
    Can you please let me know how then the update rules mapped the date to week.  If you have similar issues, can  you please let me know how you address it?
    Best Regards,
    Rose

  • How to pass a date parameter from report builder query designer to oracle database

    i'm using report builder 3.0 connected to oracle database. i'm trying to pass a date parameter in the query with no success, i don't
    know the exact syntax. I've tried :
    SELECT * FROM igeneral.GCL_CLAIMS where CREATED_BY IN (:CREATED_BY) AND CLAIM_YEAR IN(:UW_YEAR) AND (LOSS_DATE) >To_Date('01/01/2014','mm/dd/yyyy')
    it worked perfectly.
    However if i try to put a date parameter "From" instead of 01/01/2014 it will not work, a Define Query Parameter popup window appear and error occurred after i fill
    the values (usually i shouldnt get this popup i should enter the value when i run the report)
    SELECT * FROM igeneral.GCL_CLAIMS where CREATED_BY IN (:CREATED_BY) AND CLAIM_YEAR IN(:UW_YEAR) AND (LOSS_DATE) >To_Date(:From,'mm/dd/yyyy')
    appreciate your assistance

    Hi Gorgo,
    According to your description, you have problem when in passing a parameter for running a Oracle Query. Right?
    Based on my knowledge, it use "&" as synax for parameter in Oracle, like we use "@" in SQL Server. In this scenario, maybe you can try '01/01/2014' when inputing in "From". We are not sure if there's any limitation for To_Date()
    function. For your self-testing, you can try the query in sqlplus/sql delveloper. Since your issue is related to Oracle query, we suggest you post this thread onto Oracle forum.
    Best Regards,
    Simon Hou

  • Convert date to week of the year in Query designer

    Hi,
    I have a requirement to convert date ( a characteristic in the query) to week of the year. For eg. if the date is 01/11/2008 then the week to be displayed is 2008/44.
    Please not that the week is not populated in the Infocube of the same. So i need to convert it in the query designer only.
    Please suggest if you have ideas.
    Regards
    Sapna

    Hi,
    I am trying to get the data by using a virtual characteristic. The problem is i am not able to debug METHOD : IF_EX_RSR_OLAP_BADI~COMPUTE. Can u please help me to reach the breakpoint within this.
    Done....
    Sapna
    Edited by: Sapna Jaiswal on Dec 2, 2008 11:21 AM

  • Master data is not getting displayed in the Query Designer

    Hi,
    I have a DSO in which I have an InfoObject called Emp No. in the Data Field.
    The Emp.No is being maintained as master with (Emp Name, Address, Telephone No, DOB) as attributes.
    I have loaded the data in the Emp. No. master. Then tried loading the transaction data in DSO.
    The Emp.No is there in the DSO active data, but in the query designer its not getting displayed.
    Hope its clear.
    Please help.
    Thanks

    Hi,
    I have brought the Emp. No. in the Key Field and also have activate the master data again.
    Yet my Query Designer doesn't have the Emp. No.
    I have done a full load for both Master and Transaction.
    Please advice me what the other alternative.
    Thanks

  • Where to write IF THEN ELASE statements in BEX Query Designer

    Hi All,
    I need to write a formula in query designer...
    saying that to display the all Quantities in KGs.. Now articles are in Grams and KGs...
    So here i need to perform calculation like... if article is in KGs divide by 1, else if article is in Grams divide by 1000.
    where can i write this logic to perform calculation ...
    Thanks in advance..
    ravi.p

    hi chetan,
    No its not work.. why because i  need to convert the unit of measure in Masterdata Attribute values... that means ) ' 0grooss_wt'.  this is  attribute as a keyfigure of ' 0material' .. this ' 0gross_wt' values has to convert in KGs. at Present ' 0gross_wt' values are in KG and Grams...
    I can change these values in update rules by writting  Routine.. But I need to convert it in KGS at BEX Query Designer Level..
    I need calculate like this
    quantity sold * Gross Weight. 
    here Gross Weight is the formula variable which replacing the values of gross weight...
    i tried by creating conversion types in RSUOM t-code. but it works on keyfigures of infocube.. not on attribute values of master data...
    is there any solution to solve this Problem...

  • Query Designer - Execute - incorrect URL

    Hi,
    I installed Netweaver 7.0 enhp 2.
    Configured the system, created a new sap BI InfoCube, loaded data ok.
    Started the Query designer, and created on the InfoCube the query: SFLIGHT_Q0001.
    When I press Query - Execute (to run the query via web url),
    it opens Internet Explorer with the following URL:
    http:///irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=SFLIGHT_Q0001&VARIABLE_SCREEN=X&DUMMY=1
    This URL is incorrect and does not work.
    When I manually enter in IE the following URL, all works fine:
    http://mypcname.mycompany.com:8000/sap/bw/bex?sap-client=001&Query=SFLIGHT_Q0001
    Question 1: how do I configure the system to generate the URL correct ?
    Querstion 2: how can I change the timeout value ?
    (I sometimes get timeout 500, after refresh, runs fine.)
    thanks

    Hi,
    I installed Netweaver 7.0 enhp 2.
    Configured the system, created a new sap BI InfoCube, loaded data ok.
    Started the Query designer, and created on the InfoCube the query: SFLIGHT_Q0001.
    When I press Query - Execute (to run the query via web url),
    it opens Internet Explorer with the following URL:
    http:///irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=SFLIGHT_Q0001&VARIABLE_SCREEN=X&DUMMY=1
    This URL is incorrect and does not work.
    When I manually enter in IE the following URL, all works fine:
    http://mypcname.mycompany.com:8000/sap/bw/bex?sap-client=001&Query=SFLIGHT_Q0001
    Question 1: how do I configure the system to generate the URL correct ?
    Querstion 2: how can I change the timeout value ?
    (I sometimes get timeout 500, after refresh, runs fine.)
    thanks

  • Date to Calendar

    can anyone suggest a way to convert Date to Calendar?

    TNX! but this method returns void, I need something
    to return a Calendar objectEm.. hmm... The method is not supposed to return you the Calendar object. You have to do it in this manner:
    Calendar cal - Calendar.getInstance();
    cal.setTime(date); // The date will be set in Calendar ;)

  • How to convert date (dd/mm/yyyy) to week no. calendar?

    hi all,
    I have a question about if user enters 12/12/2004(dd/mm/yyyy), which week is that? I just know week no. should from 01 to no more than 53. How to convert date to week no.?
    Thanks

    select to_char(sysdate,'IW'),to_char(sysdate,'wW') from dual;
    for IW, the week 2 starts on the first monday after 1.Jan, for WW, the week 2 starts on 8. Jan.
    HTH
    Laurent Schneider
    OCM DBA

  • How to extract/format the calendar week from date?

    Hi,
    we are using WebI XI 3.1 SP3 in combination with SAP-BI(BW) 7.2.
    From a BW-Query we get a normal date (21.03.2011) and we want
    to show our KPIs/ key data per calender week (12.2011).
    In the universe-designer we only can get calender month from a calender day
    (right click to the dimension --> object format --> Date/.. --> Mmm jjjj).
    So the question is, HOW CAN WE GET THE CAL WEEK within SAP-BO (Universe/WEBI)?
    Thanks for help.

    Hi Tim,
    Can't you use the Week() function in Webi for this? It will return the week of the year as a number.
    Thanks

Maybe you are looking for