CMP 2 non mandatory timestamp field in Oracle 9 release 2

Dears,
My machine holds the following:
Win XP pro SP 1
Oracle 9i release 2 DB
Jbuilder X enterprise Edition with SUN ONE App Server plugin
SUN ONE Application server platform edition update 2
They are all in the same machine (so there is no problem as issue 4707531 of using different Oracle drivers)
I connect using OCI not thin.
I got the following problem when trying to test my Session EJB that calls CMP.
SEVERE ( 4716): EJB5071: Some remote or transactional roll back exception occurredcom.sun.jdo.api.persistence.support.JDODataStoreException: Got a JDBC SQLException.
Please read the remaining error stack for more information.
NestedException: java.sql.SQLException: Invalid column typeBy tracing the problem I noticed that my code works fine if I set a timestamp field in this table, this timestamp is not mandatory.
Is it a bug in SUN ONE with Oracle 9i, or anyone have a solution?

Hi Ash,
Could you please verify that your .dbschmea file and table creation scripts are in sync. The easiest way to achieve this is to recapture the .dbschema file, repackage and redeploy.
Thanks,
Mitesh

Similar Messages

  • Timestamp field in Oracle

    I have an application to log some data into my Oracle via ODBC. There's a field called 'timestamp' which is generated automatically by my logging application.
    In Oracle, if I do a 'SELECT', it reads 07-MAY-04, but if I import all the data to Access, it reads like this: 5/7/2004 3:08:00 PM.
    I want to be able to select a range data based on time. For example, I want to select everything that is within 5/7/2004 1:00:00 PM to 5/7/2004 4:00:00 PM, how do I write my SQL query?

    I assume, first of all, that the column named "timestamp" is of type DATE, not of type TIMESTAMP.
    In Oracle, a date always contains a date and a time component. The default date format, however, omits the time part of the date when it comes time to display it. You can alter that behavior by using an explicit to_char cast or by altering your NLS_DATE_FORMAT
    SELECT to_char( timestamp, 'DD-MON-YYYY HH24:MI:SS' )
      FROM <<your table>>or
    ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS';
    SELECT timestamp
      FROM <<your table>>When you want to SELECT data, you will want to use the to_date cast to convert a string to a date for comparison, i.e.
    SELECT *
      FROM <<your table>>
    WHERE timestamp BETWEEN to_date( '5/7/2004 13', 'MM/DD/YYYY HH24' )
                         AND to_date( '5/7/2004 16', 'MM/DD/YYYY HH24' );Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Sorting by non-base table fields in Oracle Forms

    I have a form with a block that associated with a table.
    There are several base table fields and several non-base table fields displaying information in this block.
    I need to sort the data in this block by non-base table fields.
    Is this possible without rewriting the form so that the block is not associated with a base table, and then manually populating the block?

    Hi mark
    You could do the following
    Create a database function on the server,
    The function should return the value that you want to order by.
    In your form update the ORDER BY clause to use the function
    Example:
    Assume you have a block base on the employee table,
    and you want to order by the department name not the department no (The employee table only contains the department no)
    The function will be
    CREATE OR REPLACE FUNCTION "TEST_ORDER" (pDEPT_NO NUMBER) RETURN VARCHAR2 AS
    DptName VARCHAR2(100);
    BEGIN
    SELECT DEPT_NAME
    INTO DptName
    FROM DEPT
    WHERE DEPT_NO = pDEPT_NO;
    RETURN DptName;
    END;
    The form block ORDER BY Clause will be
    TEST_ORDER(DEPT_NO)
    Hope this will solve your problem
    Regards

  • How to bring the non-mandatory selection field in Portal

    Hi Expert,
                   I have created an query in Bex. when i run it one selection field is coming like Material,
    vendor etc, but in this selection field  all are option, non of them is mandatory.
    My problem is that when i am creating iview on that query  in 7.0 flow and executing/preview
    that iview it directly bring the output. it is not bring the selection paremeter like material, vendor,
    etc. But same case is not happened with ivew for which query has mandatory field
    I want that en spite of running directly it ask the optional selection parameter.
    Thanks and Regards
    Lalit Kumar

    Hi
    Check it in SPRO- sap img- material management- logistics invoice verification- incoming invoice- activate direct posting to g/l accounts.then save. It will work.
    Regards,
    Raman

  • Conditionally Mandatory or non-Mandatory field in Isupplier banking Detail Form.

    Hi OA Experts
    I need to make a field mandatory or Non-Mandatory based on Lov item in page "/oracle/apps/pos/sbd/webui/SuppRegActPG", Can I do this by using VO extension , if yes, Kindly guide me as I am new to OAF.

    You need to do VO extension first and add transient attribute in the same VO. Set SPEl to the required field using Controller code.For this You need to do controller extension.
    ++++++++++++++++++++++++++++++++++++++++++++++++
    In PR,
    Set SPEL to the field by initializing the field according to its Style.(OAMessagetextinputBean or OAMessageStyledTextBean etc...)
    +++++++++++++++++++++++++++++++++++++++++++++++++
    Then in PFR use Lov event as below.
    if (pageContext.isLovEvent())
              String lovInputSourceId = pageContext.getLovInputSourceId();
              if ("myLovInput".equals(lovInputSourceId)) // "myLovInput" is the item id of LOV, replace with your LOV on page
                   rendVO.getCurrentRow().setAttribute("xxRenderApprove",Boolean.FALSE);//here handle the SPEL
    I hope this will be enough for your requirement.

  • Making Password Field Non-Mandatory in OIM

    Hi,
    I would like to make Password and Confirm Password Fields in OIM Create User Form as Non-Mandatory (removing the asterick and also modifying the background Java code).Is it possible?.
    Thanks.

    HI,
    You can also edit the FormMetaData.xml and make the password optional.
    Here is the link to how you can do it.
    http://download.oracle.com/docs/cd/E10391_01/doc.910/e10362/fieldconf.htm#sthref112
    Manasa

  • Making the "incoterms" field non-mandatory

    For the time being, "incoterms" field in XD01 (Create customer) for the domestic customers is mandatory. On the other hand, I want to make it non-mandatory. How can I do it?
    Thanx in advance.

    In OBD2 u  can do this
    Select the account grp and enter.
    Double click sale data
    Double click Billing
    make incoterms optional
    Message was edited by:
            sam masker

  • Make non-mandatory field in Logical Database 'SDF'  mandatory.

    Hi all,
    I want to make a non-mandatory field 'Chart of Accounts'  in Logical Database 'SDF'  mandatory in my Z program.
    Please let me know how this can be done?
    I tried defining the select-option in my zprogram but it gives error saying the parameter has already been defined in LDB.
    Regards,
    Atrinandan
    Edited by: raj on Aug 3, 2009 7:46 PM

    Hi,
      You can try like below:
    at selection-screen output.
    loop at screen.
    if screen-name = 'NAME OF THE PARAMETER'.
    screen-required = 1.
    modify screen.
    endif.
    endloop.
    Regards,
    Himanshu

  • How to Set field non mandatory in PA40

    Is there a way to make non-mandatory field RP50G-EINDA in PA40?
    Many Thanks
    Alfonso

    Hi
    Go to t588m table make that field as required field
    Warm Regards

  • To make the "req.delivery date" field non-mandatory in VA01 Transaction

    Hi All,
    I want to make "req. delivery date"(RV45A-KETDAT) field non mandatory in VA01 transaction.
    I have already checked on screen 4440 .This field is not mentioned as required field.
    Please help me to find where can i make this field non-mandatory.
    Thanks and Regards,
    Dipali.

    Hi,
    this is a required field, as far as the standard SAP code goes: everytime this field is touched the following function is executed in programme FV45EF0V_VBEP-EDATU_EINGEBEN:
        call function 'PERIOD_AND_DATE_CONVERT_INPUT'
          exporting
            external_date     = rv45a-etdat
            external_period   = rv45a-prgbz
          importing
            internal_date     = vbep-edatu
            internal_period   = vbep-prgrs
            ev_date_in_past   = lv_date_in_past
            ev_period_in_past = lv_period_in_past
          exceptions
            no_data           = 1
            period_invalid    = 2
            date_invalid      = 3.
        case sy-subrc.
          when 1.
            set cursor field 'RV45A-PRGBZ' line sy-stepl.
    * Bitte Datum eingeben
            message e394.
    The only way to avoid this is create an implicit enhancement at the beginning of this form, copy the exisitng code in there, delete the message after WHEN 1. and put RETURN at the end of the enhancement. But this would be HIGHLY UNRECOMMENDED, because I am positive you cause a lot of misery later on in the process: this field is mandatory for a reason!
    Roy

  • Unable to make field non-mandatory using SM30/T588M

    Hello Gurus -
    My client would like the field LAND1 (country key) to be optional in infotype 21 (Family Members/Dependants).  Standard delivery appears to be that this field is mandatory if any of the address fields are populated.  We have tried to make this non-mandatory by setting it as Optional or Hiding it in T588M.  No matter how we set this field up, it still behaves as mandatory if any address field is populated.  We are certain we are at the correct Mod Pool/Variable Key combination as we have successfully changed other field requirements for this infotype.
    Does anyone have any input as to why we are encountering this problem and/or suggestions as to how to get around it?
    Thanks!
    Zaj

    Hi,
    Follow IMG path -> Personnel Management -> Personnel Administration -> Customizing User Interfaces-> Change Screen Modifications
    Try using the below screen for modification for IT 0021:
    Module Pool          MP002100
    Standard screen      2001
    Alternative screen   2001
    Feature         P0021
    In feature see that you maintain for which MOLGA Country Grouping and subtyes you want to use.
    I hope this will help you.
    Thanks,
    Padmaja.

  • Making "Room" field Non Mandatory - PM Notifications

    Dear PM Experts,
    Can any one tell me where to make field Room under Tab Loctions of PM Notificaitons (in brakedown notifications) non mandatory. Because in my client this field is mandatory. Although I have a place to make this fields optional for PM Orders, I don't find the same field in the place where we can make fields optional for notificaitons (under T-Code OQM1).
    Please Help.
    Cheers
    Deepal

    Hi,
    As the field is part of location/account assignment data the same customizing would be effective for both orders and notifications. This group of fields can be customized with transaction OIAZ.
    If you have different behaviour between notifications and orders then the customizing is based on influencing fields - Possibly order type and notification type.
    To check this - Run OIAZ and select the 'influences' icon.
    -Paul

  • When we change the non-mandatory field in the form, it doesn't get updated

    Hi... I have one question here..
    If I have non-mandatory fields in a custom form, and when I query the form and change the value in the non-mandatory field and click on save, then it doesn't save. It says 'No Changes to Save'. But, it's not the same for non-mandatory fields.
    Can you please suggest me?
    -vrdida

    VRdida,
    If I understand correctly, you have a non-Required item in your form that has an LOV assigned. While this item is Required=No, it works correctly. When you change the Required property of the item to 'Yes' then it fails. When this occurs, do you get an error message? Are you able to select a value from the LOV?
    It sounds like the Required=Yes property might be preventing you f rom opening the LOV. Try setting the Module property: Defer Required Enforcement = Yes. This is the typical setting in an EBS form. This is what allows you to navigate out of a Required field if the value is NULL, but will give you a Required message when you attempt to save the record if the value is still NULL.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Apr 6, 2011 11:43 AM

  • Non mandatory fields

    Dear Frnds,
                        I need payments terms, shipping point and incoterms to be removed/made non mandatory in VA21 and VA01. I am looking at SHD0 as an option but after ticking the above fields to be invisible i cant seem to be able to save it in a package. plss assist
    Regards
    Cam

    Dear  Camilla,
    Remove these fields from incompletion procedure for  that document type.
    Follow this link
    how will i configure incompletion procedure
    Regards,
    Nitin Jaiswal

  • Make project profile field non mandatory in CJ20n Transaction

    Hi All,
    I want to make project profile field non mandatory in my CJ20n transaction. I tried through OPUA, OPUK, OPUC but of no use. The field over there is just an input field. I need to make it non mandatory either through configuration or through code. Please suggest.
    Regards,
    Jayant

    Hi,
    this is a required field, as far as the standard SAP code goes: everytime this field is touched the following function is executed in programme FV45EF0V_VBEP-EDATU_EINGEBEN:
        call function 'PERIOD_AND_DATE_CONVERT_INPUT'
          exporting
            external_date     = rv45a-etdat
            external_period   = rv45a-prgbz
          importing
            internal_date     = vbep-edatu
            internal_period   = vbep-prgrs
            ev_date_in_past   = lv_date_in_past
            ev_period_in_past = lv_period_in_past
          exceptions
            no_data           = 1
            period_invalid    = 2
            date_invalid      = 3.
        case sy-subrc.
          when 1.
            set cursor field 'RV45A-PRGBZ' line sy-stepl.
    * Bitte Datum eingeben
            message e394.
    The only way to avoid this is create an implicit enhancement at the beginning of this form, copy the exisitng code in there, delete the message after WHEN 1. and put RETURN at the end of the enhancement. But this would be HIGHLY UNRECOMMENDED, because I am positive you cause a lot of misery later on in the process: this field is mandatory for a reason!
    Roy

Maybe you are looking for

  • Report painter issue

    Hi All, I need to create a report using report painter. Requirement goes like this: 1) A report of quantities on a cost center against a cost element. 2)The quantities should be for each month from jan to Dec I have used SMEG (QUANTITY) as the Basic

  • Vendor tax deductions

    Hi all, Same vendor with different tax deductions. How to capture?

  • Problem in compiling jsp file

    Hi, i am using tomcat 4.12 and jdk 1.4. My login page contains 3 frames. after succesful login into ur application, 7 frames are getting called. i have called a jsp page for each frame. sometimes while accessing my application, i am getting jasper ex

  • Which is best for 3d Animation??

    Which is better for 3d Animation and graphic design? Mac or PC...and for whichever is better which laptop would be a good affordable choice? Please help! I know very little of computers.

  • How to remove escape characters

    When there is string in my source like my boss is "chandra" it is taking like it is taking like "my boss is ""chandra""". Could you please give me suggestion how I can eliminate unnecessary escape character. -Pallav