Regarding Conversion to date in OBIEE

Hi
I am pulling a date column from an as/400 source wherein I have two issues:
1. The date is displayed 19761027.0 (1976 is the year,10 is the month and 27 is the date). The data type is Integer. I need to convert this to date and in the following format mm/dd/yyyy
2. I need to add 26 to the year so that it shows the current year 2012.
How can I achieve this in the RPD? Which conversion function should i choose?
Vikram

Vikram VV wrote:
Hi
I am pulling a date column from an as/400 source wherein I have two issues:
1. The date is displayed 19761027.0 (1976 is the year,10 is the month and 27 is the date). The data type is Integer. I need to convert this to date and in the following format mm/dd/yyyy
2. I need to add 26 to the year so that it shows the current year 2012.
How can I achieve this in the RPD? Which conversion function should i choose?
VikramCould you create a column where you would add the 260000 to the existing column and then join that on the date WID of the time dimension and retrieve the date from the Time dimension ? You could always use casting but this would give you better flexibility going forward if you ever needed anything from time dimension.

Similar Messages

  • Regarding conversion of date in wd abap

    Hi All,
          I have created an ui element i.e a table and in that one row is for getting the date of birth.i have binded this table with a table which is in dictionary structure. while running my application I am not getting the date of birth in correct format.
    say for example i require the correct output i.e DOB as 01.01.1970 but i am getting the wrong output in this field as 19700101.so if there is any function module or any way to do the date conversion then give it.
    Thanking you All in advance.

    hi,
    Use this FM CONVERSION_EXIT_PDATE_OUTPUT.This will always converts from system(YYYYMMDD) to user format.
    Thanks,
    suman

  • Regarding conversion of date in abap

    Hi All,
    while running my application I am not getting the date of birth in correct format.
    say for example i require the correct output i.e DOB as 01.01.1970 but i am getting the wrong output in this field as 19700101.so if there is any function module or any way to do the date conversion then give it i.e. how can I convert the date from string to date format.If any one knows the solution then revert me back.
    Thanking you All in advance.

    say your user setting format is mm.dd.yyyy
    now, data: v_date like sy-datum.
    move the data to V_date.
    write:/ v_date.
    as your user setting format is mm.dd.yyyy it displays as 01.01.1997 although internally it stores as 19970101

  • Open conversions in data dictionary

    Dear experts,
    We have been trying to install an ST-PI package in an SAP system.However,it gives a warning saying "Open conversions in data dictionary". It says - Some open conversion requests still exists for the following ABAP data dictionary objects.To avoid inconsistencies and data losses you must process these conversions first. 
    Further it asks us to run the transaction SE14 which points towards the table GLPCA and says Index Z1 does not exist.
    What can be the cause behind this?I do not have an ABAP background.So,hoping if you could help me out.
    Regards,
    Minuj
    Edited by: minuj sarma on Feb 22, 2008 2:12 PM

    hi  sagar,
    Go to transaction SE14 and choose the following options in the menu
    DB requests --> Terminated
    Reward points if usefull,
    Thanks,
    Kalyan.

  • How to render XML data in OBIEE

    Hi
    I have requirement where XML data need to be rendered and parsed in OBIEE reports.I need some help regarding the below questions
    1)How can we call the XML data in OBIEE and can we parse XML file in Text or Table formats
    2)Another requirement is we need to compare two XML file(May be Stored in @ columns) and then display the Message as 'Difference' or 'NO Difference'.
    Thanks in Advance

    hi
    i m having same problem.
    we cant pass XML in Answers but i think (not sure) we can pass in publisher..
    thanks

  • Regarding Transformation and Data Transfer Process(DTP)

    Dear Gurus
    1) Transformation replaces the transfer rule and update rule.
    2) DTP replaces the info package.
    Hencse, there is a some advantages are there in Transformation and DTP.
    I couldn't understand in help.sap.com.
    Could you please tell me in simple language what all are the new features are there in Transformation and DTP which is not possible in Transfer rule, Update rule and infopackage.
    Thanks and Regards
    Raja

    Hi Raja,
    These are the advantages of DTP and Transformation over their predecessors.
    DTP:1)Improved transparency of staging processes across data warehouselayers (PSA, DWH layer, ODS layer, Architected Data Marts)
    2)Improved performance:Intrinsic parallelism
    3)Separation of delta mechanism for different data targets: delta capability is controlled by the DTP
    4)Enhanced filtering in data flow
    5)Repair modes based on temporary buffers (buffers keep complete set of data)
    Transformation:   SAP NetWeaver2004s significantly improves transformation capabilities. The improved graphical UI contributes to decrease TCO.
    1)Transformation Improved performance, flexibility and usability 
    2)Graphical UI
    3)Unification and simplification of transfer and update rules
    4)New rule type: end routine
    5)New rule type: expert routine (pure coding of transformation)
    6)Unit Conversion Capabilities for unit conversion during data load (and reporting)
    Assign points if it is helpful.
    Cheers,
    Bharath

  • Question regarding roaming and data usage

    I am currently out of my main country of service, and as such I have a question regarding roaming and data usage.
    I am told that the airplane mode is sufficient from keeping the phone off from roaming, but does this apply to any background data usage for applications and such?
    If the phone is in airplane mode, are all use of the phone including wifi and application use through the wifi outside of all extra charges from roaming?

    Ann154 wrote:
    If you are getting charged to use the wifi, then it is possible.  Otherwise no
    Just to elaborate here, Ann154 is referring to access charges for wifi, which is nothing to do with Verizon, so if you are using it in a plane, hotel, an internet cafe etc that charges for Wifi rather than being free .   Verizon does not charge you (or indeed know about!) wifi usage, or any other usage that is not on their cellular network (such as using a foreign SIM for example in global phones)  So these charges, if any, will not show up on the verizon bill app.  Having it in airplane mode prevents all cellular data traffic so you should be fine

  • How can I  custom my date  in OBIEE.

    How can I custom my date in OBIEE.I want to see date in my user friendly format for Date Format MM/DD/YYYY to filter with
    leading zero(number) eg (01.21.2008) and not M/D/YYYY (1.21.2008) that i am seeing.I would appreciate it if you could give me a step by step process on how to do it in RPD.I know how to change the data format in my column propeties since i have more that 5000 columns that need changed.I am looking for a localised area
    that can take care of business.
    Thanks

    Edit the following parameters in OracleBI\web\config\localedefinitions.xml
    - Search for the locale that you want to customize by looking for the tag *<localeDefinition name="en">*
    - Customize the following tags as you require
    <property name="dateShortFormat">MM/DD/YYYY</property>
    <property name="dateLongFormat">dddd, MMMM dd, yyyy</property>
    - Restart the presentation server

  • Retrieving data from OBIEE server using ODBC

    Hello.
    I am having difficulty retrieving data from OBIEE 11g using the ODBC connection. My intention is to read OBIEE Server data via a SQL statement issued from an Oracle database using gateways.
    I have read and followed the material here:
    http://download.oracle.com/docs/cd/E14571_01/bi.1111/e16364/odbc_data_source.htm#CACBFCJA
    I have also tried this from Excel 2007, but have not succeeded:
    http://gerardnico.com/wiki/dat/obiee/import_data_from_obiee_to_excel
    I have setup a gateway in Oracle and a database link. Iknow it is connecting because when I change the password to something invalid, I get a message about not being able to connect due to username/password.
    I have taken a query from Answers (the advanced tab) and tried running it from Sql Developer. The nsqserver.log file ends up with the following Notification:
    [nQSError: 13013] Init block, 'DUAL Num (=3)', has more variables than the query select list.
    As an experiment, I am using the SampleApp, and have generated the following query in Answers:
    SELECT s_0, s_1, s_2, s_3 FROM (
    SELECT
    0 s_0,
    "A - Sample Sales"."Products"."P3 LOB" s_1,
    DESCRIPTOR_IDOF("A - Sample Sales"."Products"."P3 LOB") s_2,
    "A - Sample Sales"."Base Facts"."1- Revenue" s_3
    FROM "A - Sample Sales"
    ) djm ORDER BY 1, 2 ASC NULLS LAST
    Is there a way to issue this query from a database client like SQL Developer? I have setup a database link called obiee via gateways to the ODBC connection, and add @obiee after the table name in the above query, but get the nqs error above.
    Thanks for any help. I can provide addl info if such would be useful.
    Ari

    That would explain my difficulty. I went to the link:
    http://download.oracle.com/docs/cd/E14571_01/relnotes.1111/e10132/biee.htm#CHDIFHEE
    that describes the deprecated client. I am confused by the statement there:
    "one of the many widely available third-party ODBC/JDBC tools to satisfy previous NQClient functionality"
    My understanding of ODBC is not very strong, so please bear with me. The statement above is talking about a client tool, but there also needs to be an ODBC driver available for BI Server. I may be a bit confused between driver and client, and what piece nq handles. I don't understand the comment about third-party ODBC when it comes to the driver piece, as that must be coded for BI Server. When I go to create a new DSN, the only driver that makes sense for me to select is:
    Oracle BI Server 11g_OH<id>
    That all works fine to setup a DSN. But I am unable to connect from Excel, etc., using this DSN.
    Put more simply, should I be able to connect to BI Server via ODBC - not using the deprecated BI ODBC client, but using other clients? Is there ODBC connectivity at all in OBIEE 11g?
    Thanks,
    Ari

  • Regarding conversion of image to video

    Hi All,
    I need a small help. My requirement is to convert a text file in to an image file by attaching a background and that image is converted into video file by attaching audio file. please guide me how i can achieve this using sun java API. Is this facility is available in sun java API,s or any other API's should i use.
    Please Guide me.
    I aplogize for my poor English.
    Regards,
    Rama Devi.

    Date date=new Date();You don't need this line.
    Date dateFormatter = new
    er = new
    SimpleDateFormat("yyyy'-'MM'-'dd").parse(str1);;As already told, you don't need the single quotes. And you don't need two semi-colons - that's unnecessary.
    I just wrote a sample code to test that out. Check it and see for yourself.
    import java.text.SimpleDateFormat;
    public class Test {
         public static void main(String[] args) throws Exception {
              System.out.println(new SimpleDateFormat("yyyy-MM-dd").parse("2005-04-18"));
              System.out.println(new SimpleDateFormat("'yyyy'-'MM'-'dd'").parse("2005-04-18"));
    }Output:
    Mon Apr 18 00:00:00 EDT 2005
    Exception in thread "main" java.text.ParseException: Unparseable date: "2005-04-18"
            at java.text.DateFormat.parse(DateFormat.java:335)
            at Test.main(Test.java:6)I wonder why it is not feasible to write a quick sample code.

  • Regarding Payment Terms date in MIR0 Transaction

    Hi,
    This is regarding payment terms date in MIR0 Transaction.
    Actual Scenario : Pay on the 25th of the next month following the delivery, or if the 25th of the next month following the delivery has been exceeded,pay 10 days from the invoice date.
    Help required with immediate attention
    Brief Description Example wise:
    Case1:
    We have a delivery in our hand for that the billing date is consecutive month's 25th, briefly we can say that, If you raise a delivery in this month(any day of the month,i.e.,1 to 30 of the month) the payment must be done on the very next month's 25th.
    Case2:
    Invoice is generated and it must get fired after 10days.
    If the date(Payment) is (After 10days) Less than 25th April then prefer25th
    If the date(Payment) is (After 10days) Greater than
    25th April then prefer higher date(>25th April).
    How to include this logic in the MIRO Transaction. For this any UserExit is available please let me know.

    You can do that in transaction "Manager Business Partners" / BBPMAININT. Add the purchasing org and you will be able to complete this.
    Regards
    Kathirvel

  • How to get the Maximum of two calender dates in OBIEE 11g Analytics

    Hi,
    I have requirement like getting the  maximum calendar date from two calendar dates in obiee 11g reports and  the requirement is like the following
    max(Reported.Calendar date, Returned.Calendar Date)
    can anyone help me to solve this issue.
    Thanks,

    Something like this...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select to_date('17-nov-2006','dd-mon-yyyy') as c_start_date, to_date('21-jan-2008','dd-mon-yyyy') as c_end_date from dual union all
      2             select to_date('21-nov-2006','dd-mon-yyyy'), to_date('17-feb-2008','dd-mon-yyyy') from dual union all
      3             select to_date('21-jun-2006','dd-mon-yyyy'), to_date('17-jul-2008','dd-mon-yyyy') from dual
      4             )
      5  -- end of test data
      6  select c_start_date, c_end_date
      7        ,trunc(months_between(c_end_date, c_start_date) / 12) as yrs
      8        ,trunc(mod(months_between(c_end_date, c_start_date), 12)) as mnths
      9        ,trunc(c_end_date - add_months(c_start_date, trunc(months_between(c_end_date, c_start_date)))) as dys
    10* from t
    SQL> /
    C_START_D C_END_DAT        YRS      MNTHS        DYS
    17-NOV-06 21-JAN-08          1          2          4
    21-NOV-06 17-FEB-08          1          2         27
    21-JUN-06 17-JUL-08          2          0         26
    SQL>But, don't forget that different months have different numbers of days, and leap years can effect it too.

  • Implicit Conversion from data type sql_variant to datetime is not allowed.

     Getting a odd error. This code was working perfectly before a SQLServer upgrade.
    The linked database is working, I'm able to pull up data from it in separate queries just fine.
    I'm getting the following error.
    Implicit conversion from data type sql_variant to datetime is not allowed. Use the CONVERT function to run this query.
    Invalid column name 'TotalDay'. (.Net SqlClient Data Provider)
    can anyone spot the issue? I've tried sever variations of the same code, but still get the same thing.
    If I put this section in a query by it self it works just fine.
    ( DATEDIFF(ss,
    CONVERT(VARCHAR(10),( SELECT TOP ( 1 )
    TimeDate
    FROM [nav].AcsLog.dbo.EvnLog AS X3
    WHERE UDF2 = E.No_
    AND CONVERT(VARCHAR(10), X3.TimeDate, 101) = CONVERT(VARCHAR(10), @sdate, 101)
    ORDER BY TimeDate ASC
    ),101),
    CONVERT(VARCHAR(10),( SELECT TOP ( 1 )
    TimeDate
    FROM [nav].AcsLog.dbo.EvnLog AS X4
    WHERE UDF2 = E.No_
    AND CONVERT(VARCHAR(10), X4.TimeDate, 101) = CONVERT(VARCHAR(10), @sdate, 101)
    ORDER BY TimeDate DESC
    ),101)) ) AS TotalDayBadge ,

    >ANDCONVERT(VARCHAR(10),X3.TimeDate,101)=CONVERT(VARCHAR(10),@sdate,101)
    It is not a good idea to use string dates for predicates in WHERE clauses.
    Use DATETIME or DATE in predicates.
    If you are not interested in the time part of DATETIME, use DATE datatype.
    Example:
    SELECT CONVERT(DATE, getdate());
    -- 2014-08-25
    Datetime conversions:
    http://www.sqlusa.com/bestpractices/datetimeconversion/
    Between dates:
    http://www.sqlusa.com/bestpractices2008/between-dates/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Disallowed implicit conversion from data type datetime to data type timestamp

    Received error: [Macromedia][SQLServer JDBC
    Driver][SQLServer]Disallowed implicit conversion from data type
    datetime to data type timestamp, table 'myTbl', column 'duration'.
    Use the CONVERT function to run this query.
    I have a field named duration hh:mm:ss.lll that I am trying
    to insert into MS SQL. DB has field defined as [duration]
    [timestamp] NOT NULL,
    My insert has this: INSERT INTO myTbl( duration) VALUES(
    <cfqueryparam value="2006-05-26 11:12:13"
    cfsqltype="CF_SQL_TIMESTAMP"/> )
    Why does this not work? rrrrrrrrrrrrrr! BTW: also tried with
    seconds as 13.111 which did not work. Does the db duration need to
    be date? I just want to store a duration for the time of a movie...
    10 Q

    quote:
    Originally posted by:
    quiet1
    Received error: [Macromedia][SQLServer JDBC
    Driver][SQLServer]Disallowed implicit conversion from data type
    datetime to data type timestamp, table 'myTbl', column 'duration'.
    Use the CONVERT function to run this query.
    I have a field named duration hh:mm:ss.lll that I am trying
    to insert into MS SQL. DB has field defined as [duration]
    [timestamp] NOT NULL,
    My insert has this: INSERT INTO myTbl( duration) VALUES(
    <cfqueryparam value="2006-05-26 11:12:13"
    cfsqltype="CF_SQL_TIMESTAMP"/> )
    Why does this not work? rrrrrrrrrrrrrr! BTW: also tried with
    seconds as 13.111 which did not work. Does the db duration need to
    be date? I just want to store a duration for the time of a movie...
    10 Q
    Duration as a timestamp? How odd, most people would store it
    as an integer. Or, if you want to build your own string, the syntax
    is {ts 'yyyy-mm-dd hh:mm:ss'}. The seconds might not be required.
    In any event, use createodbcdatetime() for the value you want
    to put into your table.

  • How to implement real-time refresh datas in obiee?

    How to implement real-time refresh datas in obiee?

    Can you elaborate more...
    If you want to see refreshed data in OBIEE Reports, you need to implement Caching mechanism based on how you often refresh warehouse..
    [http://download.oracle.com/docs/cd/E05553_01/books/admintool/admintool_QueryCaching6.html]

Maybe you are looking for

  • Como deixar a codificação padrão "iso-8859-1" ao invés de "utf-8" no navegador?

    Quando faço o acesso ao banco do meu cartão de crédito, a primeira pagina deles é codificada com "UTF-8" e também existe o comando "charset=utf-8" no código HTML, após digitar o número do cartão, ele direciona para outra página, porém codificada com

  • Qosmio F30 - no sound on Windows XP Pro

    hello, first i have install Windows XP MCE, but few day ago i install Windows XP Profesional edition, and lose sound in my notebook. What was happen? How I can fix that? Someone say that is becouse Qosmio F30 cannot support Profesional edition. Truth

  • Clearing VAT GL open items with EBS

    In some countries like France and Mexico. VAT  taxes are not recognized when an invoice is issued, but when a payment is made. I want to clear VAT GL Open items using Bank reconciliation EBS. Instead of clearing using Deferred process program RFUMSV5

  • Sending controller context value attributes to web service model

    Hi, I have put some parameters (value Attributes) in controller context and mapped to different views. Is there any way by which i can send the values to the web service model , each time the web service is called? like through header or some thing l

  • Past calendar events don't show in Outlook

    My calendar events from 4 months back doesn't show in Outlook, but I am able to see everything through the oracle client. Is there any setting I can use to correst that.