Date format error while accessing date from SQLSERVER

Hi all, in me webdynpro application I have taken Date type for the Input Field.
At date select it is displaying in the format
  *2/14/2009 i.e. mm/dd/yyyy*
And when I am saving date in the sql database then the date format changes to..
2009-02-14 i.e..yyyy/mm/dd.
But using the Date format method I have changed the format as per the need to push date in the SQL database table...
In the table SQL the date attribute is in form i.e.    02/14/2009 as like from the date select from the date Input Fieldu2026But the problem is that database is not being able to display in that Input field again.
I have use the coding both at Insertion and selection of the database i.e..
Date Sdate, Edate;
Sdate     =   Date.valueOf (rs.getString ("Sdate"));
Edate     =   Date.valueOf (rs.getString ("Edate"));
SimpleDateFormat date Formatter = new SimpleDateFormat ("MM/dd/yyyy");
Sdate = wdContext.currentProjectElement ().getEdate ();
Edate = wdContext.currentProjectElement ().getEdate ();
  String Sd = dateFormatter.format (Sdate);
  String Ed = dateFormatter.format (Edate);
  Date Sdd =Date.valueOf (Sd);
  Date Edd =Date.valueOf (Ed);
But at selection of the database the error for the date format isu2026.
If somebody knows how to resolve this ,plz let me know

for displaying the value only, I think, you are converting to string.
1. Create a simple type in dictionary: under Dictionary -> Local Dictionary -> Simple Types
2. go to Definition tab: Change Built-in Type as Date
3. go to Representation tab: specify format e.g.: MM/dd/yyyy
4. go to Context and change the date context attribute to the created type.
please try to minimize the casting between Date and String.
I believe in database date is stored as Date type itself. My suggestion will be for displaying keep a separate attribute and set it on each db call.
below code is converting from Date to String.
Date Sdate, Edate;
Sdate = rs.getDate ("Sdate");
Edate = rs.getDate ("Edate");
SimpleDateFormat date Formatter = new SimpleDateFormat ("MM/dd/yyyy");
String Sd = dateFormatter.format (Sdate);
String Ed = dateFormatter.format (Edate);

