Problem uploading data to nikeplus

I've had my Nike + for a few months know and have over 30 workouts on it without any problems. A few days ago after a workout itunes didn't retrieve and send the data to nikeplus. this happened again today. I went into the i-pod and noticed the only data it's saving is in the 'history'. Nothing in recent workouts, p.b.'s, etc. I know the history is being updated as the # of workouts and mileage increases. Any ideas how to resolve this?
Thanks

Hi,
Unfortunately I also have to get the data out of the DB, and getBytes seems to be giving me null, so I looked for a method giving me back a ByteArrayInputStream or ByteArrayOutputStream. No luck. So I'm almost certainly just missing something, but I need to get this working and any help would be much appreciated. The relevant code is:
public void readUploadedCredential(String userNameIn) {
Connection con = dbi.getConnection();
ByteArrayInputStream bis = null;
PreparedStatement ps = null;
ResultSet rs = null;
byte [] cred = null;
try {
ps = con
.prepareStatement("SELECT bmusercert FROM bmcert");
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.out.println("SQL query is: " + ps.toString());
try {
rs = ps.executeQuery();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
if (rs != null) {
try {
rs.beforeFirst();
cred = rs.getBytes("bmusercert");
System.out.println("cred at rs.getBytes is: " + cred);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.out.println("Credential as bytes is: " + cred);
else {
System.out.println("credential from DB is null");
and the relevant section of the output is:
END CERTIFICATE-----SQL query is: com.mysql.jdbc.PreparedStatement@337838: SELECT bmusercert FROM bmcertjava.sql.SQLException: Before start of result set
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
at com.mysql.jdbc.ResultSet.checkRowPos(ResultSet.java:703)
at com.mysql.jdbc.ResultSet.getBytes(ResultSet.java:1708)
at com.mysql.jdbc.ResultSet.getBytes(ResultSet.java:1702)
at com.mysql.jdbc.ResultSet.getBytes(ResultSet.java:1750)
at CredentialUpload.readUploadedCredential(CredentialUpload.java:127)
at CredentialUpload.main(CredentialUpload.java:152)
Credential as bytes is: null
Credential is null because of the SQL exception;
Any help available would be much appreciated.

Similar Messages

  • Problem uploading data to MySQL DB

    Hi,
    I am trying to upload a public key cert in .pem format to a MySQL database, using JDBC. A .pem file is an ascii. Having read the cert out of a file successfully, as a String, I pass that String to an upload method. Since I had problems just uploading the String (in the values clause it translated to nothing, and took away the closing ), causing a SQL exception; I converted it to a byte [] and tried to upload. Having been stuck on this problem for two days, and with the entire architecture dependent on storing the cert in .pem format in a SQL DB, any help would be much appreciated. The relevant code is:
    public void uploadCredential(String userNameIn, String credIn) {
    byte [] credArray = credIn.getBytes();
    System.out
    .print("INSERT INTO bmcert (bmusername, bmusercert) VALUES ("
    + "'" + userNameIn + "'" + "," + "'" + credArray + "'"
    + ")");
    dbi.singleInsert("INSERT INTO bmcert (bmusername, bmusercert) VALUES ("
    + "'" + userNameIn + "'" + "," + "'" + credArray + "'" + ")");
    The print statement produces:
    INSERT INTO bmcert (bmusername, bmusercert) VALUES ('Joe Turney','[B@923e30')
    which looks to be valid SQL, but the value for bmusercert is clearly not a real
    cert.
    Further down, I read it back in:
    ResultSet rs = dbi
    .singleQuery("SELECT * FROM bmcert WHERE bmusername =" + "'"
    + userNameIn + "'");
    try {
    while (rs.next()) {
    String name = rs.getString("bmusername");
    byte[] certArray= rs.getBytes("bmusercert");
    String cert = new String(certArray);
    Which gets me a null pointer exception when I instantiate cert {the italicized line.
    Anyway, I've worked on it for a while and am out of ideas, so any help you can give me would be very much appreciated.
    Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    Unfortunately I also have to get the data out of the DB, and getBytes seems to be giving me null, so I looked for a method giving me back a ByteArrayInputStream or ByteArrayOutputStream. No luck. So I'm almost certainly just missing something, but I need to get this working and any help would be much appreciated. The relevant code is:
    public void readUploadedCredential(String userNameIn) {
    Connection con = dbi.getConnection();
    ByteArrayInputStream bis = null;
    PreparedStatement ps = null;
    ResultSet rs = null;
    byte [] cred = null;
    try {
    ps = con
    .prepareStatement("SELECT bmusercert FROM bmcert");
    } catch (SQLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    System.out.println("SQL query is: " + ps.toString());
    try {
    rs = ps.executeQuery();
    } catch (SQLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    if (rs != null) {
    try {
    rs.beforeFirst();
    cred = rs.getBytes("bmusercert");
    System.out.println("cred at rs.getBytes is: " + cred);
    } catch (SQLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    System.out.println("Credential as bytes is: " + cred);
    else {
    System.out.println("credential from DB is null");
    and the relevant section of the output is:
    END CERTIFICATE-----SQL query is: com.mysql.jdbc.PreparedStatement@337838: SELECT bmusercert FROM bmcertjava.sql.SQLException: Before start of result set
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
    at com.mysql.jdbc.ResultSet.checkRowPos(ResultSet.java:703)
    at com.mysql.jdbc.ResultSet.getBytes(ResultSet.java:1708)
    at com.mysql.jdbc.ResultSet.getBytes(ResultSet.java:1702)
    at com.mysql.jdbc.ResultSet.getBytes(ResultSet.java:1750)
    at CredentialUpload.readUploadedCredential(CredentialUpload.java:127)
    at CredentialUpload.main(CredentialUpload.java:152)
    Credential as bytes is: null
    Credential is null because of the SQL exception;
    Any help available would be much appreciated.

  • Problem uploading data from an .CSV file

    hello,
    I have a requirement in which i need to upload .csv file. I tried using GUI_UPLOAD and TEXT_CONVERT_CSV_TO_SAP. But the values are getting appending as a single value seperated by cama.
    for example, If there are 5 columns and 10 rows in my test.csv file. when i am using GUI_UPLOAD and TEXT_CONVERT_CSV_TO_SAP. I am getting data in 1 column and 10 rows. each row has 5 values seperated by column. the other 4 columns in the internal table are not populated.
    can anyone help me.
    Thanks and Regards,
    gautham

    hi,
    use the Function module 'ALSM_EXCEL_TO_INTERNAL_TABLE'.
    REPORT  ZSR_BDC_XL
            NO STANDARD PAGE HEADING LINE-SIZE 255.
    TABLES : LFA1,RF02K.
    DATA : BEGIN OF ITAB OCCURS 0,
           LIFNR LIKE RF02K-LIFNR,
           KTOKK LIKE RF02K-KTOKK,
           NAME1 LIKE LFA1-NAME1,
           SORTL LIKE LFA1-SORTL,
           LAND1 LIKE LFA1-LAND1,
           SPRAS LIKE LFA1-SPRAS,
           END OF ITAB.
    DATA : ITAB1 LIKE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    DATA : B1 TYPE I VALUE 1,
           C1 TYPE I VALUE 1,
           B2 TYPE I VALUE 10,
           C2 TYPE I VALUE 99.
    INCLUDE BDCRECX1.
    START-OF-SELECTION.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                = 'C:\xl1.csv'
          I_BEGIN_COL             = B1
          I_BEGIN_ROW             = C1
          I_END_COL               = B2
          I_END_ROW               = C2
        TABLES
          INTERN                  = ITAB1
        EXCEPTIONS
          INCONSISTENT_PARAMETERS = 1
          UPLOAD_OLE              = 2
          OTHERS                  = 3.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      PERFORM  ORGANIZE_UPLOADED_DATA.
    PERFORM OPEN_GROUP.
    LOOP AT ITAB.
    PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0100'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                  'RF02K-KTOKK'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM BDC_FIELD       USING 'RF02K-LIFNR'
                                  ITAB-LIFNR.
    PERFORM BDC_FIELD       USING 'RF02K-KTOKK'
                                  ITAB-KTOKK.
    PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0110'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                  'LFA1-SPRAS'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM BDC_FIELD       USING 'LFA1-NAME1'
                                  ITAB-NAME1.
    PERFORM BDC_FIELD       USING 'LFA1-SORTL'
                                  ITAB-SORTL.
    PERFORM BDC_FIELD       USING 'LFA1-LAND1'
                                  ITAB-LAND1.
    PERFORM BDC_FIELD       USING 'LFA1-SPRAS'
                                  ITAB-SPRAS.
    PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0120'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                  'LFA1-KUNNR'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0130'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                  'LFBK-BANKS(01)'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '=ENTR'.
    PERFORM BDC_DYNPRO      USING 'SAPLSPO1' '0300'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '=YES'.
    PERFORM BDC_TRANSACTION USING 'XK01'.
    PERFORM CLOSE_GROUP.
    ENDLOOP.
    FORM ORGANIZE_UPLOADED_DATA .
      SORT  ITAB1  BY  ROW
                       COL.
      LOOP  AT  ITAB1.
        CASE  ITAB1-COL.
          WHEN  1.
            ITAB-LIFNR = ITAB1-VALUE.
          WHEN  2.
            ITAB-KTOKK = ITAB1-VALUE.
          WHEN  3.
            ITAB-NAME1 = ITAB1-VALUE.
          WHEN  4.
            ITAB-SORTL = ITAB1-VALUE.
          WHEN  5.
            ITAB-LAND1 = ITAB1-VALUE.
          WHEN  6.
            ITAB-SPRAS = ITAB1-VALUE.
        ENDCASE.
      AT  END  OF  ROW.
    APPEND ITAB.
    CLEAR ITAB.
    ENDAT.
      ENDLOOP.
    ENDFORM.                    " ORGANIZE_UPLOADED_DATA
    if helpful reward points

  • Problem uploading data through RM06IBI0

    Hi Experts,
       We are uploading purchase info records data( ME12) through direct input program RM06IBI0. For some records, we are getting errors.
    This program is creating a sesson in SM35, In that sesson errors are:
      Cursor field KONP-KSCHL(1) does not exist in the screen
      Field KONP-KSCHL(1) does not exist in the screen SAPMM06I 0102
      Field KONP-KBETR(1) does not exist in the screen SAPMM06I 0102
    1) How to Debug the sesson in SM35. and
    2) These errors are coming some(randomly) records. We are unable expect this error will come for this record only.
    Thanks in advance,
    Sandya.

    i think in ur flat file u have two values which are related to KSCHL(1), if i am rite
    then u should maintain two different fields in the Maintain source fields.
    for eg:--
    kschl1 kschl2 and for kbetr(1)---> kbetr1 ok
    now mapp this source fields to ur target fields with respectively..
    u should change ur flat file values also
    respective to their values maintain it as HORIZONTALLY.
    just ping if u have any doudts,
    Thanks

  • Problems with special characters uploading data into oracle database

    Greetings
    I have a problem uploading data into oracle tables from sybase datasource. The data that I want to upload is in Spanish, for example when I have a varchar field with the data 'Consultoría', in oracle table the data upload with interrogation symbols.
    I have my source and target datastores configured as follows.
    Any suggestion? Thank you for your time

    Chack section 10 Locales and Multi-byte Functionality in the SAP Data Services Reference Guide for an exhaustive description of NLS settings.
    As a summary, following settings are required:
    locales in the datastore definitions match the actual locale used in the associated databases
    the locale of the DS engine allows for source to target translation
    the character set in the target database supports storage of accented characters

  • PROBLEM Creating a Sample Application from Uploaded Data - ENDECA 3.1

    Good morning.
    I'm installing OEID 3.1 and y have many problems.
    One is when i want to créate a Sample Application from Uploaded Data following "InfoDiscGettingStarted.pdf"
    I have the next error message:
    "Task execution failed for workflow ID 1. Task execution failes for workflow ID 1."
    Does anyone know which is due to this error?
    Thank you very much.
    Pd: Excuse me for my english

    BINGO !
    works like a charm
    I used this at compReady. Loads all the animated thumbnails with image, jersey number and full name.
    $.getJSON('images/profiles.json', function(json)
                sym.getComposition().getStage().setVariable('data', eval(json));
                var data = sym.getComposition().getStage().getVariable('data');
                for ( i = 1 ; i < 17; i++){
                    sym.getSymbol("thumb"+[i]).$("thumb1").css("background-image","url("+data.player[i].thumb +")");
                    sym.getSymbol("thumb"+[i]).$("j_num").html(data.player[i].j_num);
                    sym.getSymbol("thumb"+[i]).$("p_name").html((data.player[i].f_name)+"<br>"+(data.player[i ].l_name));
    sym.$("Stage").css({"margin-left":"auto","margin-right":"auto"});
    and this on all the "display on click" profile sheets. Right now just gets the larger player pic but will get all the other "fields" also when complete
    var i = 1 // this var identifies the player
    var data = sym.getComposition().getStage().getVariable('data');
    sym.$("player_image").css("background-image","url("+data.player[i].image+")");
    sym.play("profile" + [i]);
    Works perfect. Now I just have to add all the other fields to the profile sheets and presto...
    thanks again
    Joel

  • Problem with upload data from CRM to BI system

    When I try to perform full upload data from CRM to BI system with data source 0BPARTNER_ATTR (active version: Excutable). I waited for a long time but there are not any records were transfered (total records need to upload are 130) . I checked the log and can't find any errors.
    Pls help me solve this problem.
    Thanks and regard

    Hi,
    on the next day, the process finished with status not success.
    The detail errors is:
    Extraction(messages): Missing messages
              Missing message: Request received
              Missing message: Number of sent records
              Missing message: Selection completed
    Transfer (IDocs and TRFC): Errors occurred
              Data package 1: arrived in BW; Processing: Selected number does not agree with transferred n
              Request IDoc: Application document posted
              Info IDoc 2: sent, not arrived; Data passed to port OK
              Info IDoc 1: sent, not arrived; Data passed to port OK
              Info IDoc 3: sent, not arrived; Data passed to port OK
              Info IDoc 4: sent, not arrived; Data passed to port OK
    However, the data has been uploaded to infoobject. Pls explain to me about this error and why the data can be uploaded with this error.
    Regard

  • Problem with uploading data from excel using BDC for tcode f-02

    Hi All,
    I am uploading data from excel using BDC for tcode f-02. The problem here is, while recording, the values of some fields are recording twice. I dont know why it's happening so. But if I run my abap program, I have to give those fields twice in my excel sheet. Otherwise data does not upload. But it is not the feasible way. We must give those fields once in excel. Please tell me, how I can solve the issue.
    With regards,
    Rosaline.

    Hi,
      in BDC each and every action is recording. If your press enter in same screen that also recorded once aging may be this is your case repeating field values will appear. we can solve the problem for repeat fields like below.
    suppose in your excel having repeated field X1 X2 X3 the X2 contains repeated field X3 means delete the X3 field.
    Now In your itab having X1 and X2 fields. While in the LOOP the ITAB pass the X2 field to repeated the fields.
    LOOP at ITAB to WA.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'BDC_CURSOR'.
    bdcdata_wa-fval = 'RM08M-EBELN'.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'INVFO-BLDAT'.
    bdcdata_wa-fval = wa-X2." 1st time pass the X2 fields
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'INVFO-BLDAT'.
    bdcdata_wa-fval = wa-X2." pass the same value to repeated field
    APPEND bdcdata_wa TO bdcdata_tab.
    Endloop.
    Hope you can understand.
    Regards,
    Dhina..

  • Problem in Uploading Data From R/3 Prod to BW Development

    Hi Friends,
    When i transfer master data from R/3 prod to Bw prod,it upload data to infobject what i schedule first.if i schedule for second infobject,it remains in processing.
    Eg: I upload 0Division and 0Material from R/3 prod to Bw prod.If i schedule 0divisionfirst, it will update data.If I schedule next to 0Material,in monitor it shows "(0 records from 0) ".If i restart the Bw prod and i update 0material then it will update.again for next infobject it shows "(0 records from 0)".if i restart Bw Prod it solved.but the same problem for other infobject.
    Waiting for your inputs.
    Thanks in advance.Have a great day
    Rgds,
    Suren.

    Hi Surendhar,
        Did you try to check the connection b/w ypur source system and the target system?
    You can do it by executing T.Code RSA1-> Select Source Systems-> Right click your source system-> Check.
    Also, pls check ST22 for any short dumps and SM21 for system logs.
    Hope it helps!!!!
    Amit
    Message was edited by: Amit

  • Problem of uploading data in Data Warehouse

    I am using Oracle9i Warehouse Builder on Windows 2000 and i just started working in it. I am facing problem in uploading data from source schema to Target schema
         I) Created Source Moulde -- Link to One schema from where i have get data
         2) Created Warehouse Target Module -- I have created dimesnions , facts , Mapping and i deployed dimensions , fact and mapping. As a result of it i got dimension table , dimension , fact table , facts ,mapping package and TCL script for mapping. I deployed all of them and register TCL script with OEM .
         But my job created in OEM is not running. If run then does not upload any data and If I try to run job from the backend manually then it gives me message that No active job exist..
    Thanks in advance
    Surinder

    I was getting the same error. I don't know if a step failed somewhere in the install or if I missed performing a manual step but I just fired up TOAD and manually inserted a record into the WB_RT_JOB table. I set the RTJ_JOBNAME = DEFAULT_JOB and RTJ_STATUS = BEGIN. The rest of the columns I just entered best guesses. I commited and then my job would run. I guess it just needs a seed record.
    Lewis

  • Problem in uploading data to psa.

    Hi experts,
    im having problems in uploading data to psa using info package in HR info area.
    while monitoring the info package the following error comes with red traffic signal..
    Request still running
    Diagnosis
    No errors found. The current process has probably not finished yet.
    System Response
    The ALE inbox of BI is identical to the ALE outbox of the source system
    or
    the maximum wait time for this request has not yet been exceeded
    or
    the background job has not yet finished in the source system.
    Current status
    No Idocs arrived from the source system.
    So , please help me in this regard...
    waiting for your reply...

    Hi,
    You may need to check for pending TRFCs/IDOCs in source system in Tcode SM58 and BD87 and process them manually.
    ProcessI DOCS Manually 
    http://help.sap.com/saphelp_nw04s/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b815e43d711d1893e0000e8323c4f/content.htm
    &messageID=2311994
    Thanks,
    JituK

  • I have Problem in Upload Date formate

    Hi Friends,
    I have one doubt on WDJ.
    I have done one Application that application having one functionality that is Download data in to Excel. After download data into excel we can change the DATE cell and again upload Excel Data.
    Here what I am getting problem is  download data into SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy"); this date forame. And again upload data  into Same date formate
    But it is not uploaded
    When I download data into SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); this date format that time it will upload successfully.
    This is for Dowload data into Excel
    if(StockEle.getConf_Shp_Date()==null)
    ExcelEle.setConf_Shp_Date("null");
    else
    SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
    Date ConfShpDate = wdContext.nodePoDetails_OutTab().getPoDetails_OutTabElementAt(i).getConf_Shp_Date();     
    String ConfShpDate1 = sdf.format(ConfShpDate); // will give dd-MM-yyyy
    ExcelEle.setConf_Shp_Date(ConfShpDate1);
    Here ExcelEle.setConf_Shp_Date data type is String
    This is for Upload data
    try
    SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
    //Date dt = sdf.parse(ele.getConf_Shp_Date());
    // java.util.Date Date dt = sdf.parse(ele.getConf_Shp_Date());                                   
    java.util.Date dt = sdf.parse(ele.getConf_Shp_Date());
    java.sql.Date sqlDate = new java.sql.Date(dt.getTime());                                   
    eleout.setEindt(sqlDate);
    catch(Exception e)
    e.printStackTrace();
    eleout.setEindt data type is Date.
    How to Solve this issue I want upload this type of date (dd.MM.yyyy).
    Regards
    Vijay Kalluri

    Hi
    Try to format it before sending it back , try using these code
    // Create Date object.  Date date = new Date(); 
    //Specify the desired date format
    String DATE_FORMAT = "MM/dd/yyyy";
    //Create object of SimpleDateFormat and pass the desired date format.
    SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT); 
    /*  Use format method of SimpleDateFormat class to format the date.  */
    System.out.println("Today is " + sdf.format(date) );
    Best Regards
    Satish Kumar

  • SQL Loader Oracle 10g problem in upload date with time data -- Very urgent.

    Hi
    I am trying to upload data using SQL loader. There are three columns in the table
    defined as DATE. When I tried upload a data like this '2007-02-15 15:10:20', it is not loading time part. The date stored as 02/15/2008' only. There is not time on that. I tried with many different format nothing work. Can please help me ?
    I have also tried with to_date --> to_timestamp it did not work.
    The application is going to be in production, I cannot change DATE to TIME STAMP. This is very urgent.
    LASTWRITTEN "decode(:LASTWRITTEN,'null',Null, to_date(:LASTWRITTEN,'YYYY-MM-DD HH24:Mi:SS'))",
    CREATEDON "decode(:CREATEDON,'null',Null, to_date(:CREATEDON,'YYYY-MM-DD HH24:Mi:SS'))",
    LASTUPDATEDON(21) "decode(:LASTUPDATEDON,'null',Null, to_date(:LASTUPDATEDON(21),'DD/MM/YYYY HH24:MI:SS'))"

    Your problem is most likely in decode - the return type in your expression will be character based on first search value ('null'), so it will be implicitly converted to character and then again implicitly converted to date by loading into date column. At some of this conversions you probably are loosing your time part. You can try instead use cast:
    SQL> desc t
    Name                                      Null?    Type
    LASTWRITTEN                                        DATE
    CREATEDON                                          DATE
    LASTUPDATEDON                                      DATE
    SQL> select * from t;
    no rows selected
    SQL> !cat t.ctl
    LOAD DATA
    INFILE *
    INTO TABLE T
    TRUNCATE
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
    LASTWRITTEN
    "decode(:LASTWRITTEN,'null',cast(Null as date),
      to_date(:LASTWRITTEN,'YYYY-MM-DD HH24:MI:SS'))",
    CREATEDON
    "decode(:CREATEDON,'null',cast(Null as date),
      to_date(:CREATEDON,'YYYY-MM-DD HH24:MI:SS'))",
    LASTUPDATEDON
    "decode(:LASTUPDATEDON,'null',cast(Null as date),
      to_date(:LASTUPDATEDON,'DD/MM/YYYY HH24:MI:SS'))"
    BEGINDATA
    2007-02-15 15:10:20,null,null
    null,2007-02-15 15:10:20,null
    null,null,15/02/2007 15:10:20
    SQL> !sqlldr userid=scott/tiger control=t.ctl log=t.log
    SQL*Loader: Release 10.2.0.3.0 - Production on Fri Feb 29 00:20:07 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 3
    SQL> select * from t;
    LASTWRITTEN         CREATEDON           LASTUPDATEDON
    15.02.2007 15:10:20
                        15.02.2007 15:10:20
                                            15.02.2007 15:10:20Best regards
    Maxim

  • Can anyone list problems/errors when uploading data using BDC's and BAPI's?

    Can anyone list the problems/errors when uploading data using BDC's and BAPI's?

    Hi,
    If you are actually creating a BDC to load data pls be more specific.
    Data format incorrect. Tab delimited/ etc
    Dates in wrong formats
    Currency incorrect formats
    Missing screens
    Wrong transaction code
    File not found,
    Missing Mandatory fields,
    Screen resoultion.
    You should always use refresh for your Bdcdata table.
    Loop at internal table.
    refresh Bdcdata.
    regards,
    sowjanya.

  • Problem during uploading data Using BDC

    While I'm trying to upload data for T.Code J1IS using BDC, Value for the field  Net.***.value ( J_1IASSVAL-J_1IVALNDP) is not getting populated on the screen.
    Pls help.

    Hi,
    This is a Currency Field so you need to pass this to a Char field first and then pass to BDCTAB-FVAL.
    " This is a common problem with BDC with other data types even with Date  and Quantity and Numeric types
    Please note while passing values to BDCTAB all the values should be passed in CHAR form only
    Cheerz
    Ram.

Maybe you are looking for