Error in ws_download to excel

Hi every one,
I am in support project . I am having one requirement to download data to excel file.
the program is running fine but the thing is when the data is downloaded to excel file the formulas are  appering in it..
but in program there is no such formula declared.
so please assist me.
With Regards,
Ashwin.

hi,
Plz try this code.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
      filename                = p_fname
      i_begin_col             = 1
      i_begin_row             = 1
      i_end_col               = 8
      i_end_row               = 100
    TABLES
      intern                  = t_excel
    EXCEPTIONS
      inconsistent_parameters = 1
      upload_ole              = 2
      OTHERS                  = 3.
Hope this will help.
Thanks,
Kartavya

Similar Messages

  • Error While uplaoding a EXCEL file in Web dynpro - HR_KR_XSTRING_TO_STRING

    Hi,
        I am getting an error while uploading an excel file in web Dynpro application. i am using the HR_KR_XSTRING_TO_STRING this function. I am getting the following error message 'Unable to interpret    as a number'.

    First of all, are you sure you know what you are working with here.  If this is standard Excel file in the Microsoft binary/propriatery format there is not function module or class in ABAP that can magically just transform this to a character string.  You should search the forums as this has been discussed extensively.  On that topic, please also do not post duplicate threads.  I have already locked your other thread with the same basic question.
    Instead of the binary/propriatery format of Excel, the file should be saved on the client as a text based format - like XML or Text Tab Delimited. You can then use several different options on the server to convert the XSTRING to STRING and process the content (becuase it was text based to begin with).  You could use CL_BCS_CONVERT, the function modules in the function group SCMS_CONV, or the class CL_ABAP_CONV_IN_CE.

  • Error in communicating with Excel Calculation Services

    When attempting to use Excel Web Access web part, I get "We're sorry. We ran into a problem completing your request. Please try that again in a few minutes."
    Checked event log and found
    There was an error in communicating with Excel Calculation Services
    http://my server:32843/49082a5d56c141629497dd8b28375f47/ExcelService*.asmx exception: The remote server returned an error: (503) Server Unavailable.
    [Session:
    User: ].
    I googled the error and, as suggested by various sources, rebooted the server. (Same issue occurs) I also tried disabling asp.net impersonation with no change.  Ideas?

    Hi ,
    Reason for the error :
    The Excel Services Application server computer is in a non-valid state and may need to be restarted.
    Resolution : (Before taking the step toward to restart the server, try the below option)
    Restart your excel service application app pool/ restart the excel service. (Reference :http://technet.microsoft.com/en-us/library/ee513104(v=office.14).aspx)
    If you have more than one application server in the farm , then try start the excel serviceto a different server.
    Regards,
    Senthil

  • Excel 2010: I get the error message "This file can't be previewed because of an error in the Microsoft Excel previewer." even though Advanced Properties is set to Save Thumbnails for all Excel Documents.

    Excel 2010: I get the error message "This file can't be previewed because of an error in the Microsoft Excel previewer." even though Advanced Properties is set to Save Thumbnails for all Excel Documents and I've run Repair on Microsoft Office.
     I don't know what else to try.
    Any help would be appreciated. Thanks.

    A hotfix request has already been submitted for this issue and we have also documented it here
    http://support.microsoft.com/kb/983097
    Thanks.
    Tony Chen
    TechNet Community Support

  • App-V PowerShell: Script to Query XenApp Servers for App-V Publishing Errors and Output an Excel Document with the Results

    Please Vote if you find this to be helpful!
    App-V PowerShell:  Script to Query XenApp Servers for App-V Publishing Errors and Output an Excel Document with the Results
    Just posted this to the wiki:
    http://social.technet.microsoft.com/wiki/contents/articles/25323.app-v-powershell-script-to-query-xenapp-servers-for-app-v-publishing-errors-and-output-an-excel-document-with-the-results.aspx

    Hi petro_jemes,
    Just a little claritification, you need to add the value to the variable "[string]$ou", and also change the language in the variable "$emailbody" in the function "Get-ADUserPasswordExpirationDate".
    I hope this helps.

  • Can crystal reports do Error bars like in excel charting?

    Post Author: mecca
    CA Forum: Charts and Graphs
    Does anyone know if crystal repotrs xi can do error bars like in excel. I gave an example in my other post.

    Post Author: Dan3D
    CA Forum: Charts and Graphs
    If all else fails, this is easily solved with our CRChart replacement library (which does excellent error-bars).
    -Dan @ 3D
    DISCLAIMER: This product costs money. I work for the company that makes this product.

  • Error Message: Please install Excel as viewer

    Hi,
       I try to run the RRMX but i get the following error message:
    "Please install Excel as viewer".
    I had tried to following the notes 1078523 but it is still not working.
    PLease kindly help on this.
    thank you

    Hi,
    Are you using GUI 720? If so then you must apply this note to solve the isssue:
    1435326 - Usage of transaction RRMX / precalc server with SAP gui 7.20
    Regards,
    Michael

  • Error -2147221080 (0x800401A8) with Excel ActiveX on sheet access

    Hi all !
    I get this error while accessing an excel sheet.
    Could it be linked to file permissions or something?
    Thanks!
    Attachments:
    error -2147221080.JPG ‏91 KB
    sondes.JPG ‏17 KB

    Well... it kind of resolved itself.
    I just added a 'Worksheet' property node before the 'Range' method and it then worked. I then removed the property node and it was still working!
    I don't understand exactly what happened here...
    Anyone got an idea?

  • Error While uploading a EXCEL file in Web dynpro - HR_KR_XSTRING_TO_STRING

    Hi,
       I am getting an error while trying to upload a excel file.  I am using the function HR_KR_XSTRING_TO_STRING for conversion. The error message is  "Unable to interpret    as a number"

    First of all, are you sure you know what you are working with here.  If this is standard Excel file in the Microsoft binary/propriatery format there is not function module or class in ABAP that can magically just transform this to a character string.  You should search the forums as this has been discussed extensively.  On that topic, please also do not post duplicate threads.  I have already locked your other thread with the same basic question.
    Instead of the binary/propriatery format of Excel, the file should be saved on the client as a text based format - like XML or Text Tab Delimited. You can then use several different options on the server to convert the XSTRING to STRING and process the content (becuase it was text based to begin with).  You could use CL_BCS_CONVERT, the function modules in the function group SCMS_CONV, or the class CL_ABAP_CONV_IN_CE.

  • How to show custom error message in WebADI Excel template?

    Hi,
    I've  created a custom Web ADI integrator and associated it with a 'Procedure' based custom interface.
    WebADI Interface API Returns is set to  "Error Message".
    I'm using  raise_application_error(-20001, "Actual Error Message") for invalid rows,but custom error message from PL/SQL  is not populated on the excel template.
    Instead it is showing "SQL exception occurred during PL/SQL upload".
    Am I missing anything? How to show custom error message from Pl/SQL procedure to WebADI Excel template?
    TIA
    Narasimha

    The custom API errors are visible in the BNE log but not on the Excel.
    BNE Log=>
    12/10/13 2:52 PM Web ADI Upload Job 13008 ERROR          BnePLSQLUpload.doUpload: Exception while uploading to PL/SQL API.  Error Code: 20001, Message: ORA-20001: -Please enter CONTAINER_ID -  Enter PO_NO -
    ORA-06512: at "APPS.XXPO_COSTFACTS_WEBADI_PKG", line 264
    ORA-06512: at line 1
    12/10/13 2:52 PM Web ADI Upload Job 13008 ERROR          BnePLSQLUpload.doUpload: Stack trace: java.sql.SQLException: ORA-20001: -Please enter CONTAINER_ID -  Enter PO_NO -
    ORA-06512: at "APPS.XXPO_COSTFACTS_WEBADI_PKG", line 264
    ORA-06512: at line 1
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
      at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:202)
      at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1005)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
      at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3550)
      at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4710)
      at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
      at oracle.apps.bne.integrator.upload.BnePLSQLUpload.doUpload(BnePLSQLUpload.java:284)
      at oracle.apps.bne.integrator.upload.BneSAXUploader.processDeepestLevel(BneSAXUploader.java:2346)
      at oracle.apps.bne.integrator.upload.BneSAXUploader.startElement(BneSAXUploader.java:1182)
      at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:181)
      at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:234)
      at oracle.apps.bne.integrator.upload.BneUploader.processUpload(BneUploader.java:301)
      at oracle.apps.bne.integrator.upload.BneAbstractUploader.processUpload(BneAbstractUploader.java:114)
      at oracle.apps.bne.integrator.upload.async.BneAsyncUploadThread.run(BneAsyncUploadThread.java:140)
    12/10/13 2:52 PM AJPRequestHandler-HTTPThreadGroup-5 WARNING        BneOracleWebAppsContext.getTimeZone CLIENT_TIMEZONE_ID has not been set
    12/10/13 2:52 PM AJPRequestHandler-HTTPThreadGroup-5 ERROR          BneOracleWebAppsContext.getExtraJDBCConnection recieved the same connection as the base connection.  There may be transaction problems.
    How to show the same error in the excel template?
    Here is the package:
    CREATE OR REPLACE PACKAGE BODY APPS.XXPO_COSTFACTS_WEBADI_PKG
    AS
       PROCEDURE upload_data (
                              P_CONTAINER_ID IN VARCHAR2
                            , P_SAIL_DATE IN DATE
                            , P_PO_NO IN VARCHAR2                     
                             ) IS
        --declare
        lv_err_msg      VARCHAR2(240);
        lf_err_flag     NUMBER := 0;
        ln_temp         NUMBER;
        BEGIN
        --------------------- checking for mandatory parameters---------------------------
          IF (P_CONTAINER_ID IS NULL) THEN
             lf_err_flag := 1;
             lv_err_msg := lv_err_msg||'-'||'Please enter CONTAINER_ID - ';
          END IF;
          -------------Validation for Sail Date Format----------------------
          IF (P_SAIL_DATE IS NULL) THEN
             lf_err_flag := 1;
             lv_err_msg := lv_err_msg || ' ' || 'Enter Sail Date - ';
          ELSE
             BEGIN
                SELECT 1
                  INTO ln_temp
                  FROM DUAL
                 WHERE P_SAIL_DATE =  TO_DATE (TO_CHAR (P_SAIL_DATE, 'DD-MON-YYYY'), 'DD-MM-YYYY');
             EXCEPTION
                WHEN NO_DATA_FOUND THEN
                   lf_err_flag := 1;
                   lv_err_msg := lv_err_msg || ' Enter Sail date in DD-MON-YYYY Format';
                WHEN OTHERS THEN
                   lf_err_flag := 1;
                   lv_err_msg := lv_err_msg || ' Enter Sail date in DD-MON-YYYY Format'|| SQLERRM;
             END;
          END IF;
          -------------Validation for PO_Number----------------------
          IF (P_PO_NO IS NULL) THEN
             lf_err_flag := 1;
             lv_err_msg := lv_err_msg || ' ' || 'Enter PO_NO - ';
          ELSE
             BEGIN
                SELECT count(1)
                  INTO ln_temp
                  FROM PO_HEADERS
                 WHERE Attribute4 =  P_PO_NO;
             EXCEPTION
                WHEN NO_DATA_FOUND THEN
                   lf_err_flag := 1;
                   lv_err_msg := lv_err_msg || ' No Oracle PO for Biceps PO#'||P_PO_NO;
                WHEN OTHERS THEN
                   lf_err_flag := 1;
                   lv_err_msg := lv_err_msg || ' Error getting the Oracle PO for Bicpes PO#'||P_PO_NO||' Error-' || SQLERRM;
             END;
          END IF;
         -----------------------Insert Record----------------------------
         IF lv_err_msg is NULL THEN
         BEGIN
             INSERT
              INTO XXP2P_HW_COST_FACTORS_STG
                     CONTAINER_ID
                    ,SAIL_DATE
                    ,PO_NO
                    , ERROR_FLAG
                    , ERROR_MSG
                   ,CREATED_BY
                    ,CREATION_DATE
                    ,LAST_UPDATED_BY
                    ,LAST_UPDATE_DATE
                    ,LAST_UPDATE_LOGIN              
                VALUES
                     P_CONTAINER_ID
                    ,P_SAIL_DATE
                    ,P_PO_NO              
                    ,lf_err_flag
                    ,lv_err_msg
                  ,FND_GLOBAL.USER_ID
                    , trunc (sysdate)
                    ,FND_GLOBAL.USER_ID
                    , trunc (sysdate)
                    ,FND_GLOBAL.LOGIN_ID              
                  --  commit;
                  DBMS_OUTPUT.put_line
                    '-' || 'After ap_invoices_interface'
            EXCEPTION
            WHEN OTHERS THEN
              ROLLBACK;
              lf_err_flag := 1;
              lv_err_msg  := lv_err_msg || ' ' || 'error loading CONTAINER_ID-' || P_CONTAINER_ID || SQLERRM;
              raise_application_error(-20001, lv_err_msg);
            END;
        ELSE
              raise_application_error(-20001, lv_err_msg);
        END IF;
      END upload_data;                        
    END XXPO_COSTFACTS_WEBADI_PKG;

  • Error 1003 when using excel reprt, but not Word

    I am trying to use the MS Office Report vi to send my data to an Excel. I am using Labview 7.1. 
    When I place the VI on the block diagram I get the following message: (Also attached)
    Error 1003 occurred at Open VI Reference in ex_RGT_Get
    Bookmarks and named cells.vi->Configure MS Office
    Report.vi->Confugure MS Office Report.vi.ProxyCaller
    Possible Reason(s):
    The VI is not executable. (OK Dialog box)
    If I click OK, the " Configure MS Office Report pop up window is mostly grayed out . If I select "Basic report for Word" I have no error message.
    I am using Excell 2003.  The problem is with a laptop computer I am using. I do not see this problem with a desktop computer. 
    Thanks,
    Bill
    Attachments:
    MS Report 8-24.doc ‏80 KB

    Hello Bill,
    You are not trying to build an executable, just use the Express VI in a regular development VI, right?  If so, this link describes the troubleshooting steps to get rid of this error.
    Regards,
    Clint M
    National Instruments

  • Getting error 3001 when using Excel Easy Table.vi

    When making a call to Excel Easy Table.vi (Report Generation Toolkit) I get a 3001 error.
    I have attached an example VI to demonstrate the problem.  Please run "Add Table Example.vi" in the attached zip.  This sample program is made up of VIs from a larger program, so it made more sense to create a sample program and only include the required VIs than include the entire large program.  So that is why the Report class wire comes from a functional global VI.
    What is a bit strange is that Excel Easy Table is used to write a summary table at the top of the spreadsheet successfully in "Initialize Report.vi."  It is only when I then make the additional call to Excel Easy Table in Add Table Example that I get the 3001 error.  If you have any ideas why I'm getting the 3001 error, please let me know.
    I'm using LabVIEW 8.6 and RGTK 1.1.4.
    Thanks,
    Joel
    Solved!
    Go to Solution.
    Attachments:
    Add Table Example.zip ‏113 KB

    Hey Joel,
    I figured out why this error was occuring. After comparing how you were adding the columns in the Report Write Info Table.vi in the Initialize Report.vi to just using the Excel Easy table VI, you hadn't provided a reference to which worksheet it needed to write the data to. I changed your code to include this reference and it worked perfectly without any errors. I have attached a .zip file with those changes so you can look at it.
    FYI: Don't try to use this code as a direct replacement with yours. In order for me to reproduce the error, I had to modify several VIs in order to get it to run.
    I hope this information helps you with it.
    Jim St
    National Instruments
    RF Product Support Engineer
    Attachments:
    Add Table Example.zip ‏146 KB

  • Crystal Report: Error while Export to Excel

    We are using combination of Crystal Report 10 With
    J2EE, Below source code is working fine While
    exporting to PDF, MSWord, RTF format.
    if(selectedFormat.equals("MSWORD"))
    exportOptions.setExportFormatType(ReportExportFormat.MSWord);
    if(iPageFrom>0 && iPageTo>0)
    RTFWordExportFormatOptions RTFExpOpts=new
    RTFWordExportFormatOptions();
    RTFExpOpts.setStartPageNumber(iPageFrom);
    RTFExpOpts.setEndPageNumber(iPageTo);
    exportOptions.setFormatOptions(RTFExpOpts);
    But am getting following error while exporting report
    to Excel
    com.crystaldecisions.report.web.viewer.ReportExportControl
    Invalid post back event : {0}
    We would like to know, Is SDK feasible for exporting
    to excel or not ?
    If yes! then Please suggest us for same.
    Thanks In advance :)

    I will make sure that I am on the latest patch ie SP4
    https://smpdl.sap-ag.de/~sapidp/012002523100008782452011E/cr2008sp4.exe
    You can find the rumtimes here:
    MSI:
    https://smpdl.sap-ag.de/~sapidp/012002523100008782532011E/cr2008sp4_redist.zip
    MSM:
    https://smpdl.sap-ag.de/~sapidp/012002523100008782522011E/cr2008sp4_mm.zip
    ClickOnce
    https://smpdl.sap-ag.de/~sapidp/012002523100008782442011E/cr2008sp4_clickonce.zip
    Recompile the app and then deploy.
    What is the .NET Framework used by the application?
    Method of deployment?
    OS where app is deployed, x86 or x64?
    Are you able to export the report from designer ie CR2008 Standalone?
    - Saurabh

  • Getting error while export to excel

    I have a report which following exprort to excel. I am following http://deneskubicek.blogspot.com/2007/03/export-to-excel-instaad-of-csv-or-txt.html
    above link example. In the read me file they mentioned that
    •     If the reports have a group by clause included, you need to modify the package and use v(‘ITEM’) syntax instead of (SELECT v(‘ITEM’) FROM DUAL):
    I found "from dual" statement in package at one place so how can i modify the query as per the above statment. I am getting the actual error as below.
    v_sql :=
    REPLACE (v_sql,
    UPPER (v_names (i)),
    '(SELECT v('''
    || LTRIM (v_names (i), ':')
    || ''') FROM DUAL)'
    Report Values Error: ORA-06550: Zeile 1, Spalte 170: PL/SQL: ORA-00936: Ausdruck fehlt ORA-06550: Zeile 1, Spalte 162: PL/SQL: SQL Statement ignored / -6550 / select from ( SELECT FACILITY_ID ,PROJECT_NUMBER ,AWARD_NUMBER ,MAX(AWARD_SHORT_NAME) ,MAX(TASK_NUMBER) TASK_NUMBER ,MAX(BOND_PROCEEDS) BOND_PROCEEDS ,MAX(PROJ_OWNING_CATEGORY) PROJ_OWNING_CATEGORY ,MAX(SCHOOL_DEPT) SCHOOL_DEPT ,MAX(GA_PPU_PERC) GA_PPU_PERC ,MAX(GA_SERA_PPU_PERC) GA_SERA_PPU_PERC ,MAX(GA_MATCH_SERA_PPU_PERC) GA_MATCH_SERA_PPU_PERC ,MAX(CURR_EXPENDITURE_GIFT) CURR_EXPENDITURE_GIFT ,MAX(CURR_EXPENDITURE_UNIV) CURR_EXPENDITURE_UNIV ,MAX(CURR_EXPENDITURE_EQTY) CURR_EXPENDITURE_EQTY ,MAX(SUBTOTAL_14) SUBTOTAL_14 ,MAX(TOTAL_DEBT_DRAW_AMT_TE) TOTAL_DEBT_DRAW_AMT_TE ,MAX(OTHER_TOTAL_DEBT_DRAW_AMT_TE) OTHER_TOTAL_DEBT_DRAW_AMT_TE ,MAX(SUBTOTAL_17) SUBTOTAL_17 ,MAX(SUBTOTAL_18) SUBTOTAL_18 ,MAX(GIFT_EQTY_PERCENT) GIFT_EQTY_PERCENT ,MAX(UNIV_EQTY_PERCENT) UNIV_EQTY_PERCENT ,MAX(NON_TE_EQTY_PERCENT) NON_TE_EQTY_PERCENT ,MAX(subtotal_22) subtotal_22 ,MAX(CURR_TE_BOND_PERCENT) CURR_TE_BOND_PERCENT ,MAX(OTH_TE_BOND_PERCENT) OTH_TE_BOND_PERCENT ,MAX(SUBTOTAL_25) SUBTOTAL_25 ,MAX(organized_research_sqft) organized_research_sqft ,MAX(ga_sera_ppu_sqft) ga_sera_ppu_sqft ,MAX(dept_research_sqft) dept_research_sqft ,MAX(nse_sqft) nse_sqft ,MAX(common_sqft) common_sqft ,MAX(name_sqft) name_sqft ,MAX(other_sqft) other_sqft ,MAX(SUBTOTAL_36) SUBTOTAL_36 ,MAX(PI_ROOM_SQFT) PI_ROOM_SQFT ,MAX(Total_BLDG_SQFT) Total_BLDG_SQFT ,MAX(organized_research_perc) organized_research_perc ,MAX(ga_sera_ppu_percent) ga_sera_ppu_percent ,MAX(dept_research_perc) dept_research_perc ,MAX(nse_perc) nse_perc ,MAX(common_perc) common_perc ,MAX(name_perc) name_perc ,MAX(other_perc) other_perc ,MAX(Total_Bldg_perc) Total_Bldg_perc ,MAX(fed_state_spo_res_flag) fed_state_spo_res_flag ,MAX(corporate_spo_flag) corporate_spo_flag ,MAX(ppu_flag) ppu_flag ,MAX(in_service_date) in_service_date ,MAX(demolished) demolished from (select AWARD_SHORT_NAME ,AWARD_NUMBER ,PROJECT_NUMBER ,TASK_NUMBER ,TOTAL_DEBT_DRAW_AMT_TE+TOTAL_DEBT_DRAW_AMT_TX BOND_PROCEEDS ,PROJ_OWNING_CATEGORY ,SCHOOL_DEPT ,FACILITY_ID ,GA_PPU_PERC ,GA_SERA_PPU_PERC ,GA_MATCH_SERA_PPU_PERC ,CURR_EXPENDITURE_GIFT ,CURR_EXPENDITURE_UNIV ,CURR_EXPENDITURE_EQTY ,CURR_EXPENDITURE_GIFT+CURR_EXPENDITURE_UNIV+CURR_EXPENDITURE_EQTY as SUBTOTAL_14 ,TOTAL_DEBT_DRAW_AMT_TE ,OTHER_TOTAL_DEBT_DRAW_AMT_TE ,TOTAL_DEBT_DRAW_AMT_TE+OTHER_TOTAL_DEBT_DRAW_AMT_TE SUBTOTAL_17 ,CURR_EXPENDITURE_GIFT+CURR_EXPENDITURE_UNIV+CURR_EXPENDITURE_EQTY+TOTAL_DEBT_DRAW_AMT_TE+OTHER_TOTAL_DEBT_DRAW_AMT_TE SUBTOTAL_18 ,GIFT_EQTY_PERCENT ,UNIV_EQTY_PERCENT ,NON_TE_EQTY_PERCENT ,GIFT_EQTY_PERCENT+UNIV_EQTY_PERCENT+NON_TE_EQTY_PERCENT as subtotal_22 ,CURR_TE_BOND_PERCENT ,Case when (CURR_EXPENDITURE_GIFT+CURR_EXPENDITURE_UNIV+CURR_EXPENDITURE_EQTY+TOTAL_DEBT_DRAW_AMT_TE+OTHER_TOTAL_DEBT_DRAW_AMT_TE)<>0 THEN round(abs((OTHER_TOTAL_DEBT_DRAW_AMT_TE*100 )/(CURR_EXPENDITURE_GIFT+CURR_EXPENDITURE_UNIV+CURR_EXPENDITURE_EQTY+TOTAL_DEBT_DRAW_AMT_TE+OTHER_TOTAL_DEBT_DRAW_AMT_TE)),2) --DIVISOR EQUAL TO ZERO ELSE 0 END AS OTH_TE_BOND_PERCENT ,CURR_TE_BOND_PERCENT+Case when (CURR_EXPENDITURE_GIFT+CURR_EXPENDITURE_UNIV+CURR_EXPENDITURE_EQTY+TOTAL_DEBT_DRAW_AMT_TE+OTHER_TOTAL_DEBT_DRAW_AMT_TE)<>0 THEN round(abs((OTHER_TOTAL_DEBT_DRAW_AMT_TE*100 )/(CURR_EXPENDITURE_GIFT+CURR_EXPENDITURE_UNIV+CURR_EXPENDITURE_EQTY+TOTAL_DEBT_DRAW_AMT_TE+OTHER_TOTAL_DEBT_DRAW_AMT_TE)),2) --DIVISOR EQUAL TO ZERO ELSE 0 END as SUBTOTAL_25 ,organized_research_sqft ,ga_sera_ppu_sqft ,dept_research_sqft ,nse_sqft ,common_sqft ,name_sqft ,other_sqft ,organized_research_sqft+ga_sera_ppu_sqft+dept_research_sqft+common_sqft+name_sqft+name_sqft+other_sqft SUBTOTAL_36 ,PI_ROOM_SQFT --37 A (SUM OF PIR-ROOM_SQFT) ,sum(PI_ROOM_SQFT) as Total_BLDG_SQFT ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(organized_research_sqft*100/sum(PI_ROOM_SQFT)),2)) AS organized_research_perc ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(ga_sera_ppu_sqft*100/sum(PI_ROOM_SQFT)),2)) AS ga_sera_ppu_percent ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(dept_research_sqft*100/sum(PI_ROOM_SQFT)),2)) AS dept_research_perc ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(nse_sqft*100/sum(PI_ROOM_SQFT)),2)) AS nse_perc ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(common_sqft*100/sum(PI_ROOM_SQFT)),2)) AS common_perc ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(name_sqft*100/sum(PI_ROOM_SQFT)),2)) AS name_perc ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(other_sqft*100/sum(PI_ROOM_SQFT)),2)) AS other_perc ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(organized_research_sqft*100/sum(PI_ROOM_SQFT)),2))-decode(sum(PI_ROOM_SQFT),0,0,round(abs(other_sqft*100/sum(PI_ROOM_SQFT)),2)) AS Total_Bldg_perc--45 ,Case when ga_sera_fed_score>0 then 'Yes' Else 'No' END as fed_state_spo_res_flag ,Case when ga_sera_ct_score>0 or ga_sera_score>0 then 'Yes' Else 'No' END as corporate_spo_flag ,Case when ga_sera_fed_score>0 or ga_sera_ct_score>0 or ga_sera_score>0 then 'Yes' Else 'No' END as ppu_flag ,in_service_date ,demolished from XXDL_CD_PTA_BLDG_LSR_FY_V where project_number=decode((SELECT v('P19_PROJECT') FROM DUAL),'',project_number,(SELECT v('P19_PROJECT') FROM DUAL)) AND FACILITY_ID=decode((SELECT v('P19_FACILITY_ID') FROM DUAL),'',FACILITY_ID,(SELECT v('P19_FACILITY_ID') FROM DUAL)) AND AWARD_NUMBER=decode((SELECT v('P19_AWARD') FROM DUAL),'',AWARD_NUMBER,(SELECT v('P19_AWARD') FROM DUAL)) AND TASK_NUMBER=decode((SELECT v('P19_TOP_TASK') FROM DUAL),'',TASK_NUMBER,(SELECT v('P19_TOP_TASK') FROM DUAL)) Group by AWARD_SHORT_NAME ,AWARD_NUMBER ,PROJECT_NUMBER ,TASK_NUMBER ,TOTAL_DEBT_DRAW_AMT_TE ,TOTAL_DEBT_DRAW_AMT_TX ,PROJ_OWNING_CATEGORY ,SCHOOL_DEPT ,FACILITY_ID ,GA_PPU_PERC ,GA_SERA_PPU_PERC ,GA_MATCH_SERA_PPU_PERC ,CURR_EXPENDITURE_GIFT ,CURR_EXPENDITURE_UNIV ,CURR_EXPENDITURE_EQTY ,TOTAL_DEBT_DRAW_AMT_TE ,OTHER_TOTAL_DEBT_DRAW_AMT_TE ,GIFT_EQTY_PERCENT ,UNIV_EQTY_PERCENT ,NON_TE_EQTY_PERCENT ,CURR_TE_BOND_PERCENT ,organized_research_sqft ,ga_sera_ppu_sqft ,dept_research_sqft ,nse_sqft ,common_sqft ,name_sqft ,other_sqft ,PI_ROOM_SQFT ,ga_sera_fed_score ,ga_sera_ct_score ,ga_sera_score ,in_service_date ,demolished) Group by FACILITY_ID ,PROJECT_NUMBER ,AWARD_NUMBER Order by FACILITY_ID ,PROJECT_NUMBER ,AWARD_NUMBER ASC)

    Report Values Error: ORA-06550: Zeile 1, Spalte 170: PL/SQL: ORA-00936: Ausdruck fehlt ORA-06550: Zeile 1, Spalte 162: PL/SQL: SQL Statement ignored / -6550 / select from ( SELECT FACILITY_ID ,PROJECT_NUMBER ,AWARD_NUMBER ,MAX(AWARD_SHORT_NAME) ,MAX(TASK_NUMBER) TASK_NUMBER ,MAX(BOND_PROCEEDS) BOND_PROCEEDS ,MAX(PROJ_OWNING_CATEGORY) PROJ_OWNING_CATEGORY ,MAX(SCHOOL_DEPT) SCHOOL_DEPT ,MAX(GA_PPU_PERC) GA_PPU_PERC ,MAX(GA_SERA_PPU_PERC) GA_SERA_PPU_PERC ,MAX(GA_MATCH_SERA_PPU_PERC) GA_MATCH_SERA_PPU_PERC ,MAX(CURR_EXPENDITURE_GIFT) CURR_EXPENDITURE_GIFT ,MAX(CURR_EXPENDITURE_UNIV) CURR_EXPENDITURE_UNIV ,MAX(CURR_EXPENDITURE_EQTY) CURR_EXPENDITURE_EQTY ,MAX(SUBTOTAL_14) SUBTOTAL_14 ,MAX(TOTAL_DEBT_DRAW_AMT_TE) TOTAL_DEBT_DRAW_AMT_TE ,MAX(OTHER_TOTAL_DEBT_DRAW_AMT_TE) OTHER_TOTAL_DEBT_DRAW_AMT_TE ,MAX(SUBTOTAL_17) SUBTOTAL_17 ,MAX(SUBTOTAL_18) SUBTOTAL_18 ,MAX(GIFT_EQTY_PERCENT) GIFT_EQTY_PERCENT ,MAX(UNIV_EQTY_PERCENT) UNIV_EQTY_PERCENT ,MAX(NON_TE_EQTY_PERCENT) NON_TE_EQTY_PERCENT ,MAX(subtotal_22) subtotal_22 ,MAX(CURR_TE_BOND_PERCENT) CURR_TE_BOND_PERCENT ,MAX(OTH_TE_BOND_PERCENT) OTH_TE_BOND_PERCENT ,MAX(SUBTOTAL_25) SUBTOTAL_25 ,MAX(organized_research_sqft) organized_research_sqft ,MAX(ga_sera_ppu_sqft) ga_sera_ppu_sqft ,MAX(dept_research_sqft) dept_research_sqft ,MAX(nse_sqft) nse_sqft ,MAX(common_sqft) common_sqft ,MAX(name_sqft) name_sqft ,MAX(other_sqft) other_sqft ,MAX(SUBTOTAL_36) SUBTOTAL_36 ,MAX(PI_ROOM_SQFT) PI_ROOM_SQFT ,MAX(Total_BLDG_SQFT) Total_BLDG_SQFT ,MAX(organized_research_perc) organized_research_perc ,MAX(ga_sera_ppu_percent) ga_sera_ppu_percent ,MAX(dept_research_perc) dept_research_perc ,MAX(nse_perc) nse_perc ,MAX(common_perc) common_perc ,MAX(name_perc) name_perc ,MAX(other_perc) other_perc ,MAX(Total_Bldg_perc) Total_Bldg_perc ,MAX(fed_state_spo_res_flag) fed_state_spo_res_flag ,MAX(corporate_spo_flag) corporate_spo_flag ,MAX(ppu_flag) ppu_flag ,MAX(in_service_date) in_service_date ,MAX(demolished) demolished from (select AWARD_SHORT_NAME ,AWARD_NUMBER ,PROJECT_NUMBER ,TASK_NUMBER ,TOTAL_DEBT_DRAW_AMT_TE+TOTAL_DEBT_DRAW_AMT_TX BOND_PROCEEDS ,PROJ_OWNING_CATEGORY ,SCHOOL_DEPT ,FACILITY_ID ,GA_PPU_PERC ,GA_SERA_PPU_PERC ,GA_MATCH_SERA_PPU_PERC ,CURR_EXPENDITURE_GIFT ,CURR_EXPENDITURE_UNIV ,CURR_EXPENDITURE_EQTY ,CURR_EXPENDITURE_GIFT+CURR_EXPENDITURE_UNIV+CURR_EXPENDITURE_EQTY as SUBTOTAL_14 ,TOTAL_DEBT_DRAW_AMT_TE ,OTHER_TOTAL_DEBT_DRAW_AMT_TE ,TOTAL_DEBT_DRAW_AMT_TE+OTHER_TOTAL_DEBT_DRAW_AMT_TE SUBTOTAL_17 ,CURR_EXPENDITURE_GIFT+CURR_EXPENDITURE_UNIV+CURR_EXPENDITURE_EQTY+TOTAL_DEBT_DRAW_AMT_TE+OTHER_TOTAL_DEBT_DRAW_AMT_TE SUBTOTAL_18 ,GIFT_EQTY_PERCENT ,UNIV_EQTY_PERCENT ,NON_TE_EQTY_PERCENT ,GIFT_EQTY_PERCENT+UNIV_EQTY_PERCENT+NON_TE_EQTY_PERCENT as subtotal_22 ,CURR_TE_BOND_PERCENT ,Case when (CURR_EXPENDITURE_GIFT+CURR_EXPENDITURE_UNIV+CURR_EXPENDITURE_EQTY+TOTAL_DEBT_DRAW_AMT_TE+OTHER_TOTAL_DEBT_DRAW_AMT_TE)0 THEN round(abs((OTHER_TOTAL_DEBT_DRAW_AMT_TE*100 )/(CURR_EXPENDITURE_GIFT+CURR_EXPENDITURE_UNIV+CURR_EXPENDITURE_EQTY+TOTAL_DEBT_DRAW_AMT_TE+OTHER_TOTAL_DEBT_DRAW_AMT_TE)),2) --DIVISOR EQUAL TO ZERO ELSE 0 END AS OTH_TE_BOND_PERCENT ,CURR_TE_BOND_PERCENT+Case when (CURR_EXPENDITURE_GIFT+CURR_EXPENDITURE_UNIV+CURR_EXPENDITURE_EQTY+TOTAL_DEBT_DRAW_AMT_TE+OTHER_TOTAL_DEBT_DRAW_AMT_TE)0 THEN round(abs((OTHER_TOTAL_DEBT_DRAW_AMT_TE*100 )/(CURR_EXPENDITURE_GIFT+CURR_EXPENDITURE_UNIV+CURR_EXPENDITURE_EQTY+TOTAL_DEBT_DRAW_AMT_TE+OTHER_TOTAL_DEBT_DRAW_AMT_TE)),2) --DIVISOR EQUAL TO ZERO ELSE 0 END as SUBTOTAL_25 ,organized_research_sqft ,ga_sera_ppu_sqft ,dept_research_sqft ,nse_sqft ,common_sqft ,name_sqft ,other_sqft ,organized_research_sqft+ga_sera_ppu_sqft+dept_research_sqft+common_sqft+name_sqft+name_sqft+other_sqft SUBTOTAL_36 ,PI_ROOM_SQFT --37 A (SUM OF PIR-ROOM_SQFT) ,sum(PI_ROOM_SQFT) as Total_BLDG_SQFT ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(organized_research_sqft*100/sum(PI_ROOM_SQFT)),2)) AS organized_research_perc ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(ga_sera_ppu_sqft*100/sum(PI_ROOM_SQFT)),2)) AS ga_sera_ppu_percent ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(dept_research_sqft*100/sum(PI_ROOM_SQFT)),2)) AS dept_research_perc ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(nse_sqft*100/sum(PI_ROOM_SQFT)),2)) AS nse_perc ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(common_sqft*100/sum(PI_ROOM_SQFT)),2)) AS common_perc ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(name_sqft*100/sum(PI_ROOM_SQFT)),2)) AS name_perc ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(other_sqft*100/sum(PI_ROOM_SQFT)),2)) AS other_perc ,decode(sum(PI_ROOM_SQFT),0,0,round(abs(organized_research_sqft*100/sum(PI_ROOM_SQFT)),2))-decode(sum(PI_ROOM_SQFT),0,0,round(abs(other_sqft*100/sum(PI_ROOM_SQFT)),2)) AS Total_Bldg_perc--45 ,Case when ga_sera_fed_score>0 then 'Yes' Else 'No' END as fed_state_spo_res_flag ,Case when ga_sera_ct_score>0 or ga_sera_score>0 then 'Yes' Else 'No' END as corporate_spo_flag ,Case when ga_sera_fed_score>0 or ga_sera_ct_score>0 or ga_sera_score>0 then 'Yes' Else 'No' END as ppu_flag ,in_service_date ,demolished from XXDL_CD_PTA_BLDG_LSR_FY_V where project_number=decode((SELECT v('P19_PROJECT') FROM DUAL),'',project_number,(SELECT v('P19_PROJECT') FROM DUAL)) AND FACILITY_ID=decode((SELECT v('P19_FACILITY_ID') FROM DUAL),'',FACILITY_ID,(SELECT v('P19_FACILITY_ID') FROM DUAL)) AND AWARD_NUMBER=decode((SELECT v('P19_AWARD') FROM DUAL),'',AWARD_NUMBER,(SELECT v('P19_AWARD') FROM DUAL)) AND TASK_NUMBER=decode((SELECT v('P19_TOP_TASK') FROM DUAL),'',TASK_NUMBER,(SELECT v('P19_TOP_TASK') FROM DUAL)) Group by AWARD_SHORT_NAME ,AWARD_NUMBER ,PROJECT_NUMBER ,TASK_NUMBER ,TOTAL_DEBT_DRAW_AMT_TE ,TOTAL_DEBT_DRAW_AMT_TX ,PROJ_OWNING_CATEGORY ,SCHOOL_DEPT ,FACILITY_ID ,GA_PPU_PERC ,GA_SERA_PPU_PERC ,GA_MATCH_SERA_PPU_PERC ,CURR_EXPENDITURE_GIFT ,CURR_EXPENDITURE_UNIV ,CURR_EXPENDITURE_EQTY ,TOTAL_DEBT_DRAW_AMT_TE ,OTHER_TOTAL_DEBT_DRAW_AMT_TE ,GIFT_EQTY_PERCENT ,UNIV_EQTY_PERCENT ,NON_TE_EQTY_PERCENT ,CURR_TE_BOND_PERCENT ,organized_research_sqft ,ga_sera_ppu_sqft ,dept_research_sqft ,nse_sqft ,common_sqft ,name_sqft ,other_sqft ,PI_ROOM_SQFT ,ga_sera_fed_score ,ga_sera_ct_score ,ga_sera_score ,in_service_date ,demolished) Group by FACILITY_ID ,PROJECT_NUMBER ,AWARD_NUMBER Order by FACILITY_ID ,PROJECT_NUMBER ,AWARD_NUMBER ASC)
                                                                                                                                                                         ^
                                                                                                                                                                         |
                                                                                                                                                                         |
                                                                                                                                                                         missing columnyou are missing a column expression in your select statement. scroll to the right to see what i am referring to.

  • Error in reading from excel file

    hi,
    I have written a program which reads from excel file
    and based on the value of the column i have to do something.
    Everything is fine but when i run it, it produces an error message
    Exception: For input string: "851.0"
    the value 851.0 is acually the value of the first column.
    Here is the code and i hope someone can help me to find the solution
    try{
                               Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                               Connection con = DriverManager.getConnection( "jdbc:odbc:exceltest" );
                               Statement st = con.createStatement();
                               ResultSet rs = st.executeQuery( "Select * from [Sheet1$] " );
                               ResultSetMetaData rsmd = rs.getMetaData();
                               int numberOfColumns = rsmd.getColumnCount();
                               while (rs.next()) {
                                            for (int i = 1; i <= numberOfColumns; i++) {
                                                 if(i==1){
                                                            String columnValue1 = rs.getString(i);
                                                            custNo =Integer.parseInt(columnValue1);
                                                           // System.out.println(columnValue1);     
                                                            found=search(custNo);
                                                            if (found==false)
                                                                 insert(custNo);
                                                            System.out.println(columnValue1);     
                                                 else if (i == numberOfColumns && found==false)
                                                           String columnValue = rs.getString(i);
                                                           if(columnValue=="a")
                                                                incrementCusta();
                                                           else if (columnValue=="b")
                                                                incrementCustB();
                                                           else if(columnValue=="c")
                                                                incrementCustc();
                                                           else if(columnValue=="d")
                                                                incrementCustId();
                                            System.out.println("");     
                                       st.close();
                                       con.close();
                                      } catch(Exception ex) {
                                           System.err.print("Exception: ");
                                           System.err.println(ex.getMessage());
                                 }

    Maybe 851.0 is float value, not string.
    Try Object columnValue1 =
    rs.getObject(i); instead of String
    columnValue1 = rs.getString(i);
    You are absolutely right i actually change the line
    custNo =Integer.parseInt(columnValue1);
    into
    custNo =Double.parseDouble(columnValue1);
    Thanks alot :)

Maybe you are looking for

  • Dynamic SQL and use of aggregate functions

    Hello Forum members, I'm trying to create dynamic SQL in a function module and return the MAX value of a field.  I am passing in a parameter called CREATE_FIELD_NAME, and my SQL is SELECT MAX(CREATE_FIELD_NAME) INTO (CREATE_DATE) FROM (TABLE_NAME). I

  • CS4 Extended user: 32GB of session photos WON'T download through Bridge.  help!!

    Hi folks, First time poster here.  I posted this on the Photoshop Windows board too - I am desperate. I am running CS4 Extended on my one-year old Windows 7 PC.   I did 13 mini sessions over the weekend.  I'm a portrait photographer and have had ZERO

  • Graphic card in infinite loop !!!!

    i just have one prob with my mobo it's the GPU infinite loop !!! somebody have a soluition for my prob??????????? p4 2.4 C radeon 9500 pro bios 1.5 2*256 corsair twinx pc3200 LL the infinite loop often appear  in AGP 8x and sometime in AGP 4x. and if

  • Why do I have to wait between calls?

    I'll try to explain myself.   After making or receiving a call and hanging up I have to wait a minute or so before making another call.  If I try to make the call immediately after I hang up the previous call, the call does not go through (the screen

  • Switchover/Failover to physical standby

    Hi All, I have dataguard configured between Primary and physical standby. I would like to know how can i switch over to physical stanby when the network link is down between primary and physical standby. I mean what steps I can follow to make physica