Date entered as DD/MM/YYYY converts to MM.DD.YYYY

Hi all.
I'm creating a Webdynpro Abap application. In this application, there is a date input field. All our users have the date format set to DD.MM.YYYY, so when the date is displayed, it's in this format.
However, when a user enters a date using "/" instead of "." , the system takes it as if the user was using MM/DD/YYYY format, and converts the values that way.
Example:
User enters 01.02.09 -> This is stored as 20090201
User enters 01/02/09 -> This is stored as 20090102
User enters 15/02/09 -> User gets error "invalid date" (since 15 is processed as month)
You can see that day and month changes places if you use "/".
I have asked SAP and they said this is normal, since the only valid formats are DD.MM.YYYY and MM/DD/YYYY.
So, does anybody know a way to prevent this conversion? A user-exit or BADI could be useful..
Thanks.

It does not help either.. WDA keeps converting 1/2/3 to 20030102.
I have found my own solution: I have created a conversion exit to modify the user entry before the system processes it, and in the conversion exit, I replaced all .-/ characters with user's valid date separator. Then the system does the rest.
e.g. if a user enters 1/2/3, I convert this to "1.2.3", then call cl_abap_datfm=>conv_date_ext_to_int. It becomes 20030201, which is what I want..
Thanks to everyone who tried to help..

