Data length for Date is 7 in all_tabs_columns

I am fetching data_length, data_type from all_tabs_columns for a table in my schema. It is returning data_length=7 for data_type='date'. When i am fetching records based upon this information using SQL_EXECUTE package, the date record returned is of format DD-MON-YY. ie for date '01-JAN-1949', it is fetching '01-JAN-49'.
Please Suggest.

Dear Francois,
I might not be able to exlplain it properly but the problem is when i am executing the query in SQL*Plus, I can retrive the correct data(as'01-JAN-1949'). But when when the same query is executed using a EXEC_SQL package of forms 6i, the data returned is incorrect('01-JAN-2049'/'01-JAN-0049'depending upon the format mask-RRRR/YYYY).
I think there is some issue related to Dynamic SQL being used in EXEC_SQL package may be with EXEC_SQL.DEFINE_COLUMN or EXEC_SQL.COLUMN_VALUE or EXEC_SQL.EXECUTE???
Please Suggest.

Similar Messages

  • Error -ORA-01483: invalid length for DATE or NUMBER bind variable

    In discoverer plus, attempt to save a discoverer workbook into the database fails with the error:
    ORA-01483 invalid length for DATE or NUMBER bind variable
    The same workbook can be safely saved in "My Computer".
    Any idea why and what is the solution.

    Why: not quite sure, probably the code is validating the workbook when it saves it to the db and you've got an error in the sql. What happens when you run the workbook that you saved to the file system? Does it show the same error when run?
    Solution: Can you post the sql in the workbook? In the meantime try the following: Replace any to_char statements around dates with to_date statements instead. For example:
    Replace:
    where to_char(mydate, 'dd-mon-yyyy') = '05-apr-2009'
    With:
    where mydate = to_date('05-APR-2009','DD-MON-YYYY')

  • How to set a date range for date field ?

    Dear Experts,
    Scenario:
    I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
    As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
    Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
    Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM  DATE (BEGDA).
    Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM  DATE (BEGDA) and less than HIRING DATE.
    Technical Requirement:
    How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
    Following is the code to describe date field in my application.
        <htmlb:inputField id= "ENDDA_NEW_IN"
                          type= "date"
                    doValidate= "TRUE"
                      showHelp= "TRUE"
                      disabled= "FALSE"
                         width= "183"
                         style= "cssTextAreadate"
                         value= "<%='99991231'%>"/>
    Thanks a lot in advance for your assistance and help.
    Cibinu2026
    Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AM

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • Data validation for Date Field in Web Dynpro ABAP

    Hi ,
    In my WDA i want to perform data validation for date filed. (i.e. While creating a new record i have to check the Start Date should be always lesser than End Date.)
    If u ll enter the wrong date it should validate the Date and throw an error message.
    Please Reply soon its urgent.
    Thanks,
    Deepika

    Hi,
    First read the two attributes start date and end date.
    Then write the following condition.
    IF item_start_date > item_end_date.
    Error message.
    Endif.
    For pop up error message you need to use Create_window method of the Interface if_wd_window.
    Thanks.

  • Check the Data length for the fields in the mapping

    Hi,
    I need to check for the data length of the below fields in mapping. And if any of the field lengh does not match with the given length then I discard the data and trigger a mail
    X1_LENGTH = 9
    EMail_LENGTH = 100
    PrjDesc_LENGTH = 50
    Regards,
    Varun

    Hi,
    You can use following approach:
    - Create UDF for length analysis and raise exception if length is not accurate Use lenght() method of string.
    CheckLength(Field, Length)
       If Field.lenght() >= Length then raise mapping exception
    Use Alert to capture this and send mail.
    - Use Enum while defining datatype to reject data at source (in adapter engine). Again use Alerts to send mail.
    Regards,
    Gourav

  • How to over weite old data length in data clusters.

    Hello All,
            I'm geting short dump CONNE_IMPORT_WRONG_COMP_LENG. bcoz of new data length of one field (Host) is not reflecting in Data Clustor.
           How to over write old data length with new data length....
    Thanks,

    suresh8 wrote:
    how to copy my old data in my i6?
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
    Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support
    As for songs that are on your iPhone, those cannot be copied from the device to another location.

  • Open data slice for data entry and close afterwards

    Dear all,
    I have created one data slice for a characteristic combination country xy in order to prevent the data entry within the data entry query for the user. But for some reason I have to run a planning function in order to summarize some values and write a total value in the characteristic e.g. country xy.
    The planning function brings out an error message because this can not be executed due to the fact that this combination is protected.
    Is there a way to open the data slice before the planning function is writing the data in the cube? I have tried to to this in the Data slice exit, but I do not have an idea how to open the DS, save the data and close the DS again.
    We are running NW BI 7.0. Any ideas would be great.
    Best regards,
    Stefan from Munich/Germany

    I did something like this by creating an FM and calling that FM from a FOX function. I think you will have to use three commands to execute three functions one after the other (and not combine them in one planning sequence) - first one will switch off the data slice, next will be your planning function containing the logic, and the last will switch it back on.
    The FM would be something like below:
    FUNCTION Z_SWITCH_DSLICE.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_INFOPROV) TYPE  RSINFOPROV
    *"     REFERENCE(I_DSNR) TYPE  RSPLS_DSNR
    *"     REFERENCE(I_STATUS) TYPE  I
    *** This function imports the name of a real-time Infoprovider and a Data Slice number
    ***        and a parameter I_STATUS. If I_STATUS is 1, data slice is activated
    ***        If I_STATUS is -1, data slice is de-activated
    data wa_ds type rspls_ds.
    select single * from rspls_ds
            into wa_ds
            where infoprov = I_INFOPROV
              AND objvers = 'A'
              AND dsnr = I_DSNR.
    if I_status = 1.
       wa_ds-used = 'X'.
    elseif I_status = -1.
       wa_ds-used = ''.
    endif.
    update rspls_ds from wa_ds.
    ENDFUNCTION.
    The Fox code will be like below -
    CALL FUNCTION Z_SWITCH_DSLICE
        EXPORTING
           I_INFOPROV = <infoprov name>
           I_DSNR = <Data Slice Number>
           I_STATUS = <0 or 1>.

  • Date parameters for Date range

    Hi,
    I got a report with 2 parameters From Date and To Date and i have 2 columns items in the report absence start date and absence end date.
    i have to make sure that the date range satisfies all case's
    what is the best way that I can these validation rules in discoverer on these dates...?
    case's are something like this:
    1 (absence start date > from date; absence end date > to date)
    2 (absence start date > from date; absence end date < to date)
    3 (absence start date < from date; absence end date > to date)
    4 (absence start date > from date; absence end date < to date)
    Any help would be really appreciated.

    Using conditions in Discoverer is just like specifying a where clause in SQL with AND and OR. You should be able to use conditions for what is being described below.
    Are you not able to do that using conditions in your report ?

  • Date Dimension for date pull up (Dimension to Dimension)

    Need advise....
    1. I have a person dimension table and sales fact table. Person_id is the foreign key in the fact. I want to be able to pull the date of birth. But the person dimension has only dob_sid that should point to the day dimension to get my the equivalent date. This is the problem...i cannot join person dimension to day dimension, i need to be able to do a join through fact, but the fact table is missing the dob_sid.
    2. Second issue is, person dimension has other dates associated action_date, cancel_date, etc. more than one date field that i need to join to day dimension.
    How will i be able to achieve this in BMM? Physcial layer?

    The key here (no pun intended) is to alias your date dimension for as many date lookups you require, join these aliases directly to your person dimension off the appropriate keys.

  • Data binding for date chooser

    Hey Just wondering if its possible to use actionscript variables for a HTTPservice, [not having to use httpservice via actionscript]
    eg
    <mx:HTTPService id="req"  showBusyCursor="true" method="POST" url="http://localhost/flex1/add.php" useProxy="false">
    <mx:request xmlns="">
    <day>{dates.selectedDate.getDate()}</day>   //instead of this have something like <day>{day.value}</day>  ??????
    <month>{dates.selectedDate.getMonth()}</month>
    <year>{dates.selectedDate.getFullYear()}</year>
    </mx:request>
    </mx:HTTPService>
    <mx:Script>
            <![CDATA[
                [Bindable] private var dateString:String;
                public var day:int;
                public var month:int;
                public var year:int;
                public function onClick():void
                    day = dates.selectedDate.date;
                    month = dates.selectedDate.month;
                    year = dates.selectedDate.getFullYear();
            ]]>
        </mx:Script>
        <mx:DateChooser id="dates" x="25" y="26" width="221" height="208" allowMultipleSelection="true" showToday="true" change="onClick()"/>

    Are you getting an error? Maybe you just need to make the other variables Bindable?
    If this post answers your question or helps, please mark it as such.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          [Bindable] public var day:int;
          [Bindable] public var month:int;
          [Bindable] public var year:int;
          public function onClick():void{
            day = dates.selectedDate.date;
            month = dates.selectedDate.month;
            year = dates.selectedDate.getFullYear()
        ]]>
      </mx:Script>
      <mx:DateChooser id="dates" x="25" y="26" width="221" height="208"
        allowMultipleSelection="true" showToday="true" change="onClick()"/>
      <mx:TextArea id="txt" text="{dates.selectedDate.getDate() + ' ' + dates.selectedDate.getMonth() + ' ' + dates.selectedDate.getFullYear()}"/> 
    </mx:Application>

  • Dynamic Date Value for Date Range Parameter - Scheduling in BI

    Hi,
    I am New to BO Enterprise XI R3. I want to schedule the Crystal report which takes Date Range as parameter. Is any option available to calculate From Date automatically based on Current Date based on the range required?
    Currently, Parameter option accepts parameters and enterprise process the report for configured parameters. In this case, report always prints only for configured date range eventhough report generated after one month. I am expecting report has to print data for date range (eg. 1 weeks, 4 days, or any range) based on system current date.
    Thanks in Advance,
    Venkateswaran.P

    I'm am in the same situation.  I need to be able to have the date parameter dynamically change based on the current day's date when I schedule a report.  However, because this parameter comes from a Stored Procedure from the database, it cannot be modified in the Report Designer (as far as I know).  I've tried to set a default for it to use "currentdate" but it doesn't seem to take.  Anyone know if this can be accomplished in the scheduler?
    Thanks
    -Tom

  • Customizing JTree data rendering for Dates

    I have a JTree that has different data types in each column that I'm sorting. I'd like to be able to control the String that appears in the table cell(s) based on the value in the model. I'm trying to make it so that if a Date is less than some predeterminded Date value that a custom string is output to the Table cell instead of the normal Date string.
    I thought a JTable took the toString() of the Date object for its value and that I could just subclass the java.util.Date object and override the toString() with a conditional. such as (toString() in my CustomDate subclass that extends java.util.Date):
    public String toString() {
        defaultDate = new java.util.Date();
        if (defaultDate.getTime()>this.getTime()){
            return "Date entered in the past";
        } else { //get the normal Date toString
            return new String(super.toString());
    }I'm not so much asking what is wrong with my code, but how to accomplish this task, the code is simply to show the direction I've taken. Am i close, or way out in left field?
    Thanks for any help guys!

    Zulfi100 needs a BrainCellRenderer.He is strangely disturbing yet amusing at the same time. It worries me that he is going to use the skills he learns here to teach.

  • Add Data Source for Data Load Rule

    I created an ODBC system data source in both the 32-bit and 64-bit ODBC managers (just to be sure), but they're not showing up as options for data sources in the SQL interface in EAS. Is there some step that I'm missing?
    Thanks.

    Have you created the ODBC on the Essbase server or on the server hosting EAS, it should be on the Essbase server.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Underlying RS Table :: Date & Time for Data Load Requests

    Dear SAP BW Community,
    In BW 3.5, does anybody know the underlying "RS" table where I can check to see the earliest date & time which a data target was loaded, by providing the data target's technical name in SE16 ?
    Thanks!

    OK, I've found the timestamp the data load requests in the table RSMONICDP.
    To get the earliest data load for infoCube FRED, I'm going to Oracle via SQL*Plus, as follows:
    select to_char(min(TIMESTAMP)) from sapr3.RSMONICDP where ICUBE = 'FRED' ;

  • Changing Field Label length for Data Element using ABAP code.

    Hi Experts,
    We have a scenario where we have to update the maximum length of the various Field Labels (Short, Medium, Long..) for a Data Element using ABAP code.
    Does anyone know how to do this ? Is there a Function Module available for this purpose ?
    Appreciate your valuable inputs.

    Hi ,
    Use the view
    DD03M
    Give
    TABNAME as table name,
    DDLANGUAGE = EN / sy-langu
    and order by position. (for correct sequencing)
    You will get description of the fields (short,medium, long etc). You will also get the length and other details.

Maybe you are looking for

  • Ipod nano starts with a self-test after sleep

    My new Ipod nano runs a kind of self-test if it was at sleep for a couple of hours. Does this have to be? If not how can I determine specifically what is wrong? Thanks

  • How to open a R3 Transaction screen in VC

    Hi There, Can anyone tell me how to model VC in such a way that I can open up a R3 transaction screen for the VC. I have done this in the course but a an reproduce the example with a other TXcode. i put this code in my inputfield url: "pcd!3aportal_c

  • Interactive Script in the Interaction Center WinClient

    Hi Experts     My question is how to pass parameters between two workspaces. More specifically between the workspace of the Interactive Script WinClient and the workspace Activity.    Can anyone help me on this issue?. Thanks

  • Report SLIN Error need to be removed

    Hi All, I am getting the below SLIN error while doing extended program check. How to rectify this error. Use addition UNIT when outputting IT_TAB-MENGE Use auxiliary field when outputting with MESSAGE Regards, Viji.

  • Strange error on stored procedure after update to version 7.6.06.10

    Hi, in past version MaxDB 7.6.03 i created a stored procedure with follow SQL statement inside: TRY             SELECT SUM(QTDE) QTDE_SAIDA                FROM VENDOR_CONCES.MVIEW_MOVPRODUTOS mviewS                WHERE mviewS.MY_EMPRESA = :OID_EMPRE