Load monthly excel data in xcelsius

Hi,
I have 12 month of data for 35 KPI in excel sheet which needs to be updated every month when new data comes.
I need to design a dashboard in xcelsius, can you please help me how can i design the architecture for this dashboard so that when excel sheet will be updated every month then data automatically refresh in dashboard.
Any help or document with basic knowledge of architecture design will be appreciated.
Thanks & Regards,
Ram Krishna

Hi Ram,
Check the below threads, same thing disscussed:
How to Dynamically Refresh data in Xcelsius 2008
Update Excel sheet data automatically or Import Excel sheet automatically
Regards,
Javed

Similar Messages

  • Regarding loading of excel data  into oracle database

    hello,
    Can someone help me in knowing that how can we load excel sheets data into oracle database.
    I will be really thankful to you.
    Gursimran

    Hi,
    There is tool given by oracle "Oracle Bulk Loader "
    you can use this.
    But in order use this you need a control file, which specifies how data should be loaded into the database; and a data file, which specifies what data should be loaded.
    Example :- this is the control file which has information how the data is processed.
    LOAD DATA
    INFILE test.dat
    INTO TABLE test
    FIELDS TERMINATED BY '|'
    (i, s)
    Example :- test.dat which is the data file or say your excel sheet or document
    (1, 'foo')
    (2, 'bar')
    (3, ' baz')
    example of Loading :-
    sqlldr <yourName> control=<ctlFile> log=<logFile> bad=<badFile>
    sqlldr testing control=test.ctl log=test.log
    Thanks
    Pavan Kumar N

  • Fiscal Month/Year Date Calculations

    Hi Gurus,
    I am trying to create a fiscal year and fiscal month offset using filter advanced SQL in answers. The “Offset” should allow to define a period of time + or – from a given starting point in order to report on a period of time. For example the Current Month Offset - When the variable is defined and set-up in the “Time” drop down menu in Answers. You would select Current Month Offset and in the create/edit filter dialog the Current Month Offset column contains a value of 0 for the most recent loaded month of data, a value of -1 for the month prior to that and so on. By selecting the “Operator”, “is between” and “Value” -5 and “Value” 0 you would filter to display the last 6 months.
    I created the offset with calendar year using the Advanced filter and worked fine for if i need to change the year to what ever value
    (((YEAR(CURDATE())-YEAR(Time.Date)) * 12) + (MONTH(CURDATE())-MONTH(Time.Date))) * -1 = -1
    The issue comes when i create for Fiscal year and Fiscal month using filter advanced SQL it throws an error
    (((FISCAL YEAR(CURDATE())-FISCALYEAR(Time.Date)) * 12) + (FISCAL MONTH(CURDATE())-FISCAL MONTH(Time.Date))) * -1 = -1
    for fiscal year it throws an error below
    Error getting drill information: SELECT Time."Fiscal Year" saw_0, Time."Fiscal Year" saw_1 FROM "AAFES Procurement - Purchase Orders" WHERE Time."Fiscal Year" = (((FISCAL YEAR(CURDATE())-FISCALYEAR(Time.Date)) * 12) + (FISCAL MONTH(CURDATE())-FISCAL MONTH(Time.Date))) * -1 = -1
    Error Details
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <CURDATE>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: {call NQSGetLevelDrillability('SELECT Time."Fiscal Year" saw_0, Time."Fiscal Year" saw_1 FROM "AAFES Procurement - Purchase Orders" WHERE Time."Fiscal Year" = (((FISCAL YEAR(CURDATE())-FISCALYEAR(Time.Date)) * 12) + (FISCAL MONTH(CURDATE())-FISCAL MONTH(Time.Date))) * -1 = -1')}
    Thanks
    Simmz

    Hi,
    Kindly refer the below link it may help you.
    http://obieeelegant.blogspot.com/2011/06/obiee-date-expressions-reference.html
    Thanks
    Deva

  • INeed to load the excel directly

    Is it always mandatory to convert the Excel sheet to comma separated or tab seperated csv file before loading the data by SQL loader. Can't we directly load the Excel data without doing any conversion to csv file. if yes please let me know the field terminator for excel file to be used in the control file.
    Please Help
    Thanks in Advance
    Amit Juneja
    Edited by: user10305724 on Jun 12, 2011 11:22 PM

    Hello Amit Juneja.
    SQL*Loader expects the data it reads to be text. If the file includes additional information, you need to instruct SQL*Loader what to do with it (not always possible). Take a look at one of your Excel files using a text viewer, and then you'll get an idea of what the text data actually looks like.
    If you are receiving Excel files as input, you may find that you have to spend a tremendous amount of time fixing the data, due to users entering data and occasionally formatting the data, sometimes inconsistently. Unless you are the business user, it isn't advisable to be changing the data as any errors you might make are then your responsibility. I'm not sure if you heard about the Wisconsin Supreme Court issues recently where an Excel worksheet was provided by one of the counties and since columns were moved/hidden, a whole county's votes weren't tallied initially.
    You can use utilities like Oracle SQL Developer's Import Data... wizard to upload from Excel, however even then you may have to fix the data in Excel for it to come across properly.
    Hope this helps,
    Luke
    Please mark the answer as helpful or answered if it is so. If not, provide additional details.
    Always try to provide actual or sample statements and the full text of errors along with error code to help the forum members help you better.

  • Last day of previous month for data load

    Hi,
    I have to load data from the previous month into the psa and then into an infocube. I was wondering as to how to get the last of the previous month to write a code in ABAP. I will be writing the code at the infopackage level in the data selection. I could load data from the 1st of the previous month to the 1st of the current month. This will be an additional load of 30,000 records for the 1st of every month, since I will be loading 30,000 records everyday, I was wondering if I could limit the load from the 1st of every previous month to the last day of that month. This will be a repetitive loading.
    DATA: CURR_MM(2) TYPE N,
    CURR_YYYY(4) TYPE N,
    CURR_DD(2) TYPE N,
    PREV_MM(2) TYPE N,
    PREV_YYYY(4) TYPE N,
    PREV_DD(2) TYPE N,
    YYYY_MM(6),
    YYYY_MM1(6),
    DATE LIKE SY-DATUM.
    DATE = SY-DATUM.
    CURR_YYYY = DATE+0(4).
    CURR_MM = DATE+4(2).
    CURR_DD = DATE+6(2).
    PREV_DD = 1.
    IF CURR_MM = '01'.
    PREV_MM = '12'.
    PREV_YYYY = CURR_YYYY - 1.
    ELSE.
    PREV_MM = CURR_MM - 1.
    PREV_YYYY = CURR_YYYY.
    ENDIF.
    concatenate PREV_YYYY PREV_MM PREV_DD into YYYY_MM.
    concatenate CURR_YYYY PREV_MM PREV_DD into YYYY_MM1.
    read table l_t_range with key
    fieldname = 'BLDAT'.
    l_idx = sy-tabix.
    l_t_range-low = YYYY_MM.
    l_t_range-high = YYYY_MM1.
    l_t_range-sign = 'I'.
    l_t_range-option = 'BT'.
    modify l_t_range index l_idx.
    p_subrc = 0.
    Mind you this code will load data from 1st of the previous month to the 1st of current month. I just don't want to load that extra "1st day" of current month data as I have 30,000 records everyday.
    Say for example, I want to load data from 1st Mar to 31st Mar or 1st Feb to 28thFeb. How should I modify the above code.
    Is there a formula to get the last date of the previous month. That's all I need. This would solve the problem.

    try this routine. it will return a range from 1st day to end of the month.
    DATA: l_s_range TYPE rsr_s_rangesid,
              E_T_RANGE TYPE  RSR_T_RANGESID.
    DATA: year(4) TYPE n,
          month(2) TYPE n,
          day(2) TYPE n,
        ld_keydate  TYPE sydatum,
          ld_lastday  TYPE sydatum.
      REFRESH e_t_range.
      CLEAR l_s_range.
      year  = sy-datum(4).
      month = sy-datum+4(2).
    *Months with 31 days in year
      IF month = '01' OR
         month = '03' OR
         month = '05' OR
         month = '07' OR
         month = '08' OR
         month = '10' OR
         month ='12'.
        day = '31'.
      ENDIF.
    *check for leap year: provoking sy-sybrc <> 0
      IF month = '02'.
        day = '29'.
        MOVE:   '02'        TO ld_keydate+4(2),
                year        TO ld_keydate(4),
                day         TO ld_keydate+6(2).
        CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
          EXPORTING
            date   = ld_keydate
          EXCEPTIONS
            OTHERS = 1.
        IF sy-subrc <> 0.
          day = '28'.
        ENDIF.
      ENDIF.
    *months with 31 days in year
      IF month = '04' OR
         month = '06' OR
         month = '09' OR
         month = '11'.
        day = '30'.
      ENDIF.
      MOVE: year              TO ld_lastday(4),
            month             TO ld_lastday+4(2),
            day               TO ld_lastday+6(2).
      l_s_range-low  = sy-datum.
      l_s_range-high = ld_lastday.
      l_s_range-sign = 'I'.
      l_s_range-opt  = 'BT'.
      APPEND l_s_range TO e_t_range.

  • How to view data in Xcelsius from an external Excel file

    Hi Everyone,
    i wonder if you know How to view data in Xcelsius from external Excel file and not depend only on the emebded excel sheet.

    Hi,
    As per my understanding, excel has to be imported in Xcelsius to draw up the dashboard. Your aggregated data sits in the xlf file. Using an external excel file will not be possible (I guess).
    One of the ways to connect to an external excel, is the use XML Maps but then your data has to be in the form of XML which will be pulled into excel first and then needs to be brought in Xcelsius using Data Manager.
    You can explore XML Maps in xcelsius in SDN.
    Regards
    Nikhil

  • Step- by- Step on How to Load Excel data into Crystal Reports?

    Hi Friends,
                      Can anyone send me a Step- by- Step on How to Load Excel data into Crystal Reports? Pls help me. Thanks in Advance.
    Vijay

    It's also important to 'prep' the excel file prior to connecting to it.
    Give the data tab a meaningful name
    Make sure the column headers are unique and that every column has a header
    Delete any blank tabs
    If you have trouble with Excel changing the data type of a field (say, a social security number you want to be a string value rather than a number so you don't lose leading zero) an alternative would be to save the spreadsheet file as a CSV, create a schema.ini to specify the data types for each column (example below) and use the same steps to connect except instead of choosing Excel 8.0, scroll to the bottom and choose Text.  You have to make sure the CSV file is in the same folder as the schema.ini file that defines the columns.
    Schema.ini example:
    200912PUSD.csv
    ColNameHeader=True
    Format=CSVDelimited
    MaxScanRows=25
    CharacterSet=OEM
    Col1=SSN Char Width 9
    Col2=LAST_NM Char Width 25
    Col3=FIRST_NM Char Width 25
    Col4=DOB Date
    Col5=STDNT_ID Char Width 10
    Col6=SORTKEY Char Width 10
    Col7=SCHOOL_NM Char Width 30
    Col8=OTHER_ID Integer
    Col9=GRADE Char Width 2
    The filename in the first line needs to have the []  brackets around it, but I couldn't get it to display in this forum correctly.
    Edited by: Eric Petersen on Jan 27, 2010 9:40 AM

  • Need help loading data from Excel data file to oracle tables

    i need to load an Excel spreadsheet to Oracle table.
    The spreadsheet contains 20 columns, the first 8 columns contains basic info, but the rest 12 columns contains info like
    1stQtr_08, 2ndQtr_08, 3rdQtr_08, 4thQtr_08
    1stQtr_09, 2ndQtr_09, 3rdQtr_09, 4thQtr_09
    1stQtr_10, 2ndQtr_10, 3rdQtr_10, 4thQtr_10
    So what i need to accomplish is:
    break that one record(with 20 fields) in Excel to 3 records for each fiscal year in the Oracle table, so each record in the database table will look like
    8 basic field + fiscal_year + 1stQtr_08, 2ndQtr_08, 3rdQtr_08, 4thQtr_08
    8 basic field + fiscal_year + 1stQtr_09, 2ndQtr_09, 3rdQtr_09, 4thQtr_09
    8 basic field + fiscal_year + 1stQtr_10, 2ndQtr_10, 3rdQtr_10, 4thQtr_10
    There are about 10000 rows in the data file, so how can i use sqlldr to perform such task? beside sqlldr, any other good suggestions?
    thx

    External Tables is just an Oracle API for sqlloader. If you going to load this data over and over again, External tables would be a good idea, but if it's a one time thing, sqlldir is simpler, unless you just want to learn how to use External Tables.
    I used to run a data warehouse, so I have done, at least similar, to what you are doing in the past.

  • Want to load excel data into oracle table with out changing it to CSV

    Hello all,
    I have a requirement in dumping excel data into oracle database table without changing it to CSV file and this has to be used in normal sql/plsql environment i.e., pkg/procedure cant be used in the forms also...
    so, can u guys can help me out in this
    thanks.............

    The link Pavan provided discusses Oracle Heterogeneous Services. This allows you (using ODBC) to create a database link from Oracle to a non-Oracle data source like Excel. This would allow you to query the Excel data source from SQL*Plus or any other client tool. But that is probably going to require that your Oracle database is running on Windows since I'm not aware of any Excel ODBC drivers for Unix.
    Another potential option would be to write a Java stored procedure that parsed the file. There are a few different Java libraries that can read and write Excel data files. You could load one of those libraries into the database's JVM and then write Java code that parsed the file. You would then be able to call your Java stored procedure from PL/SQL.
    Justin

  • Loading Excel data with custom format applied

    Hi,
    I have an Excel File as source with the custom formatting applied to the data in it.
    For Eg. value 64 has special formatting applied so as to display it as 0064.
    BODS loads only the actual data as 64 and though I expect to load the formatted data(0064).
    Is this an expected behavior of BODS?
    DS Version : 14.1.2
    Thanks.

    No. If you define file format as flat file and define the field type as char then you can load all the formatted data like 0064 into DB. If you use excel then excel will remove leading zeros. This is excel functionality. or you can define the input file as CSV file and change the format of the field.
    Thanks,

  • Using forms 6i, to import excel data to database not a valid month problem

    Hi all,
    i am fetching data from excel dynamically to oracle table, all data is of general type
    here i am passing value V3 varchar2(100) but actual database column field is DATE.
    my insert code is given below
    [code]
    PACKAGE BODY PK_EXCEL_TO_DB IS
    PROCEDURE PR_DO_INSERT(i_vcColumn1 IN VARCHAR2,i_vcColumn2 IN VARCHAR2,i_vcColumn3 IN VARCHAR2,i_vcColumn4 IN VARCHAR2,i_vcColumn5 IN VARCHAR2,i_vcColumn6 IN VARCHAR2,i_vcColumn7 IN VARCHAR2,
      i_vcColumn8 IN VARCHAR2,i_vcColumn9 IN VARCHAR2,i_vcColumn10 IN VARCHAR2,i_vcColumn11 IN VARCHAR2,i_vcColumn12 IN VARCHAR2,i_vcColumn13 IN VARCHAR2,i_vcColumn14 IN VARCHAR2,
      i_vcColumn15 IN VARCHAR2,i_vcColumn16 IN VARCHAR2,i_vcColumn17 IN VARCHAR2,i_vcColumn18 IN VARCHAR2,i_vcColumn19 IN VARCHAR2,i_vcColumn20 IN VARCHAR2,i_vcColumn21 IN VARCHAR2,
      i_vcColumn22 IN VARCHAR2,i_vcColumn23 IN VARCHAR2,i_vcColumn24 IN VARCHAR2,i_vcColumn25 IN VARCHAR2,i_vcColumn26 IN VARCHAR2,i_vcColumn27 IN VARCHAR2,i_vcColumn28 IN VARCHAR2,
      i_vcColumn29 IN VARCHAR2,i_vcColumn30 IN VARCHAR2,i_vcColumn31 IN VARCHAR2,i_vcColumn32 IN VARCHAR2,i_vcColumn33 IN VARCHAR2,i_lData IN tDataList) IS
        vcInsert   VARCHAR2(3500);
        i INTEGER:=0;
        flag boolean:= FALSE;
      BEGIN
        i:=i_lData.COUNT;
        :BLK_MAIN.T4:= vcInsert;
        vcInsert:='INSERT INTO CRM_DELT_IMPORT (';
        if length(i_vcColumn1) > 0 then
        flag:=TRUE;
        vcInsert:=vcInsert||i_vcColumn1;
        end if;
        if length(i_vcColumn2)  > 0 then
          IF flag THEN
          vcInsert:=vcInsert|| ','||i_vcColumn2;
          else
          vcInsert:=vcInsert||i_vcColumn2;
          end if;
        end if;
        if length(i_vcColumn3) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn3;
        end if;
        if length(i_vcColumn4) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn4;
        end if;
        if length(i_vcColumn5) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn5;
        end if;
        if length(i_vcColumn6) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn6;
        end if;
        if length(i_vcColumn7) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn7;
        end if;
        if length(i_vcColumn8) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn8;
        end if;
        if length(i_vcColumn9) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn9;
        end if;
        if length(i_vcColumn10) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn10;
        end if;
        if length(i_vcColumn11) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn11;
        end if;
        if length(i_vcColumn12) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn12;
        end if;
        if length(i_vcColumn13) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn13;
        end if;
        if length(i_vcColumn14) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn14;
        end if;
        if length(i_vcColumn15) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn15;
        end if;
        if length(i_vcColumn16) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn16;
        end if;
           if length(i_vcColumn17) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn17;
           end if;
           if length(i_vcColumn18) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn18;
           end if;
           if length(i_vcColumn19) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn19;
           end if;
            if length(i_vcColumn20) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn20;
            end if;
           if length(i_vcColumn21) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn21;
            end if;
           if length(i_vcColumn22) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn22;
           end if;
           if length(i_vcColumn23) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn23;
            end if;
           if length(i_vcColumn24) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn24;
            end if;
           if length(i_vcColumn25) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn25;
            end if;
           if length(i_vcColumn26) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn26;
            end if;
            if length(i_vcColumn27) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn27;
             end if;
            if length(i_vcColumn28) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn28;
            end if;
            if length(i_vcColumn29) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn29;
            end if;
            if length(i_vcColumn30) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn30;
            end if;
            if length(i_vcColumn31) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn31;
            end if;
            if length(i_vcColumn32) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn32;
            end if;
            if length(i_vcColumn33) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn33;
        end if;      
        vcInsert:=vcInsert||') values(';
        if length(i_vcColumn1) > 0 then
        vcInsert:=vcInsert||''''||i_ldata(i).V1||'''';
        end if;
        if length(i_vcColumn2) > 0 then
        IF flag THEN
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V2||'''';
        else
        vcInsert:=vcInsert|| ''''||i_ldata(i).V2||'''';
        end if;
        end if;
        if length(i_vcColumn3) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V3||'''';
        --vcInsert:=vcInsert|| ','||''''||to_date(to_date(i_ldata(i).V3,'dd-mon-yy HH12:MI:SS'),'dd-mon-yy HH12:MI:SS')||'''';
        -- vcInsert:=vcInsert|| ','||''''|| to_date('i_ldata(i).V3','dd-mon-yy HH12:MI:SS')||''''; --to_date('18-JUN-2013 12:00:00', 'DD-MON-YYYY HH24:MI:SS')
        end if;
        if length(i_vcColumn4) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V4||'''';
        end if;
        if length(i_vcColumn5) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V5||'''';
        end if;
        if length(i_vcColumn6) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V6||'''';
        end if;
        if length(i_vcColumn7) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V7||'''';
        end if;
        if length(i_vcColumn8) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V8||'''';
        end if;
        if length(i_vcColumn9) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V9||'''';
        end if;
        if length(i_vcColumn10) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V10||'''';
        end if;
        if length(i_vcColumn11) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V11||'''';
        end if;
        if length(i_vcColumn12) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V12||'''';
        end if;
        if length(i_vcColumn13) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V13||'''';
        end if;
        if length(i_vcColumn14) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V14||'''';
        end if;
        if length(i_vcColumn15) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V15||'''';
        end if;
        if length(i_vcColumn16) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V16||'''';
        end if;
        if length(i_vcColumn17) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V17||'''';
        end if;
        if length(i_vcColumn18) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V18||'''';
        end if;
        if length(i_vcColumn19) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V19||'''';
        end if;
        if length(i_vcColumn20) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V20||'''';
        end if;
        if length(i_vcColumn21) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V21||'''';
        end if;
        if length(i_vcColumn22) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V22||'''';
        end if;
        if length(i_vcColumn23) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V23||'''';
        end if;
        if length(i_vcColumn24) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V24||'''';
        end if;
        if length(i_vcColumn25) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V25||'''';
        end if;
        if length(i_vcColumn26) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V26||'''';
        end if;
        if length(i_vcColumn27) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V27||'''';
        end if;
        if length(i_vcColumn28) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V28||'''';
        end if;  
        if length(i_vcColumn29) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V29||'''';
        end if;
        if length(i_vcColumn30) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V30||'''';
        end if;
        if length(i_vcColumn31) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V31||'''';
        end if;
        if length(i_vcColumn32) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V32||'''';
        end if;
        if length(i_vcColumn33) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V33||'''';
        end if;
        vcInsert:=vcInsert||')';
         FORMS_DDL(vcInsert);
         :BLK_MAIN.T4:= vcInsert;
       --END LOOP;
        STANDARD.COMMIT;
      END;
    END;
    [/code]
    How can i pass '13-06-13 05:54:33' to database table.
    if i put condition
    vcInsert:=vcInsert||','||''''||TO_CHAR('i_ldata(i).V3','DD-MON-RR HH12:MI:SS')||''''
    i get the error
    to_char many declaration..
    if i remove this i got error
    ORA-01843: no a valid month
    Since i am dynamically importing the excel data, every time the position of the date fild is going to change. For static its ok that i know that V3 is going to be a date.
    But for dynamic date may be  at position V22 or at any place.
    please suggest something.
    Regards
    Sam

    hii Marwin
    Thanks for the reply. Yes i understand what exactly you are saying.
    That's why i have created a test table. All fields in the table are of varchar2 type and no constraints were given to the table and import the data to test table.
    Once the data is imported to test table, then i am inserting data to my original table i.e CRM_DELT_IMPORT. I have written the following code for that.
    But when i press the button i got the error
    FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-00001
    my CRM_DELT_IMPORT have composit key on ("ROUTE_ID", "DELDATE", "DELSNO", "PROFILE_ID")
    I also inserted few records with normal insert on SQL prompt , records gets inserted in to the table.
    But when i use the form for insert and click on button of insert i get the error.
    I also check that records gets imported in test table but not get inserted into CRM_DELT_IMPORT table (with the help of form. )
    (can i use IGNORE_ROW_ON_DUPKEY_INDEX here? and how?)
    Please help me in this problem.
    Thanks again.
    Regards
    Sam
    My code on when-button-pressed is
    DECLARE
      CURSOR IMP IS
      SELECT ROUTE_ID, to_date(DELDATE,'DD-MM-RR HH24:MI:SS')DELDATE, DELSNO, DEL_BOY,
      PROFILE_ID, TRNTYPE, RECNO, EXP_FR, EXP_PA, EXP_SK, EXP_EMPTY, EXP_TIME, ACT_FR,
      ACT_PA, ACT_SK, ACT_EMPTY, ACT_TIME, LATITUDE, LONGITUDE, IS_FREE, RATE_LITER, AMT_DEBIT,
      DEVICE_ID, PROF_NAME, ADDR1, ADDR2, LANDMARK, PLAN_ID, DEL_MODE, NEW_CHANGE, NO_DEL_CODE,
      TO_DATE(DEV_DATE,'DD-MM-RR HH24:MI:SS')DEVICE_DATE, substr(DEV_TIME,12,19)DEVICE_TIME
      FROM TEST;
      IMP_REC IMP%ROWTYPE;
    BEGIN
      OPEN IMP;
      FETCH IMP INTO IMP_REC;
      WHILE IMP%FOUND
      LOOP
      INSERT INTO CRM_DELT_IMPORT(ROUTE_ID, DELDATE, DELSNO, DEL_BOY, PROFILE_ID, TRNTYPE, RECNO, EXP_FR, EXP_PA, EXP_SK, EXP_EMPTY,
      EXP_TIME, ACT_FR, ACT_PA, ACT_SK, ACT_EMPTY, ACT_TIME, LATITUDE, LONGITUDE, IS_FREE, RATE_LITER, AMT_DEBIT,
      DEVICE_ID, PROF_NAME, ADDR1, ADDR2, LANDMARK, PLAN_ID, DEL_MODE, NEW_CHANGE, NO_DEL_CODE, DEV_DATE, DEV_TIME)
        VALUES(IMP_REC.ROUTE_ID, IMP_REC.DELDATE, IMP_REC.DELSNO, IMP_REC.DEL_BOY, --to_date(DELDATE,'DD-MM-RR HH24:MI:SS')
      IMP_REC.PROFILE_ID, IMP_REC.TRNTYPE, IMP_REC.RECNO, IMP_REC.EXP_FR,IMP_REC.EXP_PA,IMP_REC.EXP_SK,IMP_REC.EXP_EMPTY,IMP_REC.EXP_TIME,IMP_REC.ACT_FR,
      IMP_REC.ACT_PA,IMP_REC.ACT_SK,IMP_REC.ACT_EMPTY,IMP_REC.ACT_TIME,IMP_REC.LATITUDE,IMP_REC.LONGITUDE,IMP_REC.IS_FREE,IMP_REC.RATE_LITER,IMP_REC.AMT_DEBIT,
      IMP_REC.DEVICE_ID,IMP_REC.PROF_NAME,IMP_REC.ADDR1,IMP_REC.ADDR2,IMP_REC.LANDMARK,IMP_REC.PLAN_ID,IMP_REC.DEL_MODE,IMP_REC.NEW_CHANGE,IMP_REC.NO_DEL_CODE,
        IMP_REC.DEVICE_DATE,IMP_REC.DEVICE_TIME); ---TO_DATE(DEV_DATE,'DD-MM-RR HH24:MI:SS'), substr(DEV_TIME,12,19)
      END LOOP;
      COMMIT;
      CLOSE IMP;
    END;

  • Query has to display completed quarters and Data loaded month.

    Hi All,
    I have  2 issues in  BEX .
    1. I need to display  data  loaded month(0calmonth):
    Ex: Jan  2007  data has loaded in May 2007, my query has to display  for  3 months JAN 2007, Dec 2006, November 2006.
    2. completed quarters :  if we are in mid of 3 quarter, query has to display Quarter1 and quarter2 (completed)  ,nothing has to display in quarter 3.
    Thanks in advance for your inputs.

    1. you mentioned data loded month... but you are pointing Calender month that data belongs to? Are you want display based on Calender Month that data belongs to (Jan 2007) or Loded Month (May 2007) or Last Loded Month?
    2. create User Exit variable on Quarter or Month IO. in the User Exit Code, check which Quarter that current month belongs to? if it is mid of 3rd quarter, pass Quarter 1 and 2 (or for month 1 to 6).
    hope this helps.
    Nagesh Ganisetti.
    REMOVED

  • SSIS Load Excel Data with out MS Office

    Hello All, 
    Requirement : Load Excel Data to SQL Server Table using SSIS 2012 with out using OPENROWSET(Ad Hoc Distributed Queries)
    SET UP : SQL SERVER 2012-64 Bit  and Access DataBase Engine 2010 -64 Bit  
    Problem :: No MS Office Install 
    Help on this  as how can this be achieved 
    When I use Excel as Source , I get error "MS Ace OLEDB 12.0" provider is not install on local Machine but if I take OLEDB Source and use OPENROWSET , I can see and Load data in SQL Table ..

    Hi Mushtaq308,
    According to your description, you want to read write Excel using SSIS without installing MS office on the target environment. In that case, missing of data access component on the machine stops working of SSIS package.
    Then following any one installation on the machine can solve this issue:
    2007 Office System Driver: Data Connectivity Components
    Microsoft Access Database Engine 2010 Redistributable 
    Besides, for the error message that “the 'microsoft.ace.oledb.12.0' provider is not registered on the local machine”, please refer to the following thread:
    https://social.msdn.microsoft.com/Forums/en-US/1d5c04c7-157f-4955-a14b-41d912d50a64/how-to-fix-error-the-microsoftaceoledb120-provider-is-not-registered-on-the-local-machine?forum=vstsdb
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Dynamic Data in Xcelsius Dashboard via ExcelXML Map?

    Hello,
    I am trying to create a dashboard with a grid with a variable number of rows and columns. The data is given to Xcelsius through an Excel XML map i.e. I have given an XML source to an Excel file and then have imported that excel file into Xcelsius.
    I am able to see dynamic data changes within the pre-specified dimensions (i.e. from the first import). For example, if I have a 4X5 grid and change the text in the first row and first column, then Xcelsius will reflect this. However if I add an additional row with data in the xml file, I am not able to see this, even if I resize the the grid so that it has room at the bottom to be filled in.
    Does anybody have any experience with this/can anyone point me to specific articles? I have followed the instructions given in the Tech Tips article, but this only applies to data within a specific structure, while I want to change the structure itself.
    In short, is it possible to do dynamic structures in Xcelsius?
    Thanks.
    Regards,
    Anjana Dasu

    Hi,
    Please go to Data>Connections>Excel XMl maps under usage tab please check if you have set the options "Refresh on load" or "refresh every".
    If not, please select the refresh option and save the xlf file and then try to create a dashboard again.
    Cheers,
    Anshul

  • Month calculations: DATE() vs EDATE()

    In a recent topic (Challenge to get a date correctly), I mentioned using the DATE function to calculate a date that is (for example) one month later than a given one. Specifically, if cell A1 contains the given date, then I suggested using this formula for a date one month later:
    =DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))
    Yvan Koenig suggested instead using the simpler EDATE formula, here equivalent to:
    EDATE(A1,1)
    There is, as it turns out, more than simplicity in favor of Yvan's approach. While one might expect the two formulas always to produce the same results, they do not! This is easily seen by constructing the following three column table with a column header:
    1. In cell A2, enter the last day of the first month of this year (January 31, 2008 in the U.S. system, for example). In the cell below it, enter the last day of the second month of this year (Feburary 29, 2008, for example).
    2. Next, select both cells & use the circular fill handle, drawing down to fill the column with a year or so of last-day-of month values.
    3. Select cell B1 (a header cell) & enter in the formula bar & press return:
    =DATE(YEAR(A),MONTH(A)+1,DAY(A))
    4. Likewise, in cell C1 enter:
    =EDATE(A,1)
    Note that the B & C column values are sometimes the same, sometimes not. The same results occur if the "1" in both formulas is replaced with another number of months.
    What seems to be happening is the 'MONTH(A)+n' expression uses the number of days in the month of the "A" cell value as the basis for the 'n months later' calculation, which is not the convention usually used for such things as billing cycles. The EDATE formula follows the normal convention, & is thus the preferred choice for almost all uses imaginable ... unless perhaps you are the one being billed.
    This also applies to 'YEAR(A) + n' calculations.
    So, it would seem that any calculation involving the DATE(year, month, day) form with an arithmetic operator in the year or month element should be used only with great care, if at all.
    BTW, the comments about the month unit of calendar time having "no real purpose today" in http://www.cl.cam.ac.uk/~mgk25/iso-time.html may be of interest.

    I'm aware of the blue warning triangle appearing in these "overflow" situations; however, even when it does not, the results may be different -- for example, with a starting date of January 31st, adding one month in my long formula produces a month argument that is in bounds but (for 2008) yields a date 2 days later than with the EDATE method.
    I don't view this so much a bug as a consequence of the vague nature of the "n months later" or of the "month offset" concept. As the cited scholarly article points out, the concept of the months of the year are of somewhat obscure mystic origins, & there lengths were arbitrarily set, often for reasons more political than practical. Between the 1st & 28th day of any month, the concept is unambiguous -- it is the same numbered day in the other month, but for the 29th through 31st day of the month it is not, depending on the starting month.
    From what little I have been able to discover from casual research, the EDATE results are the standard more by custom than by any well-defined rule: what we mean by the offset references the first, last, or some near-the-end-of-the-month day number, whichever seems the most suitable at the time.
    I do not have Excel on my Macs, but since the functions are similar, I would be interested in learning how that application behaves with this table.

Maybe you are looking for

  • Error in Return STO Process(Plant to Plant within company code)

    Hi All, I am doing the return STO Process(Plant to Plant within same company code) . Scenario: STO from Plant 1300 to 1400 STO Process: ME21N->VL10B->PGI-> VF01(Proforma)->MIGO Return STO from Plant 1400 to 1300 STO Return Process: ME21N(item with re

  • Reporting Problems CF8

    Based on the lack of users in this forum and the lack of reporting information on the WEB, it looks like most have given up on the report builder. Personally would love it to work, but most of the day I've been trying to get a simply report up and ru

  • MDM as a source system in BW

    Hi , How to define MDM as a source system in BW. Anand

  • Learning Mac Programming and XCode

    I know how to program in PHP, currently learning Visual Basic in a college coarse, and am very interested in learning C++/Obj-C programming with Cocoa within XCode, but I do not know what books would be a good starting point. The only C programming I

  • OEG and Oracle Service Registry integration

    Any people got idea about how to integrate OEG with Oracle Service Registry ?