Upload into datetime

Hi i have an csv file which i have a date time column which i
need to upload to mysql database column with is formatted as
datetime
the problem i have is the csv is formatting the date time as
mm-dd-yyyy hh:mm:ss which will not upload
i have tried uploaing via a http request, is there a way of
changing the format in th csv or adding some cf code to change the
format after the http request
the http code i am using is
<cfloop index="currRow" from="#form.startRow#"
to="#form.dispRows#">
<cfif IsDefined("form.ID_#currRow#")>
<cfset ID = Evaluate("form.ID_" & currRow)>
<cfquery name="INSERT" datasource="#application.ds#">
UPDATE records
SET Dateoh = '#form["DateofSM_#currRow#"]#'
WHERE ID = #ID#
</cfquery>
<cfelse>
<cfbreak>
</cfif>
</cfloop>

Probably not but you can try it. Dateformat returns a string,
not a datetime object. CreateDateTime will create a datetime object
but you have to use it the way the manual tells you to. From then,
either createodbcdatetime or cfqueryparam will work.

Similar Messages

  • ITunes wiped all but iTunes purchased music from my iPad mini and my iPod nano instead of transferring the cd uploads into iTunes. Is there any way of recovering my music.  Very disappointed!

    Initially things worked fine. I was very pleased. I had my music library in itunes, on my Ipod nano, and a thumbdrive to back up most of my music.
    When I tried to sync the music from itunes onto my new ipad mini last week it deleted the albums in itunes leaving me with only purchased itunes items in the account, On the new Ipad mini CD's from my collection could not be played but they were in fact listed. My new mac will not read the music files I backed up onto a thumb drive or show the uploaded CD music collection. Additionally when I logged into itunes with out any devices connected from my PC the itunes account was completely up to date with my CD's and purchase items in Itunes. As soon as I tried to sync it with my Ipad mini that virtual access to the collection was wiped out leaving only purchased items.
    By trying to upload CD music from my Ipod nano into Itunes (originally uploaded into itunes from CD's and  synced to the ipod nano in the first place, taking more than a weeks time), I am prompted to reset the entire ipod nano to factory settings (it gives no other option).  I was following the instructions emailed to me from the applecare team. This was my only recourse for recovery of the lost music files, the only device left that had my album collection aside from the owned CD's. Now the ipod nano is being wiped clean and left with only the itunes purchased music ( same thing that happened with the itunes account and now the Ipad). When I disconnect the ipod nano to see if there are any albums still left on the device, it gives me an error that it was improperly disconnected.
    I just wanted to add the music from itunes to my new mac and the new ipad mini. Instead I have lost all of my uploaded CD's and now have only purchased items in itunes, the new ipad mini, the new mac, and the ipod nano.  I have to  re-upload my entire music library into itunes/icloud from CD's again and hopefully be able to then sync it with my new devices.
    However it may be better to buy the itunes purchased music on CD's from a store, Cut my losses while I can and never buy anything from apple or itunes again. Atleast I will not have my entire music collection wiped out for moving it between my own devices. Itunes match doesn't do **** either. I have wasted alot of hard earned cash on devices products and itunes purchases by converting to apple products and services.
    What a big mistake.
    Very dissapointed with the interface. Very Very Dissapointed!
    [email protected]
    [email protected]

    Had the same issue when I changed computers.  I backed up my I-tunes files, including CDs, but I-Tunes will not recognize anything but Apple purchases now.  There were 300+ CDs in that original catalog.

  • HT1364 All the cd's I have bought over the years, have all been uploaded into iTunes on a Windows PC. I have just bought an iMac and want to transfer my library across. What is the best way?

    All the cd's I have bought over the years, have all been uploaded into iTunes on my Windows PC. I have tried just copying my iTunes folder across to my new iMac, but it doesn't recognise all of the music (but it does recognise some?). Can someone please tell me the best way to transfer my iTunes library from my PC to my iMac?
    Thanks, Caroline

    Copy the entire /My Music/iTunes/ folder from your PC to /Music/ on your Mac.

  • How do I share files uploaded into the Creative Cloud with other creative cloud members?

    How do I share files uploaded into the Creative Cloud with other creative cloud members?

    Should be easy.  Try this...
    In Thumbnails view, click the little triangle (pointing downward) in the lower-right corner of the asset you want to share.
    In the blue icon bar that appears, click the Share icon (the third icon from the left, just right of the trash icon). The Share dialog should pop up.
    In the Share dialog, enter the email address of the person with whom you want to share the asset, then click the Send Email button - they'll receive an email with a link to your asset. OR
    You can also copy a link to the asset and then paste that into your own email client if you prefer.  To do that, click the Link icon (looks like a "chain", and is to the right of the email "envelope" icon) - then click the Copy Link button.
    Note that the Share options won't be available if your asset is set to "Private" - you can control whether an asset can be viewed (or downloaded) by others by clicking the Public/Private control (green or red "lock" icon).
    You can also access the same Share controls if you click on the file to see it one-up (you can do this from either Thumbnails view or List view); click the Share icon near the upper right corner of the browser window (to the right of the asset name).
    Hope that helps.

  • How can one  read a Excel File and Upload into Table using Pl/SQL Code.

    How can one read a Excel File and Upload into Table using Pl/SQL Code.
    1. Excel File is on My PC.
    2. And I want to write a Stored Procedure or Package to do that.
    3. DataBase is on Other Server. Client-Server Environment.
    4. I am Using Toad or PlSql developer tool.

    If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
    1. Get your DBA to create directory object in oracle using the following command:
    create directory TEST_DIR as ‘directory_path’;
    Note: This directory is on the server.
    2. Grant read,write on directory directory_object_name to username;
    You can find out the directory_object_name value from dba_directories view if you are using the system user account.
    3. Logon as the user as mentioned above.
    Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
    function getData(p_filename in varchar2,
    p_filepath in varchar2
    ) RETURN VARCHAR2 is
    input_file utl_file.file_type;
    --declare a buffer to read text data
    input_buffer varchar2(4000);
    begin
    --using the UTL_FILE in built package
    input_file := utl_file.fopen(p_filepath, p_filename, 'R');
    utl_file.get_line(input_file, input_buffer);
    --debug
    --dbms_output.put_line(input_buffer);
    utl_file.fclose(input_file);
    --return data
    return input_buffer;
    end;
    Hope this helps.

  • Urgent: Error while uploading into pdf file

    Hi ,
    I got a requirement that converting smartform into pdf file and sending into application server, And uploading the that pdf file into presentation server once a day am geting error when uploading into pdf format from application server .
    Error : There was an  error while tryinging to parse an image.
    Please help me out its urgent.
    Thanks in advance
    Regards
    krishna
    Edited by: krishna rao on Feb 13, 2008 12:05 PM

    U can use this code
    Reward if useful
    REPORT  ZMN_PDF_UPLOAD.
    data: begin of itab occurs 0,
    field(256),
    end of itab.
    data: dsn(100) value '\usr\sap\DEV\DVEBMGS00\work\testpdf',
    length like sy-tabix,
    lengthn like sy-tabix.
    call function 'GUI_UPLOAD'
    exporting
    filename = 'c:\temp\test.pdf'
    filetype = 'BIN'
    importing
    filelength = length
    tables
    data_tab = itab.
    open dataset dsn for output in binary mode.
    loop at itab.
    transfer itab-field to dsn.
    endloop.
    close dataset dsn.
    clear itab.
    refresh itab.
    *To crosscheck if it went well
    open dataset dsn for input in binary mode.
    do.
    read dataset dsn into itab-field.
    if sy-subrc = 0.
    append itab.
    else.
    exit.
    endif.
    enddo.
    call function 'GUI_DOWNLOAD'
    exporting
    filename = 'c:\temp\testn.pdf'
    filetype = 'BIN'
    bin_filesize = length
    importing
    filelength = lengthn
    tables
    data_tab = itab.
    *Or
    *Use the TCode
    *CG3Z or CG3Y
    *for downloading to Application Server.

  • I have a large classical music collection.  As I uploaded into the IMAC needless duplication occurred in the genre classifications.  Some compositions are separated by movement and placed in "LP-Classical" genre, but in duplicated genres. How combine thos

    Question:  I have a large classical music collection which I have  uploaded into my IMAC computer. In the process many of the compositions were placed in needlessly duplicated genre categories ( a sonata turns in three SEPARATE "LP-Classical" categories, all 3 movements separated into different "LP-Classical"  categories, one atop the other.  How does one eliminate the foolish duplication and recombine the three movements into one composition? I am Desperate.
    Normal editing techniques do not work for this problem!  Thank you/

    Question:  I have a large classical music collection which I have  uploaded into my IMAC computer. In the process many of the compositions were placed in needlessly duplicated genre categories ( a sonata turns in three SEPARATE "LP-Classical" categories, all 3 movements separated into different "LP-Classical"  categories, one atop the other.  How does one eliminate the foolish duplication and recombine the three movements into one composition? I am Desperate.
    Normal editing techniques do not work for this problem!  Thank you/

  • Turkish Special characters issue in ECC 6.0, while uploading into table

    HI All,
    We are working with Turkish special characters in ECC 6.0
    We are uploading a CSV file containing characters like : İ, Ğ, Ş, Ü, Ö, as soon as the file gets uploaded to application server,
    it gets converted to ? or # or Ý.
    Also, we are reading the file using OPEN DATASET, ENCODING NON-UNICODE, IGNORING CONVERSION ERRORS, the same characters gets uploaded into the custom table  i.e. Ý.
    I have also tried saving the file in UNICODE / UTF-8 format, but the issue still remains.
    I tried searching SAP Notes as well.
    Any pointers to resolve the same will be helpful.
    Regards,
    Siddhesh Sanghvi

    Dear Siddhesh,
    Perhaps OSS note 508854 could help here.
    Also please be aware that Turkish only runs on ISO codepage 8859-9 (aka Latin-5 / SAP codepage 1610).
    I hope this helps.
    Best regards,
    Ian Kehoe

  • Read Application server file and upload into internal table

    Another help needed guys,
    My file in the application server is of format
    Name       Marks 1    Marks  2       Marks 3............
    A                10             15               20
    The only thing separating the columns is space.
    Actually this file was downloaded from an internal table into the app server.
    Now I want to load it back into the internal table.
    How do I load this into internal table so that each column goes in separate internal table field.
    Currently am using cl_abap_char_utilities=>HORIZONTAL_TAB but I can get only the first column name in my field1 of the internal table.
    How should I applroach this?
    Points will be awarded for useful answers.
    Regards
    Ankit

    Hi ankit,
    i think u have uploaded the tab delimited file in the application sever.
    then suppose see if u r file is in the format of name#marks1#marks2#marks3.
    then in the program u do like this..
    first declare one internal table with one filed.
    data:
      c_hextab(1)      TYPE x VALUE '09'.
    data:
      begin of t_data occurs 0,
          line(256) type c,
      endof t_data.
    and declare one more intternal table
    data:
    begin of  t_itab occurs 0,
      name(15)    type c,
      marks1(4)   type c,
      marks2(4)   type c,
      marks3(4)   type c,
    endof t_itab.
    then
    open the file with
    OPEN DATASET p_file FOR INPUT IN TEXT MODE.
    then  between do and endo do like this..
    DO.
    clear t_data.
    READ DATASET p_file INTO t_data.
    if sy-subrc ne 0.
      exit.
    else.
    split t_data at c_hextab
          into t_itab-name
                t_itab-marks1
    t_itab-marks2
    t_itab-marks3.
    append t_itab.
    endif.
    enddo.
    i think it will be helpful to u
    Please let me know wht type of file has been uploaded into application server.(tab deleimted, comma separated or something else).
    Regards,
    Sunil Kumar Mutyala.

  • Bulk upload into an existing email newsletter database

    Hi,
    I would like to do a bulk upload into an existing email newsletter database.
    When I export the database that I want to update, the file format is:
    Full Name | Email Address | Opt-in Status | Subscribe date
    However, the file format of the entities basic import file is:
    Email Address
    Title
    First Name
    Last Name
    Company Name
    Custom Date
    Which one should I use?
    Thanks for your help.

    Hi Christina,
    You need to use the file format of the import file, always.
    Otherwise you'll end up with customers that have email addresses as name and names as email addresses.
    Let me know if you run into any issues.
    Thanks and regards,
    Florin

  • Searching pdf's content after uploaded into my table

    Hi,
    I have managed to get pdf files uploaded into my table using the following code:
    INSERT INTO APPROVALS (id,REFERENCE_ID,BLOB_CONTENT, MIME_TYPE)
    SELECT ID,:p5_reference_id,blob_content,mime_type
    FROM HTMLDB_APPLICATION_FILES WHERE name = :p5_part1;
    :p5_part1 is the file browse item on page 5. I now want to be able to search the content of all pdf documents loaded in my table for strings entered by the user. I have read the Oracle Text Application white paper, but this appears to require the name of all documents being entered in the code, rather than being done dynamically.
    I am finding it hard to convert the code in the white paper to accomodate my needs. Has any one got any code or ideas of how to approach this task ?
    Many Thanks
    Robert

    Robert,
    This is not as difficult as you're making it sound. There is no requirement that the name of all documents is in code. You're basically 90% of the way there. All you need to do is create an Oracle Text index on this table.
    create index approvals_idx on approvals(blob_content) indextype is ctxsys.context
      parameters ('filter ctxsys.auto_filter');This is discussed at:
    http://download-west.oracle.com/docs/cd/B19306_01/text.102/b14218/cdatadic.htm#sthref451
    Once it's properly indexed, you can perform whatever CONTAINS query you desire in a reporting region, PL/SQL block, whatever. Note that you'll need to keep your index in sync as you add content to it, but that's in the Text Reference guide - you just need to get the basics working now.
    Joel

  • Is there a software that will allow DVD video to put inserted into computer and uploaded into Mac iMovie?

    Is there a software that will allow DVD video to put inserted into computer and uploaded into iMovie on my MacBook Pro?

    Check out this user tip and see if it helps.
    https://discussions.apple.com/docs/DOC-3951

  • No upload into R/3 Message no. CRM_ORDER_MISC022

    Hie Guys....When i am creating a Sales Document in CRM it is not replicated once to R/3 and the when we were trying to make some changes to that QT, it had the header System Status 'Contains Errors'
    In transaction SMW01 I only have One Out going B doc with below messages
    1. No upload into R/3 Message no. CRM_ORDER_MISC022
    2. R/3 adapter is called Message no. CRM_ORDER_MISC024
    Note: I have checked the SAP note 791713, implementation CRM_SALESDOCU_R3A was active in SE19.
    u201CSystem Status 'Contains Errors' Description explaines me below
    You receive error messages for the business transaction and business transaction item in the application log. If no more error messages are available here, the status "incorrect" is reset.
    If at least one error message exists for an item, the item is "incorrect" in the status.
    If an error message exists for the business transaction at header level or at another item, the business transaction is "incorrect" in the status.u201D
    But its not true.FYI it works well with other QT. So I think we somehow be able to delete this Error Message. Does anyone know who can I have this QT error Free and have it replicated?
    thanks and regards,
    Lata.

    Hello,
    Even if you have set up the middleware/replication correctly for this transaction; if you transaction contains errors (indicated by the system status "contains errrors") the transaction will not be replicated to R/3.
    You should solve the errors (missing required field, missing partner functions, ...) until you transaction is error-free and save it again. The system will then remove the status "Contains errors" and the middleware/replication will pick up the transaction and perform the replication to R/3.
    If, for some reason, the status 'Contains errors' is set but you don't have errors in your transaction then you should make an error yourself (e.g. by emptying a required field) so that an error occurs and then correct the error, the system should than remove the status correctly.
    Hope this helps,
    Regards,
    Joost

  • A private label album shows that it is uploaded into iTunes Match, yet I cannot download it to my iPhone.  I can't figure out why?

    5300+ of my 5600+ songs uploaded into iTunes match.  One album of songs, private label, shows that it's loaded (there's a "cloud" beside all the songs), they are appropriate-bit-rate MP3s, and play just fine on my iMac.  However, they're greyed-out when I try to download them to my iPhone 5.  Any ideas?

    Further investigation (and adding some display columns for iCloud status) revealed this album, among a few hundred other songs, were "Waiting".  Observing it run, iTunes Match would attempt to upload song #1 (not on this album) then restart.  Again and again. 
    Using Launcher to get to the Console, I found a iTunes Match "unexpected connection closure" error listed, about a couple hundred times since I started this process on Saturday.  Not good.  And then a bunch of Google results for various potential problems.
    Examining my results, now with that iCloud status column, I found that basically my entire Old Time Radio library won't load, since it's bitrate is way too low (1930's radio mysteries didn't have a lot of fidelity, and don't need it now, particularly.  So...that makes iTunes Match a non-starter for me, anyhow.
    Off it goes.  I'm back to sync'ing portions of my library again.  Until I get an iPhone with more capacity.

  • Role upload into BI portal pointing to 3.x version

    Hi,
    sap BI Bakend menu roles uploaded into BI Portal, But When I check iview property BWVersion its pointing to 2.x/3.x instead of Netweaver BI 7.0
    And I assumed queries developed in 3.x pointing to 2.x/3.x. to avoid that I opened query in 7.x tool and saved and uploaded even though its pointing to 2.x/3.x template. Does there any bug or Are we missing any step in the part of upgrade?
    Please your thoughts on this.

    Hi Chirutha 
    Please see note 1121962
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_ep_pi/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31313231393632%7d
    Regards,
    Assaf Klieger
    Installed Base Development
    NetWeaver Portal Platform
    SAP Labs Israel

Maybe you are looking for

  • How do you remove a deleted user's cyrus mailbox?

    Hi everyone, I am having a little trouble with a user's account on Mac OS X 10.4.8 Server. This is a short description of what has happened. 1. Created a user in WGM. 2. User then sends and recieves lots of email over a long period, with no apparent

  • My new blank file is suddenly gray and paint bucket no longer works correctly.

    Photoshop Elements 10.  I started a new blank file, which opened white, as usual.  I enclosed the file with the rectangular marquee tool, and used the paint bucket to fill the background with a brownish color I choose, except it filled with gray.  I

  • Error message when trying to update ipod software

    I have OS 10.3.9 but am getting the following message..., You cannot install this software on this volume. This update requires OS 10.2.8 or higher. Please advise. Thanks.

  • Best way to export from FCP X to iDVD?

    I believe this question must have been dealt with a number of times already but since I could not find a clear answer with a reasonable amount of searching I post my question here. I have Apple ProRes 422 footage (HD 1920 x 1080) in FCP X out of whic

  • SAP_ABAP/4,my resume got shortlisted for Technical interview ,Im glad it go

    Hello ABAPERS, My name is Shilpa Priya, I have been into Jave deveoping wrking, in an MNC for past one yr,Im looking to enter the ERP sector,and learning SAP_ABAP/4,my resume got shortlisted for Technical interview ,Im glad it got selectde out of 100