Regarding 0calday

hi every one
see my requirement in query is to show the date format in this way
             "JAN2006 instead of "200601"
have anyone faced this problem,if so please tell me how to do ,
thanks in advance.

SELECT
     LEFT
               CONVERT(nvarchar, GETDATE(), 107),
               3
     +
     RIGHT
               CONVERT(nvarchar, GETDATE(), 107),
               4
Maybe your regional settings are different - give a try to play with CONVERT-style
HTH

Similar Messages

  • Diff b/w sy-datum - 0calday

    hi ,
        i got a requirement that i need to show difference b/w current date and 0calday in report can any body  help me regarding this

    Hi,
    If you want to get it in Reporting itslef, you have to take 0CALDAY into rows and have to take 2 Formula variables. One FV is a Replacement path varibale with Characterstic = 0CALDAY ,Replace variable with = KEY and dimenaion indicator = Date .And another Fv should be a Customer exit variable with dimenaion indicator = Date .
    In the code for 2nd variable , you will simply asign sy-datum.
    These 2 variables are used in the formula as FV1-Fv2.
    With rgds,
    Anil Kumar Sharma .P

  • In Generic Delta By selecting 0CALDAY?

    hello all
    In generic delta,if v select <b>0calday</b> as a delta type,after selecting this delta type v need to select a field for this delta type,should v need to select <b>Time field</b> only(like Creation date,Last date of creation or something like) or <b>other than Time field</b> like select Matnr,Ername or something like this?
    Pl let me know that?
    regards
    balji

    My pleasure!!
    The following document should be very helpful for you.. i lik this paper very much..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    hope it helps..
    regards,
    Hari

  • Formula Variable with replacement path on 0CALDAY

    Hi,
    I am trying to enhance an existing query.
    I am creating a new formula variable processing by replacement path.
    In Reference Characterisitic I have choosen 0CALDAY.
    In the tab options , I selected replacement path.
    In the replacement path tab, in Replacement Rule /replace variable with I am trying to select the variable. But in the variable list I am not able to find 0CALDAY variable, which we have already created and restricting in some other key figures.
    Please help me in this regard.
    Thanks & Regards,
    Madhav

    Hey in the replacement path tab you need to choose either its infoobject or variable from which the value needs to be taken.
    If you choose infoobject you get the options of choosing its attributes etc.
    If you choose variable you get option to choose variable associated.
    But under "General Tab" under reference characteristic you need to choose your CALDAY.
    Hope this helps.
    Edited by: Praveen G on Sep 26, 2008 5:53 AM

  • What are the variables available on 0CALDAY

    HI EXPERTS,
    I want to know the list of variables on a 0calday.How can i know?
    Can i get this information for all the standard characteristics / time chars.?
    Beacause ,when i open my query designer ,i see only few variables under the characteristic 0calday.
    For example,
    when user enters a date, i need to show him both entered date   and entire months in next column.
    so i need to find.Is there any SAP variable available already for this purpose?
    I aslo have some columns.........etc,,
    Can any one help. me..
    Regards
    Laxman

    Hi Experts,
    I want to extend my doubt a little more.
    I have a requirment  as below.
    User will enter a range of Date say 01.06.2011 to 25.06.2011.
    I need to show him data in two columns one cloumn for the entered day range and second column for prevoius month date rangei.e(01.05.2011 to 25.05.2011)
    can i achive this without  using Customer Exit.
    Regards
    Laxman

  • Problem in loading 0calday infoobject date format through Flatfile in cube

    Hi All,
    I am facing problem  in loading the 0calday infoobject  data through flat file( format - test.csv) in infocube..
    Suppose consider we are having two flat files(test1.csv,test2.csv).
    1.First file(test1.csv) has a proper date format (ie YYYYMMDD), while loading it is succesfully .
    2.Second file(test2.csv) has improper date format(ie DDMMYYYY), loading fails because of this format..
    Is it possible to write the Routine(Start Routine) in the Infopackage (External data-Tab) in such a way the if the flat file(test1.csv) is proper date format load calday data without any conversion, if the file is test2.csv convert the date field format from (DDMMYYYY) to (YYYYMMDD) and finally laod data in cube.
    With regards,
    Hari.
    +91 9323839017

    Hello Dinesh,Anil
    There is no distinguishing field between the two flat file loads.
    We are using only one infoobject(ie 0calday) for two loads.
    We are using two external source system(one system generate file as YYYYMMDD date format,and another system generate date formate as DDMMYYY, here two file names are unique.
    Here my requirement is i have to compare two file names using start routine of the package (tab:External data) .
    if(test1.csv)
    load as it is 0calday data (since it is in proper format YYYYMMDD)
    else if(test2.csv)
    then convert from DDMMYYYY to YYYYMMDD and load data to 0calday infoobject in cube.
    Is it possible to compare two files names using start routine.
    with regards,
    Hari

  • How to determine 0calday from 0fiscper field ?

    we have a requirement where the user will enter the calmonth variable in the user input, and need to get the amount for top 20 customer's on sales, in the report. The problem is we dont have calmonth in the infocube. we have only 0fiscper and 0fiscalyear , and -0calday.
    0calday is mapped to the transaction date. No calmonth in the infocube and we cannot add it now. its too late.
    The columns we need in the report are ( orange color are column names)
    customer        YTD           DEC 2012 ( sales amount) ....for top 20 customers. like
    customer 1      99999            900
    customer 2      55555             200
    customer 20      11111             234
    sample data is as follows: ...what I want is user will input 0calmonth and 0fiscalyear. and I need to display the data for that month . Please advise how to achieve it. YTD - is 1st of jan of the current year till today's date right ? Irrespective of the user entry variable. Is that right ?

    Now as per your suggestion, I have restricted Z_FY_INPUT to the KF, and created another ZYTD and put this as Z_FY_INPUT as replacement path and and put offshet as 2 to 4 on it.
    Again i will clarfiy:
    First selection--Revenue KF--Fiscper--variable--User input--Z_FY_INPUT--This selection will give the value of that period which user is entering.If user enters 004.2014 so it will give value for the same.Correct!
    Now for YTD we need data from 001.2014 to 004.2014. correct..
    A) Take the revenue KF--Drag and drop 0fiscper --Restrict--Show--Value ranges---Less than or equal to--Choose the variable Z_FY_INPUT.
    B) Now again restrict the above selection with 0fiscyear--Create a characteristic variable with replacement path--Follow steps with screenshot as mentioned in the document.
    So basically for YTD you have restricted with two variables based respectively on 0fiscper and 0fiscyear.
    How this works let me explain that also.
    In Part A i have restricted the kf with the same user input variable which you used in first selection but the range less that or equal to.
    Till this stage if user enters 004.2014 then it will bring all the data which is less or equal to the user input which is not our requirement.We need data from the starting of the year upto user entered value.
    In Part B we have restricted the same selection with replacement path variable on 0fiscyear--We are replacing it with variable entered by user.
    So now this part will hold only the year i.e 2014..How--user entered 004.2014.
    Internal format K42014004--Offset we have given 2 length 4..
    Which gives 2014.
    On combining both the parts we get data data from the starting of the year up to the user entered value.
    I tried my level best to explain you how this works and believe me i have created YTD using the same method in so many queries and it really works as desired.
    Regards,
    AL

  • Regarding generic extractors

    hi gurus help me .
                                in ge extraction we have delta loads as . 1. time stamp.2.calenday . 3. numericpointer.
    can u provide details in which situations we use this parameters .and what exactly these are uesd for induvidually
    provide me with an example please
    advance thanks

    HI,
    0calday -- is to be run only once a day that to at the end of the day and with a range of 5 min. Numeric Pointer -- is to be used for the tables where it allows only appending of records ana no change .. eg: CATSDB HRtime managent table .
    Timestamp: using this you can always delta as many times as possible with a upeprlimit .
    CHeck this out:
    [GENERIC EXTRACTION DELTA SETTINGS;
    [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/9821620553053de10000000a1553f6/content.htm]
    Hope this helps you.
    Regards,
    Ishdeep.

  • REgarding Assignment details in RRI

    Hi Masters
    Now I have done RRI and this is working fine. There is one modification when I right click on 0calday that should not go to jump target(receiver query report). Hence, i have fixed delete type in assginment details in RSBBS for 0calday. Eventhough, it's going to receiver report. this should not happen.
    Could u please help me?
    Regards
    Raja

    Hi Prakash
      I set Delete type only for 0calday characteristics. Even though when I right click on 0calday report, it's getting reflected for second query.
    Thanks in advance
    Raja.S

  • Choose 0calday from calendar screen in BEx Web input screen

    Hi Experts
    Is it possible to present variable input screen for 0calday as a calendar in BEx Web? The possible dates should be presented as it is in BEx Analyzer.   
    Kind regards
    Erik

    Hi Erik,
    Have you seen this:
    http://help.sap.com/saphelp_nw04/helpdata/en/61/886b3ca681207ee10000000a11405a/content.htm
    Hope this helps...

  • Non-cumulative cubes require 0CALDAY in Netweaver 2004s?

    Dear all,
    I just noticed, that under NW2004s you are not able anymore to activate a cube (containing non-cumulative data, like stock data) that does not contain 0CALDAY as a time characteristics.
    So far our stock cube is only based on 0CALMON and I have not planned to change this. It worked for many years and I really do not need 0CALDAY in there...
    Does someone know, why this has changed and whether I can do anything against it? Is there some kind of documentation or information regarding this change?
    Thanks,
    Andreas

    Hi,
    this happesn becuase non-cumulative aggreagte based on key date( ie.e values of the key figures till that date value) and if there is no key date given in the query then they take 0CALDAY as defualt key date.
    Now in some cases the two cubes may be able to show the correct data becasue of aggregation happening on that level may bring the correct result but in some cases the date could be different and thats why the values are not macthing
    Thats why it is not allowed to use more then one non-cumulative in a multicube.
    Thanks
    Ajeet

  • How to Report on Hourly Basis from BW in HH-MM(not on 0calday)

    Hi Pals,
    I need suggestions as my current user wants to report on every 2 hours(and staged into BW ODS) based on Time(HH-MM). Though we can bring details in BW on every 2 hrs but the issue is how to bring the Time characteristics in HH,MM. Requirement is to keep track of orders and deliveries with a precision on Time(i.e 12:10 PM). And when ever there is a chnage in OLTP box then based on scheduled extract it must reflect the time in hours and minutes.
    Robert and party do you suggest to make chnages to existing Extractors and cast a new InfoObject in extracts to bring such kind of details. If yes then we need to create this as NUMC(0CALDAY is lowest Time characteristics).
    Please suggest and let me know if this is possible then what are the pros and cons for this approach. I clearly agree that this kind of details can be best brought from OLTP box.
    Sanjeev

    Hi,
    Since you are going to load very frequently, please consider note 620361 in terms of problems to expect. BW is not (yet) build for such high frequency loads. (too many admin overhead.) In BI 7.0 a new ODS type for direct update is available. This has no activation queue and less admin. Purpose to directly update from 2LIS** or your kind of scenario. Isn't it possible to build or use a remote cube scenario ? For the time registration as stated use 0TIME.
    Kind regards, Patrick Rieken.

  • Very urgent - Regarding variables on Multicube.

    Hi Experts
    I created a multicube using two basic cubes(one for R/3 data and another one for CRM Data).
    In my reports i want to put 2 variables for CRM(Debit memo date) and R/3 (Billing Date).
    when i execute the report without entering any values for both the dates i am getting the values from both the cubes.
    If i enter the dates in selection condition for both the variables i am not getting the values.
    If I enter one variable value and viceversa i am getting the values from the respective cube.
    so why i am not getting the valuse by entering values for both the varibales in selection.
    Thanks
    Shiva

    Hi,
    Both dates are based on 0CALDAY. Looks like you give different selections for 0CALDAY and the system doesn't understand which one to use. Try to give the same dates for both variables. Will it bring any data?
    Which selections have you tried already?
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • 0CALDAY as a key field

    Hello All,
    I made some changes to tansformation for calculation of some keyfigures from one DSO to another. The changes were calculating the keyfigure correctly. But in the target DSO the 0CALDAY is selected as a key field, due to which the records from the past are getting deleted. How can make sure that the deletion doesnt happen.
    Thanks in advance.
    Regards,
    NK

    Hi,
    Addition of extra key field will not delete or overwrite any records from the DSO for eg. if you have A,B, C as key fields in source and in target you have A,B,C & date then in target you will have more records in target DSO than source.
    Give more details about your scenario, If you are loosing some data then you might be missing some field from key field.
    Regards,
    Durgesh.

  • Need help in fetching data - 0CALDAY and 0FISCPER

    Hi BW Gurus,
    Have a doubt in creating a query in a multi provider..
    The multi provider has three cubes.
    Two of them have data at Calday level, while another has data at fiscper level..
    fiscper is not maintained in the cubes having data at calday level ..
    I have to create a query on the multiprovider pulling data from all three cubes .. And the data to be restricted on the basis of fisper level ..
    Could anyone suggest me how to go about it ..
    Regards.

    Hi saugata,
    Both the selection will work.
    But I was wrong when I said Fiscal period will be easy.
    Because getting the date from fiscal period will be quite tricky in the case your user selection is range for Fiscal period As after user enters a fisacl period value you will always have to get the last date of the month for that fiscal period and which will require you to write the code to get last date of month  as 30 or 31 . Also you will have to take care of the leap year in the case of feb to get 29
    So that will requier you to write the complex code.
    Better is you should go for the calendar day range for the user input as it will just require you get the fiscal period which can be just done by offset and concatenation
    01.01.2006 can easily be converted to 001.2006
    and 12.02.2006 can be converted 002.2006
    There is one more solution
    Check if your Cube contains 0CALMONTH/YEAR in your Cube where you have 0CALDAY or you can bring just by mappping your day with it.And check whether your fisacl variant is K4 coming up from R/3 it is always compounded with 0FISCYR then you can restrict your data with 0CALMONTH/YEAR only. and the conversion of 0CALMONTH/YEAR is pretty simple.
    All these are options upon which you can work
    I would say you should go for calmonth year as it will be a simple routine.
    Hope it helps you understand better.
    Thanks

Maybe you are looking for

  • MB_CREATE_GOODS_MOVEMENT with & without Item text

    Hi Experts, I am using MB_CREATE_GOODS_MOVEMENT to create GR. for plant A I have a set of data, which does not have Item text , I find GR is created successfully. For plant B, I have another set of data , which does not have Item text(MSEG-SGTXT). GR

  • URL Hyperlink that wraps from line to line won't work in PDF

    What's going on with the hyperlink feature that I can't make my links work in the PDF (or in InDesign). I searched for this topic on here and found a couple things that I tried, but with no success. I am using a PC, InDesign CS2 and Acrobat 8. A coup

  • Query Tuning

    Hi All, My Oracle database is running on 10.2.0.2.0 on RHEL 5.4 64 bit. I need some tuning guide line for below SQL: select  rnii.order_id,           rnii.asin,           rnii.gl_product_group,           rnii.warehouse_id,           rtrim(rnii.vendor

  • Can i airplay to apple tv3 from my iphone4?

    I am thinking buying an apple tv, but I just wandering if it can airplay from my Iphone4 (seems all the website on apple are using ipad or 4s as airplay example). anyone can help out a little here?

  • Shipment cost not calculating on VT01N

    Hi Gurus, I have configured the shipment cost configuration in all the relevant areas of Transportation node but still Shipment Cost is not calculating in VT01N. Following configuration has been done:   Define Routes Define Modes of Transport Define