Date format used in the datepicker

Hi, I have a problem with date format when I open the pop up calendar:
w=open("wwv_flow_utilities.show_as_popup_calendar" +.....
"&p_date_format=" + escape('MM/DD/YYYY HH:MI ' )...
I have the popUp window with message instead of calendar:
" NOT FOUND.
The requested URL /pls/htmldb/wwvflow_utilities.show_as_popup_calendar
was not found on this server."
The same code with format ('MM/DD/YYYY HH24:MI ' ) works.
Tabular form lets me display and use popup_calendar in
format I want('MM/DD/YYYY HH:MI ' ), so I'm sure the datepicker in HTMLDB
can be used with this format.
Did someone go over this? May be any ideas?
Thanks.

Thank you , Scott.
This way to solve the problem is really lifesaving,
but it does not display the date and time contained in the element calling date_popup. May be documentation you used to provide the date_popup with 10 argument has something about setting the date/time to be displayed? If yes please let us know.
By the way the loosing arguments during calling the date_popup from code is the reason why calendar cannot be found. It can be seen using source view of the page:
w = open("wwv_flow_utilities.show_as_popup_calendar" +
"?p_element_index=" + escape('f03' + '['.substr(0,elemArrLen) +'0'.substr(0,elemArrLen) + ']'.substr(0,elemArrLen)) +
"&p_form_index=" + escape('0') +
"&p_date_format=" + escape('MM/DD/YYYY HH:MI') +
"&p_application_format=" + escape('Y') +
"&p_bgcolor=" + escape('#666666') +
"&p_dd=" + escape('') +
"&p_hh=" + escape('') +
"&p_mi=" + escape('') +
"&p_pm=" + escape('') +
"&p_yyyy=" + escape('2005') +
"&p_nls_language=" + escape('AMERICAN') +
"&p_mm=" + escape('11'),
"winLov",
Year and month have default values, but function expects more parameters.
It seems it is possible to make work the data_popup calling it from code and provide it with full set of data/time arguments given to js function as parameters. It works but involves too much typing.
Do you know if the HTMLDB 2.0 has this problem solved?
Thanks again Scott
Thankful anonymous.

Similar Messages

  • Error in date format. using 'BAPI_FIXEDASSET_OVRTAKE_CREATE'.

    Dear Expert,
    I am uplaoding Asset master data using BAPI  'BAPI_FIXEDASSET_OVRTAKE_CREATE'.
    But my problem is BAPI takes capitalization date in 'YYYYMMDD' FORMAT.
    I am uplaoding in server which is having date format 'DDMMYYYY'.
    Due this error i  am unable to upload the data in asset master.
    Please give some solution for this.
    Regards.
    Mohsin S.

    Dear Reddy
    My excel contain date format 'YYYYMMDD'
    But the server in i am uploading data having date format 'DDMMYYYY'.
    bapi also having date format YYYYMMDD.
    BUT in TCODE AS91 HAVING DATE IN DDMMYYYY FORMAT.
    Due to this format it is giving error.

  • BAD DATA FORMAT using cl_gui_frontend_services= gui_upload

    Hello SAPients!
    I'm using the method cl_gui_frontend_services=>gui_upload to upload a file to my program like this
    CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = lvs_input_f1
          filetype                = 'ASC'
        CHANGING
          data_tab                = in_rec[]
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          not_supported_by_gui    = 17
          error_no_gui            = 18
          OTHERS                  = 19.
    The SY-.SUBRC field always returns with a value of 8 (Bad data format?). The thing is that the last field of the structure IN_REC is of type i (integer) and I think this is the problem. I modified the file with a text editor and set the last field with 2, 4, 8 and 16 chars but I always receive the same error. I can't change the last field to char. Does any one have an idea of what is the problem? How can I ensure that the last field have an integer value?
    Thank you.

    Ok, I have modified the code a bit,  you might want to try it.  First upload to a table of type STRING, then move the values to the other internal table.
    report zrich_0001 .
    data: begin of in_rec occurs 0,
             matnr(18),        "Material Number
             bwkey like mbew-bwkey,         " For Plant
             werks like mbew-bwkey,         " Add Plant
             type(2) type c,                " TYPE.
             cname(50) type c,              " Changble Name
             bom(1) type c,                 " BOM Usage
             task(2) type c,                " task type
             verid_nd like ckmlmv001-verid_nd,  "Production Version
             perc(16) type c,               " Percent for Plant1
    * above are user inputs ; below are program flag.
             flag(1) type c,                " Program flag.
             kalnr like ckmlmv001-kalnr,     "
             mix_flag(1) type c,                " Program flag.
             cnt type i,
          end of in_rec.
    data: istr type table of string with header line.
    parameters: p_file type localfile.
    at selection-screen on value-request for p_file.
      data retfiletable type filetable.
      data retrc type sysubrc.
      data retuseraction type i.
      call method cl_gui_frontend_services=>file_open_dialog
        exporting
          multiselection    = abap_false
        changing
          file_table        = retfiletable
          rc                = retrc
          user_action       = retuseraction.
      read table retfiletable into p_file index 1.
    start-of-selection.
      perform open_file.
    *&      Form  OPEN_FILE
    form open_file.
    *------------------------ Begin Change - UN001 ------------------------*
    *  CALL FUNCTION 'WS_UPLOAD'
    *    EXPORTING
    *      filename = input_f1
    *      filetype = 'DAT'
    *    TABLES
    *      data_tab = in_rec.
      data:
        lvs_input_f1 type string.              " To store filename
    *    lit_mat_tbl  TYPE TABLE OF lt_raw_tab, " To store file lines
    *    lwa_mat_tbl  TYPE lt_raw_tab.          " Work area
      lvs_input_f1 = p_file.
    *    lvs_input_f1 = input_f1.
      call method cl_gui_frontend_services=>gui_upload
        exporting
          filename                = lvs_input_f1
          filetype                = 'ASC'
        changing
          data_tab                = istr[]
        exceptions
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          others                  = 19.
      if sy-subrc ne 0.
    *    WRITE / text-e01.
        message e000(fb) with text-e01.
      endif.
      loop at istr.
        in_rec = istr.
        append in_rec.
      endloop.
      loop at in_rec.
        write:/ in_rec.
      endloop.
    *------------------------ End Change   - UN001 ------------------------*
    *SKD 08/02/06---------DEVK980441-----------v
      delete in_rec where perc = 0.
    *SKD 08/02/06---------DEVK980441-----------^
    endform.                    "OPEN_FILE
    Regards,
    Rich Heilman

  • Does the data transfer used in the back up in time capsule included in the data allowance from my service provider?

    Is the data transfer used in the backup with airport time capsule included in the data allowance with my service provider?

    gheefromsa wrote:
    I am using Ethernet cable to connect TC to the modem. I am only backing up my mac book air within range of the TC. So I guess it will be OK from your reply. As a trial I did interrupt the back up by turning off the TC, disconnecting the Ethernet cable, turning TC back on. The mac would not connect wirelessly with the TC without the Ethernet connection.
    It is not using ISP .. absolutely for sure. Well 99.999%.. absolute tends to be only in maths.
    But you did the test wrongly.. I said to disconnect the modem.. during the backup.. not turn off the TC.. obviously once interrupted the TC will not work again until everything is plugged in.. but it will work even bridged for a short time.. just unplug the WAN port from the modem.
    The test is moot now.. as I can give you a 99.999% promise it is not using ISP.

  • Can firefox support "file:///" format to access local files (note 3 fw slashes) this works for IE but not firefox and is the format used in the "afghan war diary" from wikileaks

    can firefox support "file:///" format to access local files (note 3 fw slashes) this works for IE but not firefox and is the format used in the "afghan war diary" from wikileaks

    See http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • How to Change Date Format according to the Locale/Country of Portal User

    Hi,
    In a webdynpro applicaiton, how to chage the  Date Format according to the Locale/Country of Portal User.
    Consider for INDIA: mm/dd/yyyy
    Consider for UK: yyyy/mm/dd
    So when i select the date from the Date Picker[input ui element bound to date context variable], the date format should be displayed accroding the portal users country/locale.
    Creating a simple type for every date format in the dictionary would not be the right solution.
    Please help.
    Thanks,
    Regards,
    Aditya Metukul

    Hi Aditya,
    Check out the following post in SDN and refer the
    Bertram's reply on the same topic.
    date format
    Regards,
    Shubham

  • Is there a way to find out how much data was used over the lifetime of my phone (cumulative cellular and wifi)?

    Is there a way to find out how much data was used over the lifetime of my phone (cumulative cellular and wifi)?
    I was just curious

    Given that the phone doesn't track how much data is used over WiFi, no. And cellular data usage can be reset.

  • List of Number format and Date format according to the Locales

    Hallo everyone.
    I am searching for a list or document which includes the number and date formats according to the country locales. Where can I find sort of document?
    Another question: Where can I find the all parameters of swing.properties file?

    "Date - allows the user to enter a date as a parameter. Note that the data type must also be "Date" and the format must be Java date format."
    Page 4-9, Adding Parameters and Lists of Values
    Oracle® Business Intelligence Publisher
    Report Designer's Guide
    Release 10.1.3.4
    Part No. E12187-01

  • 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

  • Problem with date format using TEXT_CONVERT_XLS_TO_SAP

    I'm using fm TEXT_CONVERT_XLS_TO_SAP to upload an xls file.
    I've the following problem the date in the spreadsheet is 01.01.2010 the result in the internal table after using the fm is 01.jan.2010. What must i do to get 01.01.2010 in the internal table?
    My setting in sap for the date format is DD.MM.YYYY

    Hi,
    What is type and size of your internal table field? Covert your excel column to text field. Now it is of type date i hope.
    Best option is, always have the value in excel in YYYYMMDD (SAP standard format) and internal table field as of type sy-datum.
    After uploading use WRITE TO statement to a character variable to convert the date as per user settings. Your current logic may not work if the date setting is different.
    Thanks,
    Vinod.

  • Problem with date format using date picker

    In my application I provide to user ability to change date format. When using "MMM dd yyyy" format, the date picker paste to the inputbox something like "1111 07 2008" instead of "Nov 07 2008".
    To set the date format I use the following code:
    wdContext.nodeDateNode().getNodeInfo().getAttribute("date").getModifiableSimpleType().setFormat("MMM dd yyyy");
    I know that is known bug of date picker. But there should be other way to implement this functionality. Isn't it?

    Hi
    Check this link
    /message/6430993#6430993 [original link is broken]
    For more details
    http://www.sapdb.org/7.4/htmhelp/48/0d8018b4f211d2a97100a0c9449261/frameset.htm
    Thanks

  • DATE format - while defining the table column

    Hi Friends,
    I came across a piece of code which was applying a TO_DATE() function on a date type column.
    I have two tables t1 and t2 and they have col1 and col2 columns respectively of type DATE
    t1
    col1 DATE
    t2
    col2 DATEalso there is a variable var1 and is defined as below:
    var1 DATE;now I have conditions as below in the code:
    AND to_date(t1.col1,'dd/mm/yyyy') = to_date(t2.col2,'dd/mm/yyyy')
    AND to_date(t1.col1,'dd/mm/yyyy') = to_date(var1,'dd/mm/yyyy')This code failed on Production with an error: ORA-01861 literal does not match format string
    I changed the code to remove TO_DATE() and it worked fine. Dev clarified that they used this function so that if the two columns or variable are in diff date format.,..they can be put in sync.
    e.g. if col1 is dd/mm/yyyy and col2 is mm/dd/yyyy then there will be an issue.
    My doubt is.. in a given environment if we are creating a table and defining a column of type DATE , or defining a variable of type DATE, can their format be different at any time? I think No.?
    In what scenario can the date format be different?
    Thanks,

    Having said that date format is only for display purposes, if you tend to avoid the error without changing the code then you can modify the NLS_DATE_FORMAT parameter at session level.
    SQL> alter session set nls_date_format = 'dd-mm-yyyy'
      2  /
    Session altered.
    SQL> select to_date(sysdate,'dd/mm/yyyy') from dual
      2  /
    TO_DATE(SY
    29-12-2008
    SQL> alter session set nls_date_format = 'mm-dd-yyyy'
      2  /
    Session altered.
    SQL> select to_date(sysdate,'dd/mm/yyyy') from dual
      2  /
    select to_date(sysdate,'dd/mm/yyyy') from dual
    ERROR at line 1:
    ORA-01843: not a valid month
    SQL> select to_date(sysdate,'mm/dd/yyyy') from dual
      2  /
    TO_DATE(SY
    12-29-2008Thanks,
    Karthick.

  • Why does the Canadian regional date format default to the US date format?

    I've discovered that on the iPad, iPhone and MacBook that choosing the Canadian Regional format results in the US date format of mm/dd/yyyy rather than the Canadian format of dd/mm/yyyy. I can use a custom format on the MacBook (but why do I need to??) but can't see how to change under settings on my iPad and iPhone.
    -Bob.

    In iOS8 anyone can now select the "Canadian English" regional setting and you will get dates in correct ISO 8601 YYYY-MM-DD format.  To confirm this is what you should use, check your Ontario Drivers License, OHIP health card or the bottom date on any federal gc.ca  webpage.  Yosemite is also the same. Thanks Apple, for having listened to Canada!
    (You might want to change Siri back to the American female voice from the British-sounding male voice.)

  • Date Format conversion in the Start routine

    Folks,
    i have a simple requirement and just wondering how to acheive this?
    We have a DSO object, feeded by a flat file. File contains Contract date and End date. In the target DSO we have an object called Status, which is dependant on both the date fields but the problem here is dates are coming in different format from the flat file.
    The format is 01-Jan-2010 ( Standard format is 20100101 ).
    I need to convert them to the standard format before calculating the status.
    any simple method to achieve the above?
    appreciate your timely help.
    Thanks.
    ST.

    Hi Satish,
    Use the SDATE Conversion Routine. Please go through the below link:
    http://help.sap.com/saphelp_nw04/helpdata/en/07/d63a68db9110459d63c495b16f522e/frameset.htm
    Hope it Helps,
    Thanks,
    Amit Kr.

  • How can i records with date format using web services?

    Hello
    I can't record date records using web services. I get no message errors.
    I can import string values but no dates (YYYY-MM-DD). Do you have any clue about that?
    Regards
    Arturo

    hello,
    That's the code I'm using to update an opportunity. In the date fields (e.g. dFecha_de_entrega_al_cliente) I've tried to put an specific date in the correct format (If i put it in another format i've got an error message due the wrong format). The CRM accepted the code but it didn't update the values that are different of string.
    I don´t know if there is something missing in teh program or if the developer environment is not the adequate.
    Regards for your comments
    Arturo
    Private Sub ActualizarOportunidad(ByVal fila As Data.DataRow, ByVal TipoPersona As String)
    Dim oLog As New Log()
    Dim IdLog As Integer
    Dim NumSerie As String = ""
    Try
    oLog.Insert_Log("Activación Garantía - Crear Oportunidad", oLog.GetLastIdProceso())
    IdLog = oLog.GetLastId()
    Dim sr_input As Opportunity.OpportunityUpdate_Input
    Dim sr_output As Opportunity.OpportunityUpdate_Output
    sr_input = New Opportunity.OpportunityUpdate_Input
    Dim sr(1) As Opportunity.OpportunityData
    sr(0) = New Opportunity.OpportunityData
    NumSerie = fila("NumeroSerie").ToString().Trim()
    sr(0).ExternalSystemId = NumSerie
    sr(0).OpportunityName = fila("NumeroSerie").ToString().Trim()
    sr(0).SalesStage = "Deseo" '"Cerrada/Ganada"
    sr(0).dFecha_de_entrega_al_cliente = fila("FechaEmision").ToString().Trim()
    sr(0).dFecha_de_facturacin_al_cliente = fila("FechaCompra").ToString().Trim()
    sr(0).stNro_Factura = fila("NumeroFactura").ToString().Trim()
    sr(0).plActividad_Economica = fila("IdActividad").ToString().Trim()
    sr(0).plTipo_de_Venta = fila("TipoCompra").ToString().Trim()
    sr(0).CustomObject8ExternalSystemId = fila("ApellidoVendedor").ToString.Trim()
    'sr(0).CustomObject8ExternalSystemId = IIf(TipoPersona = "J", fila("DocumentoE").ToString().Trim(), fila("Documento").ToString.Trim())
    'sr(0).CustomObject7ExternalSystemId = fila("")
    Dim lofsr As Opportunity.ListOfOpportunityData
    lofsr = New Opportunity.ListOfOpportunityData
    lofsr.Opportunity = sr
    sr_input.ListOfOpportunity = lofsr
    sr_output = oOpportunity.OpportunityUpdate(sr_input)
    oLog.Update_Log(IdLog, "Si", NumSerie, "")
    Catch ex As SoapException
    Me.txtError.Text = ex.Detail.InnerText.ToString()
    oLog.Update_Log(IdLog, "No", NumSerie, ex.Detail.InnerText.ToString())
    End Try
    End Sub
    ************************************************************************

Maybe you are looking for

  • I can't get album artwork back in my iPod Touch

    I had to resync all my playlists, but now I can no longer see any of the album artwork on my iPod. Does anyone have an idea on how to get it back ? I'm using iTunes 8 and have the latest version of iPod software (2.2 I believe)

  • Dinamic Query SQL injection

    I would like to do a dinamic query. I dont know the number of columns of the column and the table, and things like that. I�m worried about sql injection how can i avoid it. For example, select column1,column2,.... from tabla where column1=columna2 an

  • No 4:3 aspect ratio option in iMovie 10.0

    iMovie 10 won't let me choose 4:3 as an aspect ratio. Does anyone know how?

  • ExportVIStrings removed from LV 8.2?

    We are using .Net to read values off a LabVIEW panel via COM - This is pretty straightforward. In LabVIEW 7 we use the ExportVIStrings  COM command from .Net to dump the contents of the front panel to a text file and we  would get the control names f

  • PDP issue - ext reqts missing in SRM system

    We are using SRM 4.0 and R/3 release 4.7 and implementing the PDP (plan driven procurement) scenario. The purchase req is sent from R/3 to SRM, but this requisition is not going as an external reqt in the SRM system. We get an error in SLG1 - "Enter