Questions regarding Excel Export from Table

Hello,
i've implemented the Excel Export described in this blog:
/people/sap.user72/blog/2006/05/04/enhancing-tables-in-webdynpro-java-150-custom-built-table-utilities
It works fine, but i have 2 question:
- You have to add your Columns who want to get in Excel in the ArrayList. I have a table with LayoutOption (make Columns Visible/Invisible) and want to get all visible columns in my Excel list. You can i realize that?
- My Excel List is shown in my existing Browser Window, but i want to open a new Window, how can i do that?
Kind Regards,
Christopher

Hello Cristopher,
For the first Qst:
  Lets think in this way; you have set two column fields invisible and in wdModifyView() check if the columns are visible set a flag and accordingly you can set the header at the getColumnInfo() function.
Preferably use switch case to check the ArrayList selection and adding values to it.
For the second Qst:
  Its all about the Browser property; where you have to set the option New window should be opened in new window. This will work.
+in case of Mozilla; in Tools->option->Tab->new window should be open in
new window
new Tab
+
Select new window
Regards
  -Vinod V

Similar Messages

  • Question about Excel export from Infoview

    Can someone please verify this for me?
    I need to be able to export the results of a report to MS Excel.  When running a CR on demand, or scheduled, through the InfoView and then exportiing as "Excel with Data Only" we get an error that reads "A request was canceled.  The necessary security privileges could not be verified.  This indicates a problem with the security server."
    I suspect we are getting that error because Excel is not installed on the BOXI server.  Is this a possible cause?  Any other ideas to check into?
    Thank you,
    - George

    ANd exactly sorry, this is useless. You have not provided any details about your export settings, version of AI, system info, how you are trying to view and so on. Just saying that it doesn't work is simply not good enough.
    Mylenium

  • Add columns to EXCEL exported from ALV

    Hi,
    I'm using the function module REUSE_ALV_GRID_DISPLAY, to display an ALV report. This report shows a standard text when users click on one column.
    I wanna know if its possible to add the standard text as a column into the EXCEL exported from this ALV? and if so, how can I do it?
    Regards.
    Gregory.

    Thanks again Raymond,
    With internal tables that have a type from ABAP dictionary works fine. My problem is that my internal table is declared into my program's global variables. My code bellow:
    DATA: BEGIN OF it_excel OCCURS 0,
             department  TYPE adcp-department,
             bname       TYPE usr02-bname,
             name_text   TYPE adrp-name_text,
             agr_name    TYPE agr_users-agr_name,
             text        TYPE agr_texts-text,
             from_dat    TYPE agr_users-from_dat,
             to_dat      TYPE agr_users-to_dat,
             tcode       TYPE agr_tcodes-tcode,
             ttext       TYPE tstct-ttext,
             tdesc       TYPE string,
          END OF it_excel.
    * fills the it_excel table
    perform fill_excel_data.
      CALL METHOD cl_gui_frontend_services=>file_save_dialog
        EXPORTING
          window_title         = 'File location'
          file_filter          = cl_gui_frontend_services=>filetype_excel
          prompt_on_overwrite  = 'X'
        CHANGING
          filename             = v_file
          path                 = v_path
          fullpath             = v_fpath
          user_action          = v_useraction
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      CHECK sy-subrc EQ 0 AND v_useraction EQ 0.
      CREATE OBJECT v_excel 'EXCEL.APPLICATION'.
      SET PROPERTY OF v_excel 'VISIBLE' = 0.
      CALL METHOD OF v_excel 'WORKBOOKS' = v_workbooks.
      CALL METHOD OF v_workbooks 'ADD'.
      SET PROPERTY OF v_excel 'SHEETSINNEWWORKBOOK' = 1.
      CALL METHOD OF v_excel 'Worksheets' = v_sheet
        EXPORTING #1 = 1.
      CALL METHOD OF v_sheet 'Activate'.
      CLEAR v_subrc.
      CALL METHOD cl_gui_frontend_services=>clipboard_export
        IMPORTING
          data                 = it_excel[]
        CHANGING
          rc                   = v_subrc
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      CHECK v_subrc EQ 0.
      GET PROPERTY OF v_excel 'ACTIVESHEET' = v_sheet.
      CALL METHOD OF v_sheet 'PASTE' NO FLUSH.
      CALL METHOD OF v_sheet 'SAVEAS'
        EXPORTING #1 = v_fpath #2 = 1.
    When calling cl_gui_frontend_services=>clipboard_export method the variable v_subrc is equal to 0 and sy-subrc is equal to 1 and the EXCEL file is not saved.
    Can you please tell me, what am I doing wrong?
    Regards,
    Gregory
    Edited by: Gregory Mayorga on Sep 7, 2010 10:56 AM

  • Question regarding Polling data from database using DB Adapters in BPEL

    Hi,
    I have the following question regarding Polling data from database using DB Adapters in BPEL -
    If I am selecting data from multiple tables/view to ultimately generate hierarchical xml document, is there a way that I specify polling all of these tables/views. Is polling limited only to one table/view?
    Thanks
    Ravi

    Hi Ravi,
    your question seems to have been answered for the question of polling a set of tables with one as the root, and getting back a hierarchical xml representing multiple related tables.
    However you can also poll for changes to both the root table and its related tables. Not sure if this was your question or the one already answered. If the former please check out the sample
    bpel/samples/tutorials/122.DBAdapter/advanced/polling/PollingForChildUpdates
    Thanks
    Steve

  • Execution date in Excel export from a query

    Dear all,
    I am wondering if it is possible to have the query execution date in an exported excel.
    Case: When working in a query it should be possible to export the query to excel. However I am missing the execution date of the query and the last successful data load (which is visible in the webquery).
    Anyone has an idea how to achieve that?
    Thank you in advance,
    Andreas

    Hey Guys,
    Just wanted to point out that I know how to do this with a webapplication but I would need that within an excel export from an ordinary web query.
    Could someone help out here?
    Thanks in advance,
    Andreas

  • How to enhance the Excel export from Crystal Reports

    Hello,
    I am new in Crystal Reports and I wonder if it is possible to enhance the Excel export from Crystal Reports with post-processing that would be applied to the Excel exported file.
    By example, is it possible to freeze the window panes, so rows and columns are frozen in place on the screen?
    Is there any possibility to obtain the file exported to excel to work with.
    Or maybe there is some ways to parametrize the Excel export from Crystal Reports?
    Any suggestions are welcomed.

    If you are using Crystal Reports 2008 you can use the Report Application SDK that is now available.
    It has a object called PrintOutputController that has an export method that allows you to get access to the exported file before you send it to the user.
    Check the Developer library and the samples for details.
    <a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/robhorne</a>

  • Collapsed groupings in Excel export from FR

    I am at a client, they are doing variance reporting. Is there a way coming out that will allow groupings to be exported? For example, their report looks at Current forecast and prior year and then prior year variance. When they initially look at the report the prior year columns are hidden. What they are requesting is to export to excel with the prior year hidden columns collapsed.? Any ideas??
    Thanks!

    Hey Guys,
    Just wanted to point out that I know how to do this with a webapplication but I would need that within an excel export from an ordinary web query.
    Could someone help out here?
    Thanks in advance,
    Andreas

  • This question regarding sending mail from sap

    hi to all,
    this question regarding sending mail from sap
    rt now iam able to send mails from 500 clint, what r the setting i need to do send mails from my another client 700,
    iam using ecc 6.0 with sql database
    regards,
    krishna
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 16, 2010 2:11 PM

    hi to all,
    this question regarding sending mail from sap
    rt now iam able to send mails from 500 clint, what r the setting i need to do send mails from my another client 700,
    iam using ecc 6.0 with sql database
    regards,
    krishna
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 16, 2010 2:11 PM

  • How to Export from table view to Excel (not BI query)?

    There is a 'How to' document explaining how to export from an iView using a BI query:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123
    However:
    This 'How-To' document is using an example of a BEx query. I am not using a BEx query, therefore I do not have an "Info port". How can I download to Excel from a table view that is not an iView of a BI query? (It is just a internal table coming from a BAPI).

    keenneth,
    i am using the query from SQL server, i am having the same problem of not having info port. so did you find a work around for exporting to excel with filters for non sap queries ?
    any body who had come across this situation , plz guide me.
    thanks in advance
    ravi

  • How to freeze the columns in excel exported from SSRS report??

    We have created a report for our client. The client wants the report in excel format. As there are nearly about 30,000 rows in the excel. Client wants us to freeze the column header names in the excel so that even after scrolling down they
    will be able to see the column names.
    can anybody have idea how to achieve this in SSRS?

    Hi Shard,
    Thanks for your post, You can achive your requiremets by using the below logic. hope this will help you.
    Steps to achieve it
    1. Select the tabix and click on Tablix properties.
    2. In the General tab under Column Headers section you can see "Keep header visible while scrolling" checkbox, check it.
    3. Now the header row will be remain fixed in the report.
    OR
    1.    In the grouping pane, make sure to turn on advanced mode (click on the small black down arrow on the far right of the grouping pane) 
    2.  Select the corresponding (Static) item in the row group hierarchy
    3.  In the properties grid, set RepeatOnNewPage to true
    4. KeepwithGroup to After
    OR
    1)Freeze the header of all columns[ Freezing table header ] : To do select static member of table header row from  row groups [ Advanced Mode ] and set  FixedData to true
    2) Freeze the initial 2 columns : To do select static member of columns in column group and set fixedData to true .
    How do you freeze the tablix header row in an Excel export file in SSRS 2008
    Suhas Kudekar
    Mark as Answer if this resolves your problem or "Vote as Helpful" if you find it helpful.
    My Blog
    Follow @SuhasKudekar

  • Font Embedding Question in PDF exported from PageMaker v7

    I am having difficulty embedding the majority of my fonts in PDFs exported from PageMaker v7. When exporting to PDFs, a "cannot embed font" error is generated.
    Technical Details:
    The fonts I have are ALL LEGAL, and were purchased with complete licenses when required.
    The fonts properties show them to be completely embedable, with no restrictions in terms of installation, etc.
    The fonts can be placed and embedded in PDFs from all other programs I've attempted this with (Illustrator, Acrobat, MSWord, WordPerfect, etc.).
    Disclaimer:
    Yes, I know PageMaker is old, and yes, I am in the process of upgrading to Creative Sutie (although, as an aside, it is extremely disappointing that even a token discount is not offered to those who have purchased every Adobe and MacroMedia software package in the past, but I digress...). However, several of my clients require PageMaker files (for a variety of reasons I won't go into here).
    Thank you in advance for any advice on what might be the underlying problem.

    When generating PDF output from Pagemaker, I've used 2 methods:
    1. File>Export>PDF
    This method works fine for a limited number of fonts (AGaramond for example), which is why I started this post. Bob Levine had suggested using Distiller instead.
    2. File>Printer Styles>Acrobat
    I usually used this method when an offset printer requires crop marks, since the other method does not provide an option for crop marks.
    This opens a window with numerous options, the pertinent ones to my question are:
    Printer: New 2002 PPD for Adobe PS Driver on file
    PPD: Adobe PDF 3015.102
    Postscript: Download Fonts (3 options):
         None
         True Type and Type 1
         True Type Only
    When I choose download "True Type and Type 1", I get the same "cannot embed font" error if I use most of my fonts (with the exception of a few that work).
    When I choose NONE for the option, the PS file is generated without errors.
    Once the .ps file is generated, I then use Distiller 4 to open the file and output PDF file.
    If I used "True Type and Type 1" for download font option, and the font does not generate an error, the PDF file is fine.
    If I used "NONE" for download font option, when I open the PDF, it indicates that the fonts are embedded. However, since I do not download the font, I am nervous that this might cause problems when I go to an offset printer.
    I do not print to a file using a printer driver (for example Linotype, Acrobat, etc.). The 2 processes I've used seem to be independent of what the default printer is on the operating system (XP).
    Thanks!

  • Question regarding buying phone from Amazonwireless

    Hi, I have two questions regarding amazonwireless.
    I have a nationwide 700 family plan and my phone is eligible for an upgrade now.
    Amazonwireless has a good basic phone ( Samsung) that verizon don't have.  If I buy it from Amazon and extend contract for 2 more years, does this work? Will I be moved to new share all plan or keep my old family plan? Or is there a catch?
    My other question is the AmazonWireless Instant Discount Policy, if another line on my family plan upgrades to iphone in a few month ( when it's eligible for upgrade) and adds data plan ( we currently don't have any data plan), would this violate Amazon's policy since the contract is changed? I attached their policy below for reference.
    I know it's a long read, but thank you for helping!
    AmazonWireless Instant Discount Policy
    When you purchase your device with service from AmazonWireless.com, we automatically pass along an instant discount from the carrier to you.  This discount has been provided to you based on your agreement to (a) activate a new, or extend an existing, line of service for this device with the carrier, and (b) maintain this service in good standing for a minimum of 181 consecutive days.  If you do not activate or extend a line of service in connection with this device, or if your service is canceled/disconnected before 181 consecutive days, AmazonWireless.com will charge you $250 per device, plus applicable taxes.

    From the Amazon Wireless FAQ:
    I need a new phone, but my line isn't eligible for an upgrade. Another line in my family account is eligible. Can I get a new phone for my line by using the upgrade of the other line in my family account?
    While carriers may offer the option to swap upgrades between different lines on the same family account, this option isn't available through AmazonWireless. Phones purchased from AmazonWireless must remain on the line upgraded for 181 days. If you move the device to an alternate line within the first 181 days, you'd be subject toadditional charges by AmazonWireless of up to $250 (per phone), plus applicable taxes.

  • Could someone help with question about PNG export from Illustrator?

    I am having issues with PNG exports from Illustrator not opening up once exported.

    ANd exactly sorry, this is useless. You have not provided any details about your export settings, version of AI, system info, how you are trying to view and so on. Just saying that it doesn't work is simply not good enough.
    Mylenium

  • Export from Table

    Hello
    I just moved the spool to the file and then selected the rows. But this is very slow and the rows r not the way i would like to have them. Is there any function in PL/Sql to export a table to a file? Any examples available?
    Markus

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Bogdan Dincescu ([email protected]):
    There's the utl_file package on the server-side.
    Then, in forms, you may use the text_io package that works like utl_file, except it is on the client-side.
    Still, sqlplus seems the easiest way to do that, provided you give the right settings:
    set pagesize 0
    set linesize
    set feedback off
    set colsep
    Suit yourself.
    As for the performance, when using sqlplus or any other client-side tools, it may be slow due to the network traffic. <HR></BLOCKQUOTE>
    If you do it that way (your settings plus a 'select *' following), the output file will have right padded spaces in the fields. Problem w/that is if you want to sqlldr the data back into Oracle, you'll have to specify NULLIF field=blanks. Big PITA. Is there a set options to get rid of the excess spacing or do you have to resort to a much more tedious concatenation method involving rtrims?
    null

  • Unable to perform Calculations on Excel exported from Web Dynpro ABAP

    Hi Gurus,
    I have a custom functionality "Export to Excel" internal table data on my web dynpro application. I dint go with standard ALV feature because it doesnot give flexibility to add colours to excel sheet and add multiple tabs and so i had to write XML ABAP coding in the web dynpro application to achieve this. While passing the internal table data into cells, i created cells with string data type and hence all the fields in the excel are now in char type. Users are unable to perform any calculations because of this issue, i tried to format the cells but it doesnot work. Please help me.
    Regards,
    Pravs.

    Hi,
    Just do the following in excel before downloading and check whether it works.
    Tools->Options->International tab.
    In that mention decimal separator as ,(comma).
    Thousand separator as .(dot).
    Uncheck use system separators.

Maybe you are looking for