Always the excel format output

I have a requirement in which i wish to output the file always in excel format.
i have made a selection screen field with search help,if the user deletes the default path given in this text box,replaces it with any free text and puts no extension or any extension other than excel,i want function that will ask him to either enter .xls extension or use search help or press f4.
how can i achieve this.this  iwish to do error handling to avoid the file getting generated with faulty file.
please reply.

Hi,
Data : lv_file type string.
checking the filetype the user has entenred.
find : '.xls' in p_file.
if sy-subrc ne 0 .
split at '.' into another variable.
concatenate that with '.xls' into lv_file.
else.
do nothing.
endif.
With Regards,
Sumodh.P

Similar Messages

  • I am not able to open the html format outputs of SQR

    when I am trying to open SQR html formate output generated by SQR jobs not able to open the html format outputs of SQR getting below error
    but I am able to open pdf and excel formats outputs
    "An error was encountered while attempting to retrieve audit_control_info_frm.htm from the Hyperion Reporting and Analysis - System 9. This error is normally encountered when there is no free disk space on the machine hosting Hyperion Reporting and Analysis - System 9 Application. Hyperion Reporting and Analysis - System 9 Application uses a directory on the hard disk to store temporary files while downloading objects. To rectify this problem, if the disk hosting the Hyperion Reporting and Analysis - System 9 Application temporary directory is nearly full, free up additional disk space. After confirming that there is available disk space, restart ALL Hyperion Reporting and Analysis - System 9 servers. <p>Another possible cause of this error is that you have attempted to embed a "Versioned Collection" into your Personal Page. A "Versioned Collection" is typically created when you publish a document and request the creation of an additional compressed copy. Embedded "Versioned Collections" are not supported by Hyperion Reporting and Analysis - System 9.
    A general error was encountered contacting the server.
    Recommended Action: Contact your corporate technical support."

    Welcome to the Apple community.
    Have you tried restarting your web browser, if that doesn't help you might try emptying your web browser's cache.

  • Composing the URL to call a report to render in the Excel format - SSRS 2012

    Hi,
    I've a report that I need to call by an URL. I've composed this link, using the rs:Format=EXCEL command, but I've an error because the max number of rows is 65.536 for the current version of Excel and the extracted data are more of 150.000 rows. On the report
    server is installed Excel 2013 and so this error it seems strange: the limit of 65.536 rows refers to an older Excel version than Excel 2010.
    My idea is to pass in the URL string a client command, but rc:Format=EXCEL doesn't function.
    Any suggests to me, please?
    Thanks

    Hi pscorca,
    Per my understanding that when you export the large data report to excel by adding the commend "rs:Format=EXCEL"  in the URL, you got some error, right?
    As you mentioned that you are using the new version of excel, so the issue can be caused by the reporting service have some limitation rendering the large data report.
    Please design the report to add page break and parameters which will also avoid some limitation of the excel:
    When you add page breaks in the report. Each page break will defines a new sheet in Excel. Each sheet can handle a maximum of at least 65000 rows. Consider these limits when you set the page breaks in a report.
    For exporting to Excel, do not merge cells in a Tablix data region. In free form reports, align report items vertically. Merged cells and unaligned report items interfere with Excel functionality in the exported report.
    You have mentioned that pass "rs:Format=EXCEL" in the URL string a client command, but doesn't work, please check to make sure you add the commend after the Report URL of the report Server but not report manager.
    Pass a Report Parameter Within a URL
    More Details information for your reference:
    Troubleshooting Reports: Report Performance
    If your problem still exists, I would like you post us the error message you got to help us better analysis about the issue.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • ALV Report output in Excel format

    Hi ,
    I am facing a different behaviour in two computers , while trying to take an Excel format of an ALV report output. After generating the ALV output ,in one , when I click on the Excel Format button - the Excel spreadsheet opens with the output data. In the second computed , under the same action , a blank Excel sheet opens .
    Could someone tell me a solution . What aspect is responsible for this ?
    Regards ,
    Sujata

    Reduce the MACRO security settings in the Excel to Medium.
    Open an execl sheet, Chose from menu Tootls->Macro->Security.
    Chose the radio-buton medium. Close the file and all excel applications.Then try downloading again.
    Regards,
    Ravi

  • Error while downloading output in excel format using FM Gui_download

    Hello All,
    <removed by moderator>
    While downloading the necessary output of a Ztransaction in excel format the excel file only shows one 1 record whereas in the output there were 88 records.
    When I am downloading it in other formats like Rich text etc. the data is getting downloaded correctly as per the output.
    Now this problem is occuring in Production & Quality whereas in Development the excel file is downloading data correctly.
    I have compared the code in the different clients as well as debugged it but the code is the same in each case.
    There is no data corruption in the final internal table as well.
    So what else can be done?....
    The data needs to be downloaded as it is in the output in the excel format.
    Kindly give me some suggestion and help me out in this regard.
    Edited by: Thomas Zloch on Nov 1, 2011 10:04 AM

    Hi,
    Did you the use the GUO_download using the following values:
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename         = fullpath
        filetype         = 'ASC'
        codepage         = space
        write_bom        = 'X'
      TABLES

  • Is it possible to format the excel from OAF ?

    Hi,
    I have a requirement that :
    We have a page from where we are exporting data to an excel sheet, which is working fine.
    But the data in the excel sheet is not formatted: now the problem is, we have to give a proper formatted data in excel form and it should be available when export button is clicked.
    Is it possible to handle the excel format through code from OAF ?
    Thanks,
    Ranita

    Ranita,
    Why dont you try with XML report.
    Call the XML(RTF) report in XLS format when button is clicked.
    Regards
    Srdihar

  • Formatting report in excel format

    Hi,
    I have to generate report in excel format but I don't know how to format it for example to add a dynamic title, and to add a logo in the top of the excel sheet...
    any help..
    thanks in advance.

    Hi,
    Oracle Portal Reports generated do not pick up the foramting conditions which you would see in HTML/ASCII format .Hence ,TITLE ,FOOTER or number ,date formats wouldn't work in Excel format .Incase you needed formatted output ,you can use HTML/ASCII foramt.
    Incase you want to use the EXCEL format.Save the Excel file and right macros to do so.
    Thanks,
    Anu

  • Leading zeros are not displaying in the excel

    Hi Experts,
    Leading zeros are not displaying in the excel
    Here is the situation:
    I have developed one report, which will create the file in Application server with TAB deleimeted. After that I am sending that file via email in the excel format using Email functionality FM.
    Normally our material numbers will start with zeros.
    But when I check the email excel file , leading zeros are not displaying.
    Even I checked the application server (AL11) file, zeros are there.
    I thought program FM was wrong and I tried it manually by downloading the file into excel. Eventhough it is suppressing zeros.
    Could you please advise, how to display leading zeros to the material number in excel file.
    Thanks in advance
    Raghu

    Application server file showing  zeros infront of the material number.
    1200#  0012401387# XXXXXXXX
    Once file created in app server, I am using one custom FM to send that output in excel format / txt format via email.
    when I send txt file via email, I am getting leading zeros. But when I send xls file via email, I am not getting zeros.
    I checked custom FUNCTION MODULE . No mistakes in that.
    ===
    Sudhir,
    As you said, I passed ( ' ) single quote infront of the material number. When I check the excel file, single quote also displaying like this '0000100.
    Application server file showing like below
    1200#  '0012401387# XXXXXXXX
    ===
    Could you please advise anyone how can we acheive this.
    Thanks

  • Publishing BEx Reports as PDF or Excel Format into a Folder

    Hi,
         Current Environment: BW 3.5;  Portal:None
        We are currently broadcasting BEx Reports (BW 3.5).
    a) Is there a way in which we can publish these reports into a Network directory or a folder of an application server either in the Excel format or PDF Format?
    Solutions looked at:
    ---RSRT allows us to publish in .txt file. There is some amount of work involved in getting it converted into a PDF Format. 
    --Looked at the solution for the development of wrapper class for Adobe Document services.
        Are there any other solutions? Any ideas would be appreciated.
    Thanking in advance.

    Hi,
    Here we have a scenario where we are using BO(Business Objects) reports.
    All the roports sent to Users and are saved at the local directories.
    At the back end BO reports use the BEx query output.
    All the reports are scheduled and are fetching data from BW system after the data load completes.
    Hope this helps.
    Regards,
    Tulasi

  • Is it not possible to print the Excel generated reports from EBS!!

    Is is true that the Excel generated by XML Publisher is not printable from Oracle Applications. Does the printers do not have drivers to understand EXCEL format (which from XML Publisher is XHTML not binary .xls.) So for printed output we should only use PDF ??
    Please advice!!
    Thanks.

    Hi,
    Actually the Excel format generated by XML Publisher is XHTML ... so the print process would need to convert XHTML to Postscript (similar to PDF being converted to Postscript by pdf2ps).
    But you question is still valid... unfortunately I haven't tried it ... anyone else?
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • How to get XML format output from Hyperion Financial Reporting

    Dears,
    We are using Hyperion Financial Reporting to replace FSG in fusion. I found that Hyperion FR report can be exported to html/excel/pdf format. However, I would like the report to export to xml format.It means I only need the xml data source.
    Anyone who knows how to get the xml format output from Hyperion FR, is there any avaiable API?

    I think if you export the report, you will be able to open the .des file in Notepad/Wordpad and see xml content.

  • Export data in Excel  format

    Dear All ,
    whenevr i am exporting any report in excel , the same is saved with unicode extension / file type as unicode .
    can we have directly into the Excel format ?pl guide
    regards,

    Hi there!
    Save it as a .txt.
    It shld come out as a tab delimited file.
    From this file you can output ur data in excel.
    Regards,
    Tolulope

  • Upload data in excel format in UNIX

    Hi all,
    I have an internal table containing some data. I need to transfer this data to a UNIX server and store it in excel format.
    Pls let me know how can I do the same.
    Thanks and regards,
    Prasad

    Hi Rodrigo,
    I tried with this..
        OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
        if sy-subrc = 0.
          loop at it_final into wa_final.
            TRANSFER wa_final TO file.
          endloop.
          CLOSE DATASET file.
        else.
          write : / text-108. "Error
        endif.
    "file -> It has the path of the UNIX server given in the selection screen
    But I am sure this will not be in the excel format.
    Thanks,
    Prasad

  • Upload a file of Excel Format into Internal Table!!!

    Dear All,
    Currently i have a question for upload a file of excel format, I can just convert the file of excel format to text format first. Then it would be OK.
    As we all know, Frequently,The users would always like to provide the excel format to us. Thus, Is there any solutions directly uploaded the file of Excel format into database for web dynpro for ABAP? Not web dynpro for Java.
    Appreciated what you reply!
    Thanks in advance.
    Richard

    Richard,
    I saw my developer use LSMW to load the excel file to the db table. You must careful with the data that you're going to upload.
    Cheers.
    P/S Point reward is appreciated.

  • WAD report export to excel formatting not preserved

    Hi,
    when i export BI 7.1 WAD template to excel and copy to another excel sheet cell formatting changes.color formatting is
    not preserved when we copy to another excel sheet.I tried resetting the "preserve visual appearance of workbook" to the
    exported excel sheet, but this didnot work.I am using excel 2007.
    Can anyone tell me how to preserve the excel formatting for WAD template.
    Thanks,
    Harsha

    Hi Roy
    Have you got the report set to bring back a specific number of rows at a time (ie retrieve data incrementally in sets of : setting in options)?
    If so set this to a larger number of rows, Discoverer will then return all data when the reports is run and will export all data to the spreadsheet.
    Hope this helps
    Melanie

Maybe you are looking for