Similar Messages

  • Error while accessing table from procedure but no error from anonymous plsq

    Hi All,
    I am getting a strange error while accessing a table from a different schema.
    In that concerned schema OWBSYS, i executed the following:
    grant Select on wb_rt_audit to ods;In Ods schema i executed:
    CREATE OR REPLACE SYNONYM wb_rt_audit FOR OWBSYS.wb_rt_audit;In ODS schema, when i execute:
    create or replace
    procedure pp_test as
    lv_owb_reject number := 0;
    lv_filename_1 varchar2(200):= 'asda';
        SELECT MAX(aud.rta_iid) into lv_owb_reject
                              FROM   wb_rt_audit aud
                              WHERE  aud.rta_lob_name LIKE Upper(lv_filename_1)
    /I get the error:
    Warning: execution completed with warning
    procedure Compiled.
    ORA-00942 - TABLE OR VIEW DOES NOT EXISTHowever, when i execute as an anonymous plsql the same code:
    lv_owb_reject number := 0;
    lv_filename_1 varchar2(200):= 'asda';
        SELECT MAX(aud.rta_iid) lv_owb_reject
                              FROM   wb_rt_audit aud
                              WHERE  aud.rta_lob_name LIKE Upper(lv_filename_1)
    anonymous block completedthere is no issue.
    Can someone help me understand what I might be missing:
    Edited by: Chaitanya on Feb 28, 2012 12:31 AM

    Check if have some other steps.
    SQL>conn scott1/tiger
    SQL>create table wb_rt_audit (rta_iid number);
    Table created.
    SQL>insert into wb_rt_audit values (100);
    1 row created.
    SQL>insert into wb_rt_audit values (200);
    1 row created.
    Commit complete.
    SQL>grant select  on wb_rt_audit to scott2;
    Grant succeeded.
    SQL>conn scott2/tiger
    SQL>create synonym wb_rt_audit for scott1.wb_rt_audit;
    Synonym created.
    SQL>create or replace procedure pp_test as
        l_number number(10);
            SELECT MAX(rta_iid) into l_number
                                  FROM   wb_rt_audit;
      end pp_test;
    Procedure created.

  • B1WS - (401)Unauthorized Error while accessing Webservice from JAVA

    While accessing B1WS getting the following error.
    Please help us to resolve the error
        at org.apache.axis.transport.http.HTTPSender.readFromSocket(
        at org.apache.axis.transport.http.HTTPSender.invoke(
        at org.apache.axis.strategies.InvocationStrategy.visit(
        at org.apache.axis.SimpleChain.doVisiting(
        at org.apache.axis.SimpleChain.invoke(
        at org.apache.axis.client.AxisClient.invoke(
        at org.apache.axis.client.Call.invokeEngine(
    Here is the Code :
    public class Test {
    //     public static final java.lang.String _dst_MSSQL2008 = "dst_MSSQL2008";
         public static final LoginDatabaseType dst_MSSQL2008 = new LoginDatabaseType("dst_MSSQL2008");
         public static final LoginLanguage ln_English = new LoginLanguage("ln_English");
        public static void main(String[] arg) throws ServiceException, IOException
            LoginServiceSoapStub login = (LoginServiceSoapStub) new LoginServiceLocator().getLoginServiceSoap(new URL(""));
        try {
            login.login("ESPL-LAP-048", "INDIAHEAD", dst_MSSQL2008,"manager", "12345", ln_English, "ESPL-LAP-048:30000");
        } catch (Exception e) {
            // TODO Auto-generated catch block
            System.out.println("Error "+e.getMessage());
    Ravi Shankar

    Not sure this is right forum to post. You may try post in SDK forum to get quick response.
    Thanks & Regards,

  • Getting Error While accessing Accounts from oim

    Hi All,
    I am getting an exception while accessing user accounts from oim through the jdeveloper(I m giving UserId as input)
    avax.ejb.EJBAccessException: [EJB:010160]Security Violation: User: '<anonymous>' has insufficient permission to access EJB: type=<ejb>, application=oim#, module=iam-ejb.jar, ejb=ProvisioningService, method=getAccountsProvisionedToUserx, methodInterface=Remote, signature={java.lang.String,java.lang.String}.
         at weblogic.ejb.container.internal.MethodDescriptor.checkMethodPermissionsBusiness(
         at weblogic.ejb.container.internal.BaseRemoteObject.checkMethodPermissions(
         at weblogic.ejb.container.internal.BaseRemoteObject.preInvoke(
         at weblogic.ejb.container.internal.StatelessRemoteObject.__WL_preInvoke(
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(
         at oracle.iam.provisioning.api.ProvisioningService_p7m7x_ProvisioningServiceRemoteImpl.getAccountsProvisionedToUserx(Unknown Source)
         at oracle.iam.provisioning.api.ProvisioningService_p7m7x_ProvisioningServiceRemoteImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(
         at weblogic.rmi.internal.BasicServerRef$
         at weblogic.rmi.internal.BasicServerRef.handleRequest(
    Process exited with exit code 0.

    Which user are you using for creating connection with OIM ?
    Which method are you using to create connection with OIM ?
    Re: OIMClient login throwing AuthenticationException execption (FOR R2)

  • Error while accessing Method from Business Object

    Hello Experts,
    I have created a business object ZBUS7051 by using BUS7051 as a Supertype. I have crated a method GET_DATA in ZBUS7051. If I use BUS7051, Method GET_DATA in a standard task, getting a message that Method GET_DATA not defined for object type BUS7051.
    Why I am getting this error? Is there way I can use BUS7051-GET_DATA instead of ZBUS7051-GET_DATA.
    The workflow triggering event is BUS7051 u2013 CREATED. In the workflow binding, system is showing a warning that u2018Conversion from BO.BUS7051 to BO.ZBUS7051 can cause data-related errorsu2019. How to fix this? Please let me know.
    - Krishna.

    Thanks to everyone.
    I have delegated the custom business object to super type BO 7051. I triggered the workflow using T.Code: SWUE, BO: BUS7051. Event: CREATED. But the workflow is resulted an error as given below.
    Problems occurred when generating a mail
    Error '9' when calling service 'SO_OBJECT_SEND'
    Work item 000000503335: Object BUS7051 method WAIT_1_MINUTE cannot be executed
    Object does not exist
    Object does not exist
    Object does not exist
    Variables of the work item text cannot be generated
    Syntax error in expression &NOTIFICATION.NUMBER&
    (This is a Wait Step, Created in ZBUS7051, Method: WAIT_1_MINUTE)
    Since the delegation has done, I can say BUS7051 - WAIT_1_MINUTE, instead of ZBUS7051- WAIT_1_MINUTE. Is it correct?
    Could some one please let me know, How to fix the above issue?

  • Error while accessing Livecache from LC10

    We had a problem on our APO system that dialog work processes are hanging on the central instance showing semaphores 26 (enqueue table) and 43 (rspo cache).
    The dwstat logfile indicates that the enqueue process is running (with the longest processing time of all processes), while the spool process is stuck with semaphere 26 on "global actions".
    The problem is mostly likely caused by a bug in SAP and two recent SAP notes were found that describe the situation: note 1293472 and note 661487.
    The first one states to update the kernel and set rspo/event_update_nocsec = 1, the second one to add an entry to the table TSPOPTIONS.
    now we are upgrading the SAP Kernel to Patch Level 221 that was released on Aug 28.
    kernel release                700 - 64 BIT - Non-Unicode
    But after upgrading the kernel to the patch 221 we are not able to access livecache through LC10, LC10 hangs for a while and then fails with a RFC error
    Name and Server : LS5 u2013 plsapas500
    Error: Communication Error
    Error Message: Error when opening a RFC connection
    further we found that the RFC connection SAPDB_DBM_DAEMO is not registered for program [email protected]
    tried to register it but no success....
    this problem was not faced with old Kernel havin patch 185
    kindly suggest
    thanks & regards,

    Can you check the connection test in db59 and check the detailed log.
    check this if helpful:   Re: LC10: system error
    Prasanna Kulkarni

  • Error while accessing WebServices from remote Server

    Hi Friends,
    I am trying to access webservice located on a remote server.But I am getting the following eror...
    stackTrace -*- java.lang.NullPointerException
         at org.apache.axis.message.MessageElement.addTextNode(
         at org.apache.axis.message.SOAPHandler.addTextNode(
         at org.apache.axis.message.SOAPHandler.endElement(
         at org.apache.axis.encoding.DeserializationContext.endElement(
         at weblogic.apache.xerces.parsers.AbstractSAXParser.endElement(
         at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(
         at weblogic.apache.xerces.impl.XMLNamespaceBinder.endElement(
         at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
         at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(
         at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(
         at weblogic.apache.xerces.parsers.DTDConfiguration.parse(
         at weblogic.apache.xerces.parsers.DTDConfiguration.parse(
         at weblogic.apache.xerces.parsers.XMLParser.parse(
         at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(
         at weblogic.xml.jaxp.WebLogicXMLReader.parse(
         at weblogic.xml.jaxp.RegistryXMLReader.parse(
         at javax.xml.parsers.SAXParser.parse(
         at org.apache.axis.encoding.DeserializationContext.parse(
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(
         at org.apache.axis.Message.getSOAPEnvelope(
         at org.apache.axis.wsa.WSAHandler.processClientResponse(
         at org.apache.axis.wsa.WSAHandler.invoke(
         at org.apache.axis.client.AxisClient.invokeTransport(
         at org.apache.axis.client.AxisClient.invoke(
         at org.apache.axis.client.Call.invokeEngine(
         at org.apache.axis.client.Call.invoke(
         at org.apache.axis.client.Call.invoke(
         at org.apache.axis.client.Call.invoke(
         at org.apache.axis.client.Call.invoke(
         at weblogic.servlet.internal.ServletStubImpl$
         at weblogic.servlet.internal.ServletStubImpl.createServlet(
         at weblogic.servlet.internal.ServletStubImpl.createInstances(
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(
         at weblogic.servlet.internal.ServletStubImpl.getServlet(
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
         at weblogic.servlet.internal.WebAppServletContext$
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(
         at weblogic.servlet.internal.ServletRequestImpl.execute(
         at weblogic.kernel.ExecuteThread.execute(
    Please give your guidance...
    Thanks and Regards...

    Hi Friends,
    I solved it.It was because of old jar files.Then I replaced it and every thing started working fine.
    Thanks and Regards..

  • Buffer Table not up to date error while accessing Catalogs

    I am getting Buffer table not up-to-date error while accessing ARIBA Procurement Catalogs.
    Initially, my Test system was pointing to Production Catalogs but now, when I changed the settings in "Define External Web Services" and pointed it to DEV Catalogs, it is failing with error: "Buffer Table not up-to-Date"
    Refreshed the Buffer already but still error not fixed.
    We already have the similar settings in other systems and there the connections are working fine
    Please advise
    Manish Agrawal

    Hi Manish,
    Could you please check the below notes and implement the same since I had the same issue upon punching out from the catalog to SRM system.
    2041631 - Simplified Shopping Cart:Dump on Check Out From Catalog
    2086844 - Dump "Buffer table not up-to-date" on Check Out from Catalog
    In addition to the above, please maintain the portal information in the path as shown in the below screen shot
    Kindly check and let me know on how it goes.
    Best Regards,

  • System error while accessing characteristic data

    Hi Experts,
    While copying the Settings for process management from plant 1 to plant 2, for the step "process instruction categories", I am facing an error as below:
    System error while accessing characteristic data
    Message no. 0C002
    An internal error occurred while accessing the characteristic data. The characteristic cannot be used.
    Contact your system administrator.
    I am using the transaction O20C.
    Can some one please through some light on this?

    Hi AP,
    Thanks for the reply.
    I have already checked that note, I didnt find any solution from that.
    And I am on ECC 6.0 EHP5.


    Problem Summary
    Microsoft® ODBC Driver 11 for SQL Server® - RedHat Linux
    Problem Description
    When selecting a MS SQL VARCHAR (max) column over a ODBC Gateway database connection I am getting this error from Oracle:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
    [Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
    [Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
    [Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
    [Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
    ORA-02063: preceding 2 lines from <LINK_NAME>
    The ODBC driver should map the varchar(max) column to SQL_LONGVARCHAR which would be appropriate for Oracle but the column is getting truncated
    By default the SQL Server ODBC driver exposes the varchar(max) data type as a SQL_VARCHAR. When reporting the maximum size of a varchar(max) column, the driver returns 0, which is the Microsoft convention for "unlimited".
      Column Name = [raw_response]                
      Data Type = 0x7fffe3cbe1a4 -> 12                
      Column Size = 0x7fffe3cbe158 -> 0                
      Decimal Digits = 0x7fffe3cbe1ac -> 0                
      Nullable = 0x7fffe3cbe1b0 -> 1
    DG4ODBC is unable to interpret a zero length as an "unlimited" size and returns an error when retrieving varchar(max) data.
    FreeTDS and DataDirect ODBC drivers  return SQL_LONGVARCHAR instead of SQL_VARCHAR with 0 precision. So there is no problem reported for these drivers.
    Is there a fix for this or is the Microsoft ODBC driver team working on a fix for the driver regarding varchar(max)?

    Hi James,
    Thank you for your question. I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    If you have any feedback on our support, please click
    Elvis Long
    TechNet Community Support

  • Getting Error while accessing the data using odata service

    Hi All,
    Iam new to SAP FIORI. 
    Iam getting the below error while accessing the data using odata service.
    "Failed to load resource: the server responded with a status of 404 (Not found)"
    "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin "
    i have tried all the solutions like changing the url pattern "proxy/htttp".
    and disabled - security in chrome (Chrome is Updated version).
    i tried with IE still got the same problem.
    And installed all the required software in eclipse
    While installing GWPA plugin i got the following error.
    let me know if any one have idea.
    Thanks in advance.

    > Do you want to add and/or update the data in the already existing tables or do you want to replace the content completely?
    > so in that way :
    > bot the options are fine what ever take less time.
    Sorry mate, but YOU have to know what you want here.
    I gave you an easy to follow set of steps.
    As you don't seam to mind the outcome, just might just use them...
    > I wanted to know weathe i can use the  loadercli for thie export import or not? if yes then is there any new steps to do before i do the export import?
    We had this discussion before...
    > For that the easiest option would be just to drop the tables of SAPR3 and run the import again.
    > For ease of use you could also just do:
    > - logon as superdba
    > - drop user SAPR3
    > - create user SAPR3 password SOMEPW not exclusive dba
    > After these steps you can easily pump the data into the database again.
    > So here in th above given steps , i am creating a new SAPR3 user and why it is not exclusive dba ?
    >  i already have that user SAPR3 can i use the same.
    Yes, you do have the SAPR3 user.
    But you don't seem to like to read documentation or learn about how the tools work or anything like that.
    Therefore I gave you s simple way to reach your goal.
    Of course it's possible to reuse the user.
    But then you would have to deal with already existing tables, already existing data etc.
    You don't seem to be able to do that. So, the easy steps might be better suited for your needs.

  • Access data from SqlServer through Visual Composer.....?

    Hi Gurus,
    I could able to connect SqlServer database from Visual Composer. After that, how can I access table data from sqlserver database?
    Thanks in advance....

    Here is the work around to do this. You will need to create a New System.  In the Portal go to System Administration -> System Configuration -> System Landscape.  Create a New System from PAR.  Select, click Next.  Select SAP_BI_JDBC and enter all the information that you would normally use to connect to a SQL DB using JDBC.  You can then in the VC run SQL against the tables.  Open VC, and Navigate to the iView level and go to the toolbar and Select BI -> SQL Editor.  It is pretty self-explanatory from there.

  • Error while accessing Oracle E-Business Suite 11i from Linux/firefox

    error while accessing Oracle E-Business Suite 11i from Linux/firefox
    OS: SUSE Linux Desktop 11(SLED11)
    Web browser: firefox 3.x
    Java versions:
    # rpm -qa |grep java
    # java -version
    java version "1.6.0_18"
    Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
    Java HotSpot(TM) Server VM (build 16.0-b13, mixed mode)
    when I access the url firefox says
    "Additional plugins are required to display all the media on this page"
    then I clicked on "Install Missing Plugin" button
    then I got the following message
    No Suitable Plugins were found
    Unknown Plugin (application/x-java-applet;jpi-version=1.4.1)
    please help/suggest

    Hi user;
    Its not certified to login EBS from linux client
    Please check:
    Linux-cleint (ebs) certification
    Hope it helps

  • Need to fatch the data from sqlserver to Oracle DATABASE ;not migration

    What is the easiest method to insert/refresh data into Oracle Tables from SQLSERVER 2005 table.Do I need ODBC connection and how it works in the PL/SQL to create the connection and fetch the data from sqlserver.

    I need to fetch from ORACLE back-end ,for example I want to install the mechanism at the back-end server where if I write stored procedure and call this link which enable me to fetch the data from sqlserver.
    Environment:- Linux as OS
    Oracle 10G as a Database

  • Error while accessing menus in Runtime workbench from SLD

    Hi I am getting following error while accessing menus in runtime workbench from SLD.( example: SLD->runtime workbench->component monitorung ->display)
    "Error during communication with System Landscape Directory: User credentials are invalid or user is denied access "
    I am using PISUPER to login to SLD and i am able to login to XI using this ID. I could find role -SAP_XI_RWB_SERV_USER - also in the user id profile of PISUPER.

    Hi Karthik,
    Check if the roles are generated. Or ask your basis team to check.
    IF the roles are generated then you have to check if exchange profile if the right username is mentioned or not.  IF username is right then reenter the password.
    Check the following parameter in exchange profile.
    Edited by: Sumit Khetawat on Dec 28, 2007 11:52 AM

Maybe you are looking for