Similar Messages

  • FM to convert Date Entered to a standard format

    Hello All,
    Is there any FM to convert the date entered (in the format given in SU01) to a standard format
    (Eg: DD.MM.YYYY).  Is there any FM that does the reverse of it.
    Please help us out with your suggesstions.
    Thanks,
    Seetharaman V

    Hi seetharaman,
    please refer the following link for using the conversion exit for date in BSP application.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/72d7ac11-0501-0010-63a2-cc6960569926
    hpe this ll help.
    thnks.

  • Convert the date of string to datetime format 'MM/dd/yyyy' when the system date format is 'dd/MM/yyyy'.

    I need convert the date of string format 'MM/dd/yyyy' to datetime format 'MM/dd/yyyy' when the system date format is 'dd/MM/yyyy'.Since
    I need to search values based on date where my database datetime  is 'MM/dd/yyyy' format.

    In my opinion you should re-consider the assumption that the date picker returns a string. Maybe it is able to return a
    DateTime object directly instead of string. Then you will pass this value as a parameter of SQL query. This should work regardless of computer configuration.
    Otherwise, follow the previous string-based approaches.

  • How to convert date format to MM/DD/YYYY

    Hi,
       How to convert date format to MM/DD/YYYY.
    Thanks,
    Senthil

    hi,
    tri with this function module
    data :l_date(10) type c
    CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
    EXPORTING
       DATE_INTERNAL                  = SY-DATUM
    IMPORTING
       DATE_EXTERNAL                  = l_date.
    this function module converts date from 20050601 to external format  which is specified in user profile
    cheers,
    sasi

  • Date validation in "DD-MON-YYYY" Format,

    Hi ,
    I have created a textbox with date picker as (dd-mon-yyyy) .
    Now i want to create a validation on it for the format (dd-mon-yyyy) .
    I have created a pl/sql code with type "function returning error text".
    Begin
    If :P4_END_DATE IS NOT NULL THEN
    if :P4_END_DATE != to_date(:P4_END_DATE ,'DD-MON-YYYY') then
    return 'END DATE should be in "DD-MON-YYYY" Format';
    end if;
    END IF;
    End;
    When i type in like 20-NOV-08 it gives error as 'START DATE should be in "DD-MON-YYYY" Format',
    but when i change month like 20-11-2008 , it actually gives error
    ORA-01843: not a valid month
    Error ERR-1024 Unable to run "function body returning text" validation.

    Vaibss wrote:
    Hi ,
    I have created a textbox with date picker as (dd-mon-yyyy) .
    Now i want to create a validation on it for the format (dd-mon-yyyy) .
    I have created a pl/sql code with type "function returning error text".
    Begin
    If :P4_END_DATE IS NOT NULL THEN
    if :P4_END_DATE != to_date(:P4_END_DATE ,'DD-MON-YYYY') then
    return 'END DATE should be in "DD-MON-YYYY" Format';
    end if;
    END IF;
    End;
    When i type in like 20-NOV-08 it gives error as 'START DATE should be in "DD-MON-YYYY" Format',
    but when i change month like 20-11-2008 , it actually gives error
    ORA-01843: not a valid month
    Error ERR-1024 Unable to run "function body returning text" validation.The call to 'to_date' is raising an exception when it tries to convert your date, standard PL/SQL exception handling takes over and the rest of your code is ignored.
    You could try:
    declare
    pragma exception_init(invalid_date,-01830);
    l_dummy date;
    Begin
    If :P4_END_DATE IS NOT NULL THEN
    l_dummy := to_date(:P4_END_DATE ,'DD-MON-YYYY') then
    END IF;
    exception
    when invalid_date then
    return 'END DATE should be in "DD-MON-YYYY" Format';
    End;
    but even that will not check that the user actually used your desired format - the to_date can be quite flexible e.g. accepting separators other than the '-' that you have declared. In fact, the above would only catch the user entering a 'date' that is shorter than the format string - changing the 'invalid_date' for 'others' would capture more (all!) exceptions.
    You probably want to look at using regular expressions to perform the format validation.
    Edited by: Andy Hardy on Nov 25, 2008 12:29 PM

  • Function module to get any date format in DD.MM.YYYY

    Hi  Experts,
    i want a FM which can convert any type of date format user entered on selection screen in DD.MM.YYYY
    date format entered by user  can be any of below format
    DD/MM/YYYY
    MM/DD/YYYYY
    DD/MMM/YYYY
    MM.DD.YYYY
    YYYY/MM/DD
    i want date format in DD.MM.YYYY
    Also is there any FM  which can tell  us that  day of today date is  25th or  not .

    Read forum rules of engagement before posting.
    Basic date posts are not permitted.

  • INSERT & UPDATE changing date format to mm/dd/yyyy!!!

    I have INSERT & UPDATE ASP/VB forms which have a date
    field which submits to
    Access....except when the date is entered as dd/mm/yyyy, it
    decides to
    convert it to mm/dd/yyyy....absolutely terrific!! :o((
    I've added this:
    <% Session.LCID = 2057 %>
    I've checked the date format, I've done absolutely everything
    I can think
    of, and can source on the newsgroups, but NOTHING.
    What, on earth, is going on??????????????
    If anyone can help save me from this madness, please tell me
    why this is
    happening?
    I'm using ASP/VB, with Access on a Windows server and, up
    until now, I've
    never had this problem.
    Here's my INSERT code:
    <%@LANGUAGE="VBSCRIPT"%>
    <% Session.LCID = 2057 %>
    <!--#include file="../Connections/dsnNAME.asp" -->
    <%
    Dim MM_editAction
    MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
    If (Request.QueryString <> "") Then
    MM_editAction = MM_editAction & "?" &
    Server.HTMLEncode(Request.QueryString)
    End If
    ' boolean to abort record edit
    Dim MM_abortEdit
    MM_abortEdit = false
    %>
    <%
    ' IIf implementation
    Function MM_IIf(condition, ifTrue, ifFalse)
    If condition = "" Then
    MM_IIf = ifFalse
    Else
    MM_IIf = ifTrue
    End If
    End Function
    %>
    <%
    If (CStr(Request("MM_insert")) = "form1") Then
    If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_dsnNAME_STRING
    MM_editCmd.CommandText = "INSERT INTO tblNews (newstitle,
    newsdate,
    newsenddate, thumbnail, largeimage, newstextsnip, newstext,
    emailcontact,
    urllink, [include]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202,
    1, 75, Request.Form("newstitle")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2", 135,
    1, -1, MM_IIF(Request.Form("newsdate"),
    Request.Form("newsdate"), null)) '
    adDBTimeStamp
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3", 135,
    1, -1, MM_IIF(Request.Form("newsenddate"),
    Request.Form("newsenddate"),
    null)) ' adDBTimeStamp
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param4", 202,
    1, 75, Request.Form("thumbnail")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5", 202,
    1, 75, Request.Form("largeimage")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6", 203,
    1, 536870910, Request.Form("newstextsnip")) ' adLongVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param7", 203,
    1, 536870910, Request.Form("newstext")) ' adLongVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param8", 202,
    1, 75, Request.Form("emailcontact")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param9", 202,
    1, 75, Request.Form("urllink")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param10", 5,
    1, -1, MM_IIF(Request.Form("include"), 1, 0)) ' adDouble
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    ' append the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "confirm.htm"
    If (Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0)
    Then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    Else
    MM_editRedirectUrl = MM_editRedirectUrl & "&" &
    Request.QueryString
    End If
    End If
    Response.Redirect(MM_editRedirectUrl)
    End If
    End If
    %>
    Thanks.
    Nath.

    Well, I've established that it's DW8.0.2 that is causing this
    strange
    occurence.
    Reverted back to previously created versions of my
    INSERT/UPDATE form pages
    (created in DWMX) and it all works fine!!
    I think that makes the whole situation even more frustrating
    because I had
    HUGE problems with this back in 2003/2004, and resolved it.
    Now I've upgraded to DW8.0.2 and it's all gone "ape" again.
    <sigh>
    Any ideas, looking at the code in my initial post, why this
    is happening?
    For comparison here is the same INSERT created in DWMX that
    WORKS:
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="../Connections/dsnNAME.asp" -->
    <%
    ' *** Edit Operations: declare variables
    Dim MM_editAction
    Dim MM_abortEdit
    Dim MM_editQuery
    Dim MM_editCmd
    Dim MM_editConnection
    Dim MM_editTable
    Dim MM_editRedirectUrl
    Dim MM_editColumn
    Dim MM_recordId
    Dim MM_fieldsStr
    Dim MM_columnsStr
    Dim MM_fields
    Dim MM_columns
    Dim MM_typeArray
    Dim MM_formVal
    Dim MM_delim
    Dim MM_altVal
    Dim MM_emptyVal
    Dim MM_i
    MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
    If (Request.QueryString <> "") Then
    MM_editAction = MM_editAction & "?" &
    Request.QueryString
    End If
    ' boolean to abort record edit
    MM_abortEdit = false
    ' query string to execute
    MM_editQuery = ""
    %>
    <%
    ' *** Insert Record: set variables
    If (CStr(Request("MM_insert")) = "form1") Then
    MM_editConnection = MM_dsnNAME_STRING
    MM_editTable = "tblNews"
    MM_editRedirectUrl = "confirm.htm"
    MM_fieldsStr =
    "newstitle|value|newsenddate|value|thumbnail|value|largeimage|value|newstextsnip|value|ne wstext|value|emailcontact|value|urllink|value|include|value"
    MM_columnsStr =
    "newstitle|',none,''|newsenddate|',none,NULL|thumbnail|',none,''|largeimage|',none,''|new stextsnip|',none,''|newstext|',none,''|emailcontact|',none,''|urllink|',none,''|include|no ne,1,0"
    ' create the MM_fields and MM_columns arrays
    MM_fields = Split(MM_fieldsStr, "|")
    MM_columns = Split(MM_columnsStr, "|")
    ' set the form values
    For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i)))
    Next
    ' append the query string to the redirect URL
    If (MM_editRedirectUrl <> "" And Request.QueryString
    <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And
    Request.QueryString <> "") Then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    Else
    MM_editRedirectUrl = MM_editRedirectUrl & "&" &
    Request.QueryString
    End If
    End If
    End If
    %>
    <%
    ' *** Insert Record: construct a sql insert statement and
    execute it
    Dim MM_tableValues
    Dim MM_dbValues
    If (CStr(Request("MM_insert")) <> "") Then
    ' create the sql insert statement
    MM_tableValues = ""
    MM_dbValues = ""
    For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_formVal = MM_fields(MM_i+1)
    MM_typeArray = Split(MM_columns(MM_i+1),",")
    MM_delim = MM_typeArray(0)
    If (MM_delim = "none") Then MM_delim = ""
    MM_altVal = MM_typeArray(1)
    If (MM_altVal = "none") Then MM_altVal = ""
    MM_emptyVal = MM_typeArray(2)
    If (MM_emptyVal = "none") Then MM_emptyVal = ""
    If (MM_formVal = "") Then
    MM_formVal = MM_emptyVal
    Else
    If (MM_altVal <> "") Then
    MM_formVal = MM_altVal
    ElseIf (MM_delim = "'") Then ' escape quotes
    MM_formVal = "'" & Replace(MM_formVal,"'","''") &
    Else
    MM_formVal = MM_delim + MM_formVal + MM_delim
    End If
    End If
    If (MM_i <> LBound(MM_fields)) Then
    MM_tableValues = MM_tableValues & ","
    MM_dbValues = MM_dbValues & ","
    End If
    MM_tableValues = MM_tableValues & MM_columns(MM_i)
    MM_dbValues = MM_dbValues & MM_formVal
    Next
    MM_editQuery = "insert into " & MM_editTable & " ("
    & MM_tableValues & ")
    values (" & MM_dbValues & ")"
    If (Not MM_abortEdit) Then
    ' execute the insert
    Set MM_editCmd = Server.CreateObject("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_editConnection
    MM_editCmd.CommandText = MM_editQuery
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    If (MM_editRedirectUrl <> "") Then
    Response.Redirect(MM_editRedirectUrl)
    End If
    End If
    End If
    %>
    This type of thing does my HEAD in.
    Nath.
    "tradmusic.com" <[email protected]> wrote in
    message
    news:[email protected]...
    >I have INSERT & UPDATE ASP/VB forms which have a date
    field which submits
    >to Access....except when the date is entered as
    dd/mm/yyyy, it decides to
    >convert it to mm/dd/yyyy....absolutely terrific!! :o((
    >
    > I've added this:
    > <% Session.LCID = 2057 %>
    >
    > I've checked the date format, I've done absolutely
    everything I can think
    > of, and can source on the newsgroups, but NOTHING.
    > What, on earth, is going on??????????????
    >
    > If anyone can help save me from this madness, please
    tell me why this is
    > happening?
    > I'm using ASP/VB, with Access on a Windows server and,
    up until now, I've
    > never had this problem.
    >
    > Here's my INSERT code:
    >
    > <%@LANGUAGE="VBSCRIPT"%>
    > <% Session.LCID = 2057 %>
    > <!--#include file="../Connections/dsnNAME.asp" -->
    > <%
    > Dim MM_editAction
    > MM_editAction =
    CStr(Request.ServerVariables("SCRIPT_NAME"))
    > If (Request.QueryString <> "") Then
    > MM_editAction = MM_editAction & "?" &
    > Server.HTMLEncode(Request.QueryString)
    > End If
    >
    > ' boolean to abort record edit
    > Dim MM_abortEdit
    > MM_abortEdit = false
    > %>
    > <%
    > ' IIf implementation
    > Function MM_IIf(condition, ifTrue, ifFalse)
    > If condition = "" Then
    > MM_IIf = ifFalse
    > Else
    > MM_IIf = ifTrue
    > End If
    > End Function
    > %>
    > <%
    > If (CStr(Request("MM_insert")) = "form1") Then
    > If (Not MM_abortEdit) Then
    > ' execute the insert
    > Dim MM_editCmd
    >
    > Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    > MM_editCmd.ActiveConnection = MM_dsnNAME_STRING
    > MM_editCmd.CommandText = "INSERT INTO tblNews
    (newstitle, newsdate,
    > newsenddate, thumbnail, largeimage, newstextsnip,
    newstext, emailcontact,
    > urllink, [include]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?,
    > MM_editCmd.Prepared = true
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202,
    > 1, 75, Request.Form("newstitle")) ' adVarWChar
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2", 135,
    > 1, -1, MM_IIF(Request.Form("newsdate"),
    Request.Form("newsdate"), null)) '
    > adDBTimeStamp
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3", 135,
    > 1, -1, MM_IIF(Request.Form("newsenddate"),
    Request.Form("newsenddate"),
    > null)) ' adDBTimeStamp
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param4", 202,
    > 1, 75, Request.Form("thumbnail")) ' adVarWChar
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5", 202,
    > 1, 75, Request.Form("largeimage")) ' adVarWChar
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6", 203,
    > 1, 536870910, Request.Form("newstextsnip")) '
    adLongVarWChar
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param7", 203,
    > 1, 536870910, Request.Form("newstext")) ' adLongVarWChar
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param8", 202,
    > 1, 75, Request.Form("emailcontact")) ' adVarWChar
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param9", 202,
    > 1, 75, Request.Form("urllink")) ' adVarWChar
    > MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param10", 5,
    > 1, -1, MM_IIF(Request.Form("include"), 1, 0)) ' adDouble
    > MM_editCmd.Execute
    > MM_editCmd.ActiveConnection.Close
    >
    > ' append the query string to the redirect URL
    > Dim MM_editRedirectUrl
    > MM_editRedirectUrl = "confirm.htm"
    > If (Request.QueryString <> "") Then
    > If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) =
    0) Then
    > MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    > Else
    > MM_editRedirectUrl = MM_editRedirectUrl & "&"
    & Request.QueryString
    > End If
    > End If
    > Response.Redirect(MM_editRedirectUrl)
    > End If
    > End If
    > %>
    >
    > Thanks.
    > Nath.
    >

  • Trasnform current date to format MM/dd/yyyy HH:mm:ss AM/PM

    Hi All,
    How do I transform current date to format MM/dd/yyyy HH:mm:ss AM/PM?
    I am able to get the format MM/dd/yyyy HH:mm:ss by using the standard date function. How do I get AM or PM to end of MM/dd/yyyy HH:mm:ss??
    Thanx
    Navin

    Hi Navin,
    How AM/PM is added? In the sample values given its in 24 hrs notation. Are u sure you want to add AM/PM to this notation? or U want to change this 24 hrs notation into 12 hrs and add AM/PM?
    For converting into 12 hrs and appending AM/PM you can use this code:
    input a:
    int hr = Integer.parseInt(a.substring(11,13));
    String appendVal = "AM";
    if(hr > 12){
       hr = hr - 12;
       appendVal = "PM";
    } else if(hr == 12){
       appendVal = "PM";
    } else if(hr == 00){
       hr = hr + 12;
    Sting finalVal = a.substring(0,11) + String.ValueOf(hr) + a.substring(13,a.length()) + appendVal;
    return finalVal;
    Regards,
    P.Venkat
    Message was edited by:
            Venkataramanan

  • How can I change defaut date format to dd-mon-yyyy in bi analytics

    hi..
    How can I change the default date format to DD-MON-YYYY in BI Analytics...
    I am passing a date in a report from a prompt....but it is always taking "dd-mon-yyyy hh:mm:ss" format...I want to input the prompt in oracle's default date format i.e dd-mon-yyyy..
    please help...I dont want to use cast function because it will convert the date into a character value....I want a date...

    Hi USer
    Try this link
    How to change date format in OBIEE
    Re: repository variable at date prompt
    Thanks
    Diney

  • SQL * Loader : Load data with format MM/DD/YYYY HH:MI:SS PM

    Please advice how to load data with format MM/DD/YYYY HH:MI:SS PM into an Oracle Table using SQL * Loader.
    - What format should I give in the control file?
    - What would be the column type to create the table to load data.
    Sample data below;
    MM/DD/YYYY HH:MI:SS PM
    12/9/2012 2:40:20 PM
    11/29/2011 11:23:12 AM
    Thanks in advance
    Avinash

    Hello Srini,
    I had tried with the creation date as DATE datatype but i had got an error as
    ORA-01830: date format picture ends before converting entire input stringI am running the SQL*LOADER from Oracle R12 EBS front-end.
    the contents of my control file is
    LOAD DATA
    INFILE "$_FileName"
    REPLACE
    INTO TABLE po_recp_int_lines_stg
    WHEN (01) = 'L'
    FIELDS TERMINATED BY "|"
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    INDICATOR                POSITION(1) CHAR,
    TRANSACTION_MODE          "TRIM(:TRANSACTION_MODE)",
    RECEIPT_NUMBER               "TRIM(:RECEIPT_NUMBER)",
    INTERFACE_SOURCE          "TRIM(:INTERFACE_SOURCE)",
    RECEIPT_DATE               "TO_CHAR(TO_DATE(:RECEIPT_DATE,'MM/DD/YYYY'),'DD-MON-YYYY')",
    QUANTITY               "TRIM(:QUANTITY)",
    PO_NUMBER               "TRIM(:PO_NUMBER)",
    PO_LINE_NUMBER               "TRIM(:PO_LINE_NUMBER)",
    CREATION_DATE               "TO_CHAR(TO_DATE(:CREATION_DATE,'MM/DD/YYYY HH:MI:SS AM'),'DD-MON-YYYY HH:MI:SS AM')",
    ERROR_MESSAGE                   "TRIM(:ERROR_MESSAGE)",
    PROCESS_FLAG                    CONSTANT 'N',
    CREATED_BY                      "fnd_global.user_id",
    LAST_UPDATE_DATE                SYSDATE,
    LAST_UPDATED_BY                 "fnd_global.user_id"
    {code}
    My data file goes like
    {code}
    H|CREATE|123|ABC|12/10/2012||||
    L|CREATE|123|ABC|12/10/2012|100|PO12345|1|12/9/2012  2:40:20 PM
    L|CORRECT|123|ABC|12/10/2012|150|PO12346|2|11/29/2011 11:23:12 AM{code}
    Below is the desc of the table
    {code}
    INDICATOR             VARCHAR2 (1 Byte)                         
    TRANSACTION_MODE        VARCHAR2 (10 Byte)                         
    RECEIPT_NUMBER             NUMBER                         
    INTERFACE_SOURCE        VARCHAR2 (20 Byte)                         
    RECEIPT_DATE             DATE                    
    QUANTITY             NUMBER                    
    PO_NUMBER             VARCHAR2 (15 Byte)                         
    PO_LINE_NUMBER             NUMBER                         
    CREATION_DATE             TIMESTAMP(0)                         
    ERROR_MESSAGE             VARCHAR2 (4000 Byte)                         
    PROCESS_FLAG             VARCHAR2 (5 Byte)                         
    CREATED_BY             NUMBER               
    LAST_UPDATE_DATE        DATE               
    LAST_UPDATED_BY             NUMBER     {code}
    Thanks,
    Avinash                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Date format from mm/dd/yyyy to dd-mmm-yyyy

    How to convert the date from 01/01/2006 to 01-Jan-2006??

    Hi sravanthi,
    1. we have to apply some logic for that,
       and use the standard FM
       'MONTH_NAMES_GET'
    2. i have an independent FORM/PERFORM
       in which we give input as some date,
       and it returns date in format
       dd-mon-yyyy.
    3. just copy paste in new program and run.
    report abc.
    DATA : mname(25) TYPE c.
    PARAMETER : d TYPE sy-datum default sy-datum.
    PERFORM getmonth USING d mname.
    WRITE :/ mname.
    FORM getmonth USING d mname.
      DATA : month_names LIKE t247 OCCURS 0 WITH HEADER LINE.
      DATA : m(2) TYPE c.
      m = d+4(2).
      CALL FUNCTION 'MONTH_NAMES_GET'
    EXPORTING
    LANGUAGE = SY-LANGU
    IMPORTING
    RETURN_CODE =
      TABLES
      month_names = month_names
      EXCEPTIONS
      month_names_not_found = 1
      OTHERS = 2
      READ TABLE month_names INDEX m.
      IF sy-subrc = 0.
        mname = month_names-ktx.
      ENDIF.
    concatenate d+6(2) '-' mname '-' d(4) into mname.
    ENDFORM. "getmonth
    regards,
    amit m.

  • Re:How to pick the date format as dd/MM/yyyy from the database

    Hi all,
    I am using JDev 11.1.2.3.0
    My requirement is ,i want to pick the date from the database as dd/MM/yyyy format.I set the attribute as
    r1.setAttribute("JobDescription",
    "From" + olrow.getAttribute("PeriodFrom") + "To" + olrow.getAttribute("PeriodTo")
    here periodFrom and periodTo are the date attributes.i set periodFrom and periodTo date format as dd/mm/yyyy in the VO.on UI page it is showing dd/mm/yyyy format.but it is storing in the database as yyyy/mm/dd format.Here my problem is when i set periodFrom and periodTo values to the JobDescription,the JobDescription format is showing yyy/mm/dd format.here i want to show the JobDescription also dd/mm/yyyy format on the UI page.here JobDescriptin type is string.can anyone help me out please...
    Thanks,
    G.Shilpa

    Hi,
    you can use SimpleDateFormat to parse Date objects to formatted Strings
    SimpleDateFormat (Java Platform SE 7 )
    Note that dependent in your Date type you may deal with Date or SQL Date in ADF BC. SqlDate woild need to be converted to Date first and then parsed into a formatted String. I suggest you Google for SimpleDateFormat examples
    Frank

  • Conversion of date to a dd-mm-yyyy

    Hello
    How to convert the Date object to dd-mm-yyyy format
    -thanks

    Here an example:
    SimpleDateFormat sdf=new SimpleDateFormat(new String("dd-MM-yyyy"));
    Date dateIn;
    try {
         dateIn= sdf.parse( date );
    catch (java.text.ParseException pe){
    }

  • Data entered by user in the front end is lost when ever their is an error

    Hi,
    I am working for an internal tool aplication which is used to enter/manipulate employee details.
    We are using ORACLE APEX for this.
    We have completed most of the application wr.t Master detail page
    But when we are testing we had this problem as below:
    The user enters a new record with some details as Employee name,DOJ,Salary etc
    When the user has entered correct details the data is loaded in to database,
    But when the data entered is wrong at any stage say Salary after entering say 10 fields, an error is popped up as per the code. And when the user getss back to the eneterd fields to change the data suddenly eneterd fileds are disappeared.
    Can anyone please help us in understanding this with a solution
    Thanks,
    Eshwar Prasad

    Hi Vishnu,
    I created One Report region (tabular form) to validate the row entered by user, creating page level validation using apex_application..here it is not possibe to create the item level validation.If there is any possibilty plz send the process how to create item level validation..
    Thanks
    Eshwar Prasad

  • Unable to send the data entered in sap portal

    Hi
    All
    i am trying to configure and test  Leave Request  from portal. When, we create the leave request and submit for the first time, it is giving the error/message Unable to send the data entered However, if do a submit for the second time, the same leave request, it sends the leave request.
    Please share your valuable thoughts or solutions.Thanks in advance.
    Tanks
    Rafi Shaik

    Hi Rafi,
    We are also facing similar kind of issue.
    When i select type of leave as annual it is giving an error message as
    " Parameter  missing in call of method BUILD_ACTOR_SELECT_CLAUSE in class CA_PT_REQ_ACTOR "
    But when i select some other leave type and click review it is working fine, again if i click on previous step and change the leave type to annual it is working fine without giving any error message.
    Please let us know how you have solved your issue?
    Thanks.
    -Suresh

Maybe you are looking for

  • I hate my imac - what do i do now?

    every day is a new and frustrating adventure with my imac. i've only had it 8 months and every day it's nothing but problems. 1) ichat suddenly stopped working one day (after working just fine 5 or 6 times. 2) it no longer recognizes my external hard

  • Validate account assignment in Sales Order

    How do we get the account assignment (cost centre or internal order) validated in the sales order? By 'validated' I mean to have them pass the CO account assignment rules where for us the accounts that are going to be posted to by this type of sales

  • Run script in autosys at a specified time.

    I have created a shell script. I want to run the script in Autosys. Please note that my shell script runs as "$ ksh run.ksh" How do I make autosys run this script at 5:00PM every day? insert_job: abc job_type: c box_name: run.box command: ksh run.ksh

  • ERP 2005 (ECC6) Ramp-up and Solution Manager

    Can anyone share their experiences in using SOLMAN 3.2 as part of an ECC6 Ramp-up project?  To what extent is Solution Manager actually being used and what for? Thanks . . .

  • How to enable file size 2GB for linux RHEL4.0

    Hi I am on oracle 9.2.0.6 on linux RHEL 4.0. How do i enable large file size for filesystems. When i query ulimit -a ulimit -f it is returning me unlimited. But my database listener crashed as listener log file reached 2gb in size. I couldnt find how