Download to excel from portal

Hi all,
I am calling an ABAP program in an iView in the portal. The program has an function to download to Excel using function module XXL_SIMPLE_API. In the portal this results in a 'CNTL_ERROR' exception in program CL_GUI_FRONTEND_SERVICES. I have tried several function modules (SAP_CONVERT_TO_XLS_FORMAT, WS_EXCEL) but none of these can be used from the portal.
Is there any function module or class that I can use to download data to excel from the portal??
Thanks!
Patrick

I'm not specialist in that area but not surprised that it doesn't work, as these functions use OLE, and this is forbidden via internet navigator (security reasons I guess).
Either download a simple CSV file (download any internal table using CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD method),
or if you really want to make special things, look at ActiveX and ACF sap notes, and also demo web dynpro ios_test_helloworld_ms (office integration), but I don't have more info.

Similar Messages

  • ALV report Download to excel from portal

    Hi,
    We have a standard SAP ALV reprot (CATS_DA) which we have brouht onto the portal. We are not abel to download this report in excel foramt. This is not giving any errors. The option is just not working at all. HAs anybody come across thsi issue?
    regards
    Raj

    Hi Raj,
    are you using DOWNLOAD function?
    I am also having the same problem. It is working fine in LAPTOP and not working in Desktop.
    There may be some system settings or javascript issues.
    I will try that in desktop.
    Thanks and regards,
    gopal

  • In download to excel from bsp hw to increase excel column width to wrap txt

    in download to excel from bsp how to increase excel column width to wrap text
    in each column.
    My client does not want to manually click each cell aftet downloading to excel to see full text in each column

    Hi,
    You can achieve this by formatting your output using HTML table tag.
    Try the following code.
      DATA: lv_output  TYPE string.
      concatenate
      '<table border="1">'
      '<tr style="font-weight: bold; text-align:center; "><td>Name</td><td width="150">Description</td></tr>' cl_abap_char_utilities=>cr_lf
      '<tr><td>First Name</td><td>Some Description goes here..... ....... ...... </td></tr>' cl_abap_char_utilities=>cr_lf
      '<tr><td>2nd Name</td><td>XYZ.......</td></tr>' cl_abap_char_utilities=>cr_lf
      '</table>'
      into lv_output.
      response->set_cdata( data = lv_output ).
    Regards
    Geogy
    PS. Reward the useful answers.

  • Download to excel from alv display

    Hi,
    How to download to excel from alv display.I am using object oriented abap for using alv.If i click export->spreadsheet i am getting fatal error and if i export->local file->spreadsheet i am getting only the column names and heading but no contents.Can anyone tell me how to overcome this problem.
    Regards,
    Sowmya.

    Hi Sowmya,
    Just put break point near FM reuse_alv_grid_display and check if internal table which is used to display output is popullated or not.
    Regards Sachin.

  • Limit the number of record to download to excel from a report

    I am just wondering if there is a way to limit the number of rows that I want to download to excel from a report in apex, right now when I click download to excel it downloads all records. If I am displaying 15 records on report page I want the ability to download only those records.
    Any help with that would be appreciated.
    Kind Regards,
    Sofia.

    Sofia,
    The same report query runs for downloading the data into excel, I don't think you can limit the number of records in download.
    You can achieve it using custom code, like on click of download excel redirect to another page and then restrict the data as per your need, or you can use the custom procedure to download the limited data.
    Denes' utility to download into excel.
    http://htmldb.oracle.com/pls/otn/f?p=31517:108:1476564836494581:::RP,::
    Regards,
    Manish

  • Download to excel from front end - percent coming as date

    download to excel from front end - percent coming as date
    Hi,
    i'm using below method to dowload to excel from frontend (Backened is R/3).
    1) l_string will have the entire xls date ( with sepeartor cl_abap_char_utilities=>horizontal_tab and cl_abap_char_utilities=>newline)
    2) Converitng string to xstring using FM SCMS_STRING_TO_XSTRING
    3) pumping excel date to browser using  IF_HTTP_ENTITY~SET_DATA
    4) creating URL using GUID_CREATE fm.
    it's downloding the excel file but funny date.
    example
    percentage 1.5 coming as Jan 50 and Percent 3.5 coming March 50.
    How to avoid this funny conversion.
    ...Nandha

    Hi Nanda,
    have you tried to change the number format of the corresponding cells in excel to percentage?
    BR Steffen

  • How to avoid the "filter cells" during download to Excel from WAD

    How can we avoid seeing the "filter cells" in the link:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a54dbe09411d2acb90000e829fbfe/content.htm
    which we have every time a Bex query is downloaded to Excel from Web application designer?
    The objective is to find a way to avoid the filter cell rows from happening period.... and not asking the users to manually delete the excel rows.
    Edited by: Sharon West on Nov 26, 2008 12:12 PM

    Why is your topicstart all in bold?

  • Downloading BW report from Portal into Excel

    Hi All,
    When a user is trying to download a BW report from Portal into Excel, it is prompting for User id and password of backend.
    But since portal has SSO this should not happen??
    Once the Uid and Pwd has been entered the report works fine.
    Why is this happening ??
    Need Urgent Help regarding this issue...
    Thanks in Advance.
    Regards,
    Shailesh Nagar

    are you connect the portal with proxy?

  • Download to excel from ALV via portal

    HI,
    Could anyone out there help me resolve one issue which I am facing.
    We have developed a ALV report and the same is working fine in GUI screen and also the various ALV features such as Download to Local File, Print Preview and others are working very well.
    But if I deploy the same report on EP. The report is executing just fine but all the ALV features such as download to excel file and all other features are not working as desired.
    I have done some reasearch on this issue and everytime people talk about having the updated Java version and to run this features on IE 7 or below. We have tried all these but still no luck.
    Request you to provide your valuable inputs which can help me resolve this issue.
    Thanks much!
    Regards,
    Sumanth

    Hi,
    I guess this is due to the gui statements like call screen for popup to download which will not work in browser, instead of using FM for ALV or CL_GUI_ALV_GRID class, try using CL_SALV CLasses or create ALV in Web dynpro and integrate it in portal which will work well.
    Hope this helps u.,
    Thanks & Regards,
    Kiran.

  • Taking download into excel from ALV Grid - header is printing in two lines

    Hi All,
    I have a scenario where I am taking the download from ALV grid to an excel sheet. Now the header of the ALV (column names) is appearing in two lines in the downloaded excel sheet while items (records of the ALV table) are getting displayed in a single line.
    This download is taken from the standard download to local file (spreadsheet) button provided by SAP for ALVs.
    I am using function module "Reuse_alv_grid_display" for the purpose.
    Can somebody provide an idea how I can avoid the header printing in two lines and keep the length as it is.
    Thanks in Advance,
    Chandan

    Hi..
    1. Pass header name in internal table appned first line.
    2. after that pass u r data .
    3. Use  FM. WS_DOWNLOAD 
    Salil ......
    Edited by: salil chavan on Nov 26, 2008 11:07 AM

  • Issue with Data download to excel from ALV

    Hi,
    I am trying to download data to excel from ALV.
    The number of records are 26000.
    When I am trying to download I am getting an error displaying a pop up saying that
    problems came up in the following areas during the load
    TABLE
    The log displayed is not clear.
    I need to know the limitations while downloading to excel... I tried in SDN but of no use. I am using office 2007.
    What is the max downloading limit(MB)
    What must be the Length of line that can be downloaded.
    Regards

    Hi ,
    First check whether your ALV grid OUTPUT   is Consistent or Not   .
    if there are any inconsistency  then you need to rectify that  .
    for Checking COnsistency / Inconsistency  .do following steps
    1) execute ALV report 
    2) Press Shift+Mouse Right Button (Twice)  in blank area of report 
    3) you will get result   whether ALV is good or not .
    regards
    Deepak.

  • Stop download to Excel from converting string of digits & dashes into date

    Hi,
    How can I stop BI and Excel data from converting a column of string data that is comprised of numbers and dashes into a date format when it is downloaded into Excel?
    I'd like to solve this problem in BI, so that any users can download the data from a BI report into Excel without having to change the Excel date column back into a string column.
    Thanks,
    Darcy

    Hi Again Darcy,
    hmmm... That is very interesting. I just tried on OBIEE 10.1.3.2 ( a version before yours) on Windows XP with Office 2003 and an Oracle 11g DB backend and it did not have any problems pulling the value as text and not a DATE
    Can you try something for me? In a new report, add any old dimensional (year, month name, etc) field twice into the report and change the second column formula to be following: '7001-2'
    Try to export that report and see if that value comes through as text or a date. If it is something about the SQL server data set, then the above test should come through as text object in your excel download because we aren't pulling it from SQL Server, we'll creating it directly in OBIEE. If the above test does come through as a date, then it should mean that SQL Server isn't the issue. And if that is the case, I am starting to wonder if there's a setting in Office to can be enabled/disabled to avoid any data casting.
    Best regards,
    -Joe

  • How to Download EAR file from Portal?

    Hello All,
    I have an application iview sap.co.f16 in my portal. I need to change some of its code as per the requirements. I observed that the type of the application is java.
    Can anyone please guide me how to download the source file from portal so that I can make required cahnges...
    Thanks in advance for your help!
    Regards,
    Bhavya.

    Hi
    in the server it will be present in the following location
    EAR files not deployed in Portal. So we can't download from the Portal. We can download from Portal Server Path only
    \usr\sap\<SID>\JC<instance no>\SDM\root\origin\<abc.com>\appl\global\<wd component name>\LOCAL\
    Thanks
    Regards
    Vijay K

  • NO header detail appears when downloading to excel from web template

    When we run our queries via a web template and through the portal we get the results which shows the query title and report details. When we try to download this to excel the header(report title etc. )information doesn't come down but all the rest of the report does. If we go in again and change the variable values for characteristics (query is being changed and run the web template (via portal)again and download to excel the header (report title etc.)the whole report title and report detail now appear. Looking for someone who has resolved this problem.

    For anyone who is interested, this was caused by our email client, not BIP.

  • Download PAR file from portal or Service marketplace

    Hi,
    Can you tell me that how we can download the par file from portal 7.3 or from marketplace.
    give me the path also.
    Regards,
    Shashank

    Hi
    Please check the process :
    http://scn.sap.com/community/netweaver-portal/blog/2012/05/10/customizing-logon-page-on-portal-73

Maybe you are looking for