DATE format mili seconds

Do you know about Date format in miliseconds with TO_CHAR() function?

You'll need to use TIMESTAMP for milliseconds. You can find this well documented in the SQL Reference.
Thanks,
Tyler

Similar Messages

  • Problem in converting the date format in Second's place

    I am developing an application using OAF in JDeveloper.
    I have to pass the current date from my page to a quary to filter the data.
    I used the following:
    String PresentDate=this.getOADBTransaction().getCurrentDBDate().toString();
    However it is sending a date like '2011-03-22 17:04:14.0'. Here if you see the seconds place, it has a fraction as well.
    I need to convert it by using TO_DATE(PresentDate, 'YYYY-MM-DD HH24:MI:SS')
    But because of the fraction in Seconds place, it gives an error.
    Can anyone help me to solve this problem?
    Thanks & Regards
    Hawker

    Hawker,
    Instead of that use..
    //Calling dateValue( ) does not include time.
    long sysdate = transaction.getCurrentDBDate().dateValue();
    Regards,
    Gyan

  • Converting time stamp in SECONDS to a calendar date format.. problems

    Hello. I'm trying to convert a long interger that represents the number of SECONDS passed since the 1970 date
    the number was originally generated by php's mktime() function
    one of the numbers I have for example is this : 1126933200
    I haven't done the math but this is a date probably around september of 2005.. it's irrelevant anyhow.
    I want to convert this to a date format I can use in java. I've tried to create a new date like so :
    Date date = new Date(1126933200);
    I've also tried it with the calendar method like so :
    Calendar calendar = new GregorianCalendar();
    calendar.setTimeInMillis(1126933200);
    it was only then that I realized that both these methods require the number of MILLI seconds. So I tried doing a simple multiplication by 1000 on my original number and then I started getting a "integer number too large" error when trying to compile.
    so i'm kind of at a loss here.. i figure I could make a function myself that would divide my number in days of 86400 seconds.. and then i'd have to keep in mind the bisectal (sp) and the months with more and less days etc.. but i'm sure there must be an easier way.
    and i don't get why a method who's meant to receive a very long number is giving me an error when i try to give one to it.
    your help is appreciated as always. thanks

    Hello. I'm trying to convert a long interger that
    represents the number of SECONDS passed since the
    1970 date
    the number was originally generated by php's mktime()
    function
    one of the numbers I have for example is this :
    1126933200
    I haven't done the math but this is a date probably
    around september of 2005.. it's irrelevant anyhow.
    I want to convert this to a date format I can use in
    java. I've tried to create a new date like so :
    Date date = new Date(1126933200);
    I've also tried it with the calendar method like so
    Calendar calendar = new GregorianCalendar();
    calendar.setTimeInMillis(1126933200);
    it was only then that I realized that both these
    methods require the number of MILLI seconds. So I
    tried doing a simple multiplication by 1000 on my
    original number and then I started getting a "integer
    number too large" error when trying to compile.So you needed to add L to one of the numbers.
    Note you also need to define what timezone that seconds number represents.
    With Gregorian it is going to use the local timezone (the code here will anyways). The code using Date is using the UTC timezone.

  • How to change data shown as seconds format in to full hour (HH:MM:SS)?

    Hello
    I have created a table with data that represents time.
    This data are shown in seconds format.
    How can I change this format in to full hour (HH:MM:SS) format?

    Hello,
    Click on the small hand icon on the column and click on data format tab and you can change to any custom format you want.
    thanks
    DS

  • Problem with SQL*Loader and different date formats in the same file

    DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    System: AIX 5.3.0.0
    Hello,
    I'm using SQL*Loader to import semi-colon separated values into a table. The files are delivered to us by a data provider who concatenates data from different sources and this results in us having different date formats within the same file. For example:
    ...;2010-12-31;22/11/1932;...
    I load this data using the following lines in the control file:
    EXECUTIONDATE1     TIMESTAMP     NULLIF EXECUTIONDATE1=BLANKS     "TO_DATE(:EXECUTIONDATE1, 'YYYY-MM-DD')",
    DELDOB          TIMESTAMP     NULLIF DELDOB=BLANKS          "TO_DATE(:DELDOB, 'DD/MM/YYYY')",
    The relevant NLS parameters:
    NLS_LANGUAGE=FRENCH
    NLS_DATE_FORMAT=DD/MM/RR
    NLS_DATE_LANGUAGE=FRENCH
    If I load this file as is the values loaded into the table are 31 dec 2010 and 22 nov *2032*, aven though the years are on 4 digits. If I change the NLS_DATE_FORMAT to DD/MM/YYYY then the second date value will be loaded correctly, but the first value will be loaded as 31 dec *2020* !!
    How can I get both date values to load correctly?
    Thanks!
    Sylvain

    This is very strange, after running a few tests I realized that if the year is 19XX then it will get loaded as 2019, and if it is 20XX then it will be 2020. I'm guessing it may have something to do with certain env variables that aren't set up properly because I'm fairly sure my SQL*Loader control file is correct... I'll run more tests :-(

  • OAF changes Date Format

    Hi
    I need to store a date into a flexfield. We have enabled the Flexfield and there is NO value set attached to it.
    This attribute is already in the VO as a varchar, so we have just added a new column into the page as data type Date and link it to the flexfield column.
    In this page we have a table layout so the user can enter 10 rows before saving them. And this page it just used to punch data into a table, which means, once the user press apply the page saves and clears. The user can not query on that page.
    When entering the first row, we can open the Date picker and we can choose the date and then it populates the column as “DD-MON-YYYY”.
    The problem is:
    When we entering the second row after entering one column the pages changes the format of my date from the previous record to “YYYY-MM-DD”, then after entering any second column the pages clear the date from the previous row.
    Running the page from JDev it shows the following message before clears the flexfield:
    java.text.ParseException: 2011-01-28
    Note we have not extended the VO and not extended the controller.
    My questions are:
    1) Why the Self-Service is change the date format to YYYY-MM-DD even if the profile ICX: Date Format Mask (31-DEC-1999) and my preference is set to DD-MON-YYYY?
    2) How can I avoid this to happen? Is there any way to keep my date as DD-MON-YYYY?
    Thanks,
    Alex

    Alex,
    That was the update from Oracle support, when we raised it,
    But I did the following to handle that, I feel this is not the right way, since we had that issue as SEV1, I did that as a workaround,
    Check this this might help.
    package oracle.apps.xxper.selfservice.appraisals.webui;
    import com.sun.java.util.collections.HashMap;
    import java.io.Serializable;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.webui.*;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageCheckBoxBean;
    import oracle.apps.per.selfservice.appraisals.ApprConstants;
    import oracle.apps.per.selfservice.arch.webui.PerOAControllerImpl;
    import oracle.apps.per.selfservice.common.webui.CommonCO;
    import oracle.apps.per.selfservice.compgaps.Constants;
    import oracle.apps.per.selfservice.appraisals.webui.MAFinalRatingsPageCO;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.apps.fnd.framework.OAViewObject;
    import java.sql.CallableStatement;
    import java.sql.ResultSet;
    import oracle.jbo.Row;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageDateFieldBean;
    import oracle.apps.per.selfservice.appraisals.server.AppraisalVORowImpl;
    public class XXPERMAFinalRatingsPageCO extends MAFinalRatingsPageCO
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    writeLog("XXPER",pageContext,"Start PR XXPERMAFinalRatingsPageCO ");
    OAMessageDateFieldBean dateBean =(OAMessageDateFieldBean) webBean.findChildRecursive("DeliveryDateTime");
    if(dateBean !=null )
    String dateBeanValue = (String) dateBean.getValue(pageContext) ;
    writeLog("XXPER",pageContext,"dateBean Value "+dateBeanValue);
    if(dateBeanValue !=null)
    if(dateBeanValue.indexOf(".0") !=-1)
    dateBeanValue = dateBeanValue.substring(0,dateBeanValue.length()-2);
    writeLog("XXPER",pageContext,"dateBean Updated Value "+dateBeanValue);
    String dateMaskQry = "SELECT value FROM V$NLS_Parameters WHERE parameter ='NLS_DATE_FORMAT'";
    writeLog("XXPER",pageContext,"dateMaskQry "+dateMaskQry);
    String dateMask = (String) executeSql(dateMaskQry, pageContext, webBean);
    writeLog("XXPER",pageContext,"dateMask : "+dateMask);
    String dateConvertQry = "select to_char(fnd_date.canonical_to_date('"+dateBeanValue+"') ,'"+dateMask+" HH24:MI:SS') from dual";
    writeLog("XXPER",pageContext,"dateConvertQry "+dateConvertQry);
    String convertedDateValue = (String) executeSql(dateConvertQry,pageContext,webBean);
    writeLog("XXPER",pageContext,"convertedDateValue "+convertedDateValue);
    if(convertedDateValue == null )
    convertedDateValue = dateBeanValue;
    dateBean.setValue(pageContext,convertedDateValue);
    writeLog("XXPER",pageContext,"After set the value "+convertedDateValue);
    setAttribute3(pageContext, convertedDateValue);
    writeLog("XXPER",pageContext,"After set the VO value "+convertedDateValue);
    }else
    writeLog("XXPER",pageContext,"dateBean value is null from the bean Get the value from getAttribute3() method");
    dateBeanValue = getAttribute3(pageContext);
    dateBean.setValue(pageContext,dateBeanValue);
    }else
    writeLog("XXPER",pageContext,"dateBean is null ");
    writeLog("XXPER",pageContext,"End PR XXPERMAFinalRatingsPageCO ");
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    writeLog("XXPER",pageContext,"Start PFR XXPERMAFinalRatingsPageCO ");
    writeLog("XXPER",pageContext,"Event Param "+pageContext.getParameter(EVENT_PARAM));
    OAMessageDateFieldBean dateBean =(OAMessageDateFieldBean) webBean.findChildRecursive("DeliveryDateTime");
    if(dateBean !=null )
    String dateBeanValue = (String) dateBean.getValue(pageContext) ;
    if(dateBeanValue !=null)
    if(dateBeanValue.indexOf(".0") !=-1)
    dateBeanValue = dateBeanValue.substring(0,dateBeanValue.length()-2);
    writeLog("XXPER",pageContext,"dateBean Updated Value "+dateBeanValue);
    String dateMaskQry = "SELECT value FROM V$NLS_Parameters WHERE parameter ='NLS_DATE_FORMAT'";
    writeLog("XXPER",pageContext,"dateMaskQry "+dateMaskQry);
    String dateMask = (String) executeSql(dateMaskQry, pageContext, webBean);
    writeLog("XXPER",pageContext,"dateMask : "+dateMask);
    String dateConvertQry = "select to_char(fnd_date.canonical_to_date('"+dateBeanValue+"') ,'"+dateMask+" HH24:MI:SS') from dual";
    //String dateConvertQry = "select fnd_date.string_to_canonical('"+dateBeanValue+"','"+dateMask+" HH24:MI:SS') from dual";
    writeLog("XXPER",pageContext,"dateConvertQry "+dateConvertQry);
    String convertedDateValue = (String) executeSql(dateConvertQry,pageContext,webBean);
    writeLog("XXPER",pageContext,"convertedDateValue "+convertedDateValue);
    if(convertedDateValue == null )
    convertedDateValue = dateBeanValue;
    dateBean.setValue(pageContext,convertedDateValue);
    writeLog("XXPER",pageContext,"After set the value "+convertedDateValue);
    setAttribute3(pageContext, convertedDateValue);
    writeLog("XXPER",pageContext,"After set the VO value "+convertedDateValue);
    }else
    writeLog("XXPER",pageContext,"dateBean is null ");
    writeLog("XXPER",pageContext,"End PFR XXPERMAFinalRatingsPageCO ");
    super.processFormRequest(pageContext, webBean);
    writeLog("XXPER",pageContext,"End PFR XXPERMAFinalRatingsPageCO (After Super Call )");
    public void writeLog(String moduleName, OAPageContext pageContext, String diagText)
    if(pageContext.isLoggingEnabled(OAWebBeanConstants.STATEMENT))
    System.out.println(moduleName+" : "+diagText);
    pageContext.writeDiagnostics(moduleName,diagText,OAWebBeanConstants.STATEMENT);
    * Method to execute SQL.
    public Object executeSql(String pSqlStmt, OAPageContext pageContext , OAWebBean webBean)
    OADBTransaction tx = pageContext.getApplicationModule(webBean).getOADBTransaction();// (OADBTransaction)getOADBTransaction();
    Object lObject = null;
    // Create the callable statement
    CallableStatement lCstmt = (CallableStatement)tx.createCallableStatement(pSqlStmt, 1);
    ResultSet rs = null;
    try
    rs = lCstmt.executeQuery();
    while(rs.next())
    lObject = rs.getObject(1);
    catch (Exception e)
    //throw OAException.wrapperException(e);
    finally
    try {
    if(rs!=null)
    rs.close();
    if(lCstmt != null)
    lCstmt.close();
    catch(Exception e) {
    throw OAException.wrapperException(e);
    return lObject;
    } // executeSql
    public void setAttribute3(OAPageContext pageContext, String dateValue)
    OAApplicationModule rootAM = pageContext.getRootApplicationModule();
    OAApplicationModule apprAM = (OAApplicationModule)rootAM.findApplicationModule("AppraisalsAM");
    OAViewObject appraisalVO = (OAViewObject)apprAM.findViewObject("AppraisalVO");
    writeLog("XXPER",pageContext,"appraisalVO "+appraisalVO);
    if(appraisalVO !=null)
    AppraisalVORowImpl appraisalVORow = (AppraisalVORowImpl) appraisalVO.getCurrentRow();
    if(appraisalVORow !=null)
    int attrCount = appraisalVO.getAttributeCount();
    writeLog("XXPER",pageContext,"Attrbuute count "+attrCount);
    String[] attributeNames = appraisalVORow.getAttributeNames();
    appraisalVORow.setAttribute3(dateValue);
    public String getAttribute3(OAPageContext pageContext)
    OAApplicationModule rootAM = pageContext.getRootApplicationModule();
    OAApplicationModule apprAM = (OAApplicationModule)rootAM.findApplicationModule("AppraisalsAM");
    String attribute3Value = "N";
    OAViewObject appraisalVO = (OAViewObject)apprAM.findViewObject("AppraisalVO");
    writeLog("XXPER",pageContext,"appraisalVO "+appraisalVO);
    if(appraisalVO !=null)
    AppraisalVORowImpl appraisalVORow = (AppraisalVORowImpl) appraisalVO.getCurrentRow();
    if(appraisalVORow !=null)
    int attrCount = appraisalVO.getAttributeCount();
    writeLog("XXPER",pageContext,"Attrbuute count "+attrCount);
    String[] attributeNames = appraisalVORow.getAttributeNames();
    writeLog("XXPER",pageContext," AppraisalId :- "+ appraisalVORow.getAppraisalId());
    attribute3Value = (String)appraisalVORow.getAttribute3();
    String attribute1Value = (String)appraisalVORow.getAttribute1();//getAttribute2
    String attribute2Value = (String)appraisalVORow.getAttribute2();
    writeLog("XXPER",pageContext," attribute3Value :- "+attribute3Value + " attribute1Value "+ attribute1Value +"attribute2Value "+attribute2Value);
    }else
    writeLog("XXPER",pageContext," appraisalVORow is null ");
    }else
    writeLog("XXPER",pageContext," appraisalVO is null ");
    return attribute3Value;
    }

  • Date format on report

    Hi Everyone!
    I have a date format that is in the footer of my report. The format is set with the following: fmDay Month DD RRRR HH:MI AM and this is what I want, but when it prints out I get the following: Monday September 24 2001 11:0 AM . I would think I should get Monday September 24 2001 11:00 AM . I need the other part of the minute to show up. Now, it does show up if I have Monday September 24 2001 11:15 AM. I really need for the whole date format to show up. If I change the format to mm/dd/rrrr HH:MI AM then I don't get the day which I really need to show up in the footer.
    Thanks in advance for your help.
    ~Vannette ([email protected])

    Please change your current date format [to]
    fmDay Month DD RRRR fmHH:MI AM
    Neeraj Vannette -
    To explicate, recall that FM is a toggle. Your first
    FM set the format to suppress all blanks and leading
    zeroes, so 11:01 became 11:1. The added FM sets back
    to normal mode, so everything after the first FM is
    zero/blank suppressed, after the second FM is not.
    -- allan plumb

  • Cell data format problem

    Hello,
    I just began using the new version of Numbers.
    I tried to make a distance-speed-time function and have it as hour, minute and second but when I switch from automatic data format to custom data format (Duration) and go to the next cell to do the same, it switch back to automatic data format and I can't have it as time but just a a number with decimals.
    What can I do ?

    I have a similar issue.
    Every number I enter is understood by Numbers as a date.
    199 becomes the date 1/1/199 00.00.00 when I try and change the auto format it jumps right back to the date.
    I have to format the cell to be a number before I enter a value.
    is your system language english or non english? I have a suspicion it's a locale bug (one that Apple QA should have found had they done any testing...)

  • Date format changes in the middle of a program execution

    In my C code I have a series of select statements.
    When I first get a session to the database I use the following command to set the date format
    alter session set nls_date_format = 'MM/DD/YYYY HH24:MI:SS'
    It works fine for a few queries. After a while during the program execution I see that the date format changes to 'DD-MON-YY' format. This results in a series of error in my code because I expect the date format to always be in the 'MM/DD/YYYY HH24:MI:SS' format.
    Any idea why the date format should change all of a sudden in the middle of the program execution.

    I second the idea that you should always use TO_DATE and TO_CHAR if you want to reliably convert between dates and strings.
    Without seeing your code, it is hard to say why your date format is changing, but the most likely reason is that you are changing users somewhere in the code. For example:
    SQL> show user
    USER is "OPS$ORACLE"
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-JUL-2003
    SQL> ALTER SESSION SET nls_date_format='dd-Mon-yyyy hh24:mi:ss';
    Session altered.
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-Jul-2003 10:15:12
    SQL> connect jtest/test
    Connected.
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-JUL-2003TTFN
    John

  • Date format in BEx Analyser / PreCalc Server

    Hi All,
    First off, i have read many threads in this forum but none seem to solve our issue. So hopefully somebody will have a fresh view on this.
    When i broadcast a workbook from BEx Broadcaster using a Precalc server, the date format displays as mm/dd/yyyy. We want it in dd/mm/yyyy.
    1. The BI profile (SU01) has the correct date format.
    - When the user runs the query in the portal or through BEx Analyser, the date format is correct.
    2. There isn't any issue with the query / workbook as we can broadcast it through a test pre-calc server and it displays in the correct format.
    3. Many threads have suggested changing the date format in the control panal of the precalc server. Not only have i done this for the logged in user, i've updated all users on the server through the registry. The precalc service is being run under the Local system user and this was one of the entries which i updated as it was still in US format. We tried restarting the service and also rebooting the server. But no change to the date format display. It is still in US format.
    Has anybody any other suggestions for this issue. We want to apply it to all users for all queries if possible.  Should be an easy one but nothing has worked.
    Any suggestions would be appreciated.
    Thanks,
    Georgina

    Hi Ravikanth,
    Thanks for your reply.
    The first option won't work as i'd need it to be in the correct format when broadcast out by email to users in excel format.
    I was hoping that this could be resolved without a custom solution, however the second option sounds like it could work but i have not worked with macros before and i'd imagine you'd need to know what you are doing to modify any of the modules behind the workbooks as it could mess them up.
    If you have any suggestions or resources that you can point me to, that would be great.
    Thanks,
    Georgina

  • F110 Date formats for Vendors

    Hi friends,
    I am running payment run and system when generates checks, it creates checks with european format (DD.MM.YYYY)for vendors of china, UK but for US vendors its in US format(MM/DD/YYYY)
    Is there a way in SAP we can make it similar for all vendors.
    Because we pay them from US banks and client want all checks to be generated in US format only.
    Thanks
    Mil

    Hello Mil,
    I suppose this should help.
    Try changing the country global parameters
    In order to get there. SPRO > General Settings > select the country that you need to change to US standards. Say for instance china (Double click)
    It would take you to Country Global Parameters.
    Here under Date format which appears on the bottom-left corner choose MM-DD-YYYY instead of the default.
    Hope this would resolve your issue.
    Please allocate points if rendered useful.
    Thanks
    Raj

  • Date formats for SQL statements used by recordset object

    Hi,
    Date formatting appears to be quite problematic for Business One.  I did a forum search for date issues and I don't think I saw any of them with an "answered" status.  I have an issue with formatting a date for the creation of an SQL statement that the DI sends to SQL Server 2005.  I need to format a date so that the localization parameters don't matter for either the client machine or SQL Server's machine.  We don't have a problem as long as our machines are localized as USA.
    I have PL 22 and I have a form - ours - where I use the Today() function to fill a date field.  So this is a date that is not entered by the user.  The result of this function is consistent with the localization parameters on my machine.  We have two other date fields on the form where the user must type in the date. 
    As a test, I changed my machine to the UK parameters.  I then set up the language parameters of Business One for English(United Kingdom).  I changed the date format specifications in Business One so that its format is dd/mm/yy.  I then brought up the form and the field that is formatted by the above function arrived in the form's field as dd/mm/yy.  I then typed in the two other dates in the same format and added the record to the database.  The form's table is user-defined. 
    I dismissed the form then brought it back up loaded with the new record.  The date that was entered by the function appeared in USA format (mm/dd/yy).  The dates that were typed in appeared in the Business One format (dd/mm/yy).  This of course is not consistent.
    When I looked at what got into the database, the formats were the opposite.  Weird!  To make matters really confusing, I run an SQL statement within SQL Server Mgt Studio, and use the WHERE clause to filter on the date that was based on the function.  It didn’t matter what format I used for the WHERE clause, the record came up.  Does anyone have any idea about how I can ensure that I always use the correct date format for SQL statements passed by Business One to SQL Server regardless of where in the world the application is being run?
    Thanks,
    Mike

    Ian,
    Here's what I'm concerned about:  I’m using the date in a “WHERE” clause.
    Assume the date is Aug 3, 2007.
    "SELECT * FROM Table WHERE StartDate > ‘8/3/2007’"
    OR
    "SELECT * FROM Table WHERE StartDate > ‘3/8/2007’"
    If the client machine is set up as USA, the today function will provide the date as formatted in the first query.  If the database server is setup as let’s say the UK, I believe that SQL Server query parser will interpret the date as Mar 8, 2007.
    If the client machine is set up as UK, the today function will provide the date as formatted in the second query.  If the database server is setup as let’s say USA, I believe that SQL Server query parser will also interpret the date as Mar 8, 2007.
    In both cases it would be wrong.
    I know I could use the DATEPART function to get the three parts and this will make the code indifferent to the localization specs of the client machine.  I need to then be able to concatenate those date parts for the “WHERE” clause so that the localization specifications of the database server don’t matter.
    Thanks,
    Mike

  • Parsing Issue in Filter For Date Format

    Hi Folks,
    I am having Parsing Issue on "Key Date" Object in Universe. See the Error and Code below for your review
    Error: Parse Failed: Exception: DBD, The value entered is not valid. It must adhere to one of the following formats.
    YYYYMMDD
    DD.MM.YYYYState:N/A
    Code:
    <OPERATOR VALUE="AND"><OPTIONAL><FILTER KEY="0I_DAYIN"><CONDITION OPERATORCONDITION="Between"><CONSTANT TECH_NAME="@Prompt('Day Interval From','A','Calendar Day\LovDay IntervalBase',mono,primary_key)"/><CONSTANT TECH_NAME="@Prompt('Day Interval To','A','Calendar Day\LovDay IntervalBase',mono,primary_key)"/></CONDITION></FILTER></OPTIONAL><FILTER KEY="0P_KEYDA"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Key Date','D',,mono,free)"/></CONDITION></FILTER></OPERATOR>
    This universe is created by someone else and client need to modify it with a calendar but i did not modify it yet however its already giving me the hard time. Kindly advise, any kind of help will be appreciated
    Thanks

    Hi,
    With the information provided I cannot for sure get to the error but here is what I would check.
    Firstly, I was wondering if the 5th parameter in the @Prompt can be Primary_Key. I thought it would be either free or constrained.
    Secondly, please the LOV values for the @ prompt are being populated from 'Calendar Day\LovDay IntervalBase'. So I would check the date format being used there.
    Third, the To and From dates are alphaneumeric and not dates, so I am not sure how the comparision would happen.
    Hope this helps.
    Regards,
    Madhur

  • 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

  • Date format in Flat File

    Hi Experts,
    I need to load date from flatfile. In flatfile the date format is hh:mm:ss.
    I have an infoobject with type TIMS which can store only 6 CHAR length.
    How is it possible to read 8 characters length in file with this info object ??
    Two solutions i have is to ask for a file in hhmmss format or 
    the second one is to read the date with a new infoobject and write a routine to convert date to the required format in the transforamtion.
    Is there any better way to handle this situation with out asking for a change in file ??

    Hello Narasimha,
    You can perform a conversion from 8 characters to 6 characters in the transfer rules of your flat file datasource.
    In the transfer rule of the infoobject (with type TIMS), do the following:
    1) Create an ABAP rule code
    2) Select the 8 char field in the list of source fields
    3) write the following ABAP code. This converts the data from the 8 char field to 6 chars:
    concatenate trans_structure-<your 8 char field here>(2)  trans_structure-<your 8 char field here>+3(2) trans_structure-<your 8 char field here>+6(2)  into RESULT.
    Hope this helps.

Maybe you are looking for

  • How do I convert an alpha character from a text string to its decimal value

    I am trying to find out the actual decimal value of a character in a string. So far the code below is as far as I got. I am able to get what I guess is a byte value. This is for a school assignment: The idea behind what I am trying to do is to design

  • Store Very Large Numbers

    Hello, I am trying to find some info about how to store very large numbers with like 2000 digits or even more and do calculations on them. Does anyone have any info or links about this ?? Thanks.

  • Conditional Suppress in BW report

    Dear all expert, I had the following situation. i had created 2 selection in the columns which is "last month visits", where the details of selection is KF - "number of activities" and Cal. year/Month - "Last Month". another selection is "Current Mon

  • TS2771 how do I find out what generation of Apple Itouch I have

    I don't know if I have a 2nd or 3rd generation Itouch.  How do I find that out?  I know where to go to find what operating system I have.

  • Portlet title and name do not change

    Hi We changed the portlet title and portlet name in provider.xml file. After the portlet repository has been refreshed we could see the changes in the repository. But on the pages where the portlets already exists it does not show the change. If we r