Excel export & Layout feature for UI element table

Hello,
  I have a requirement to implement Excel export and saving of user layout in webdynpro table. I am not using ALV table but table UI element. Please let me know how I can implement the same.
Regards
Nilanjan

Let say you have button at table toolbar to export table data into excel. On click of this button you want to perform export:
you need to convert the content of context node bounded to table into an xstring to be used for export to an external file.
use following steps to convert your context node data into XSTRING
1. Get reference to the wd table displaying the data
2. Create header row for export
3. Get columns of table
4. Create export row with field names for excel header row
5. Collect export attribute names
6. Get your context node data
7. Build your export string such that value of attributes in each line are separated by horizontal tab i.e. %_HORIZONTAL_TAB and all lines are separated by newline i.e. %_NEWLINE
8. Once your export string is ready convert it into xstring using FM:
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    EXPORTING
      text   = lv_export_str
    IMPORTING
      buffer = xstring.
9. Once XString is ready, use following method to export into yur file type:
CALL METHOD cl_wd_runtime_services=>attach_file_to_response(
       I_FILENAME = 'exporttabledata.xls'
      I_CONTENT =  lv_xstring
      I_MIME_TYPE = 'EXCEL' ).

Similar Messages

  • Drag and Drop Layout feature for regions

    Wondering if there is a drag and drop layout feature for regions in 3.1.2 (or below that I might have missed) or if there are plans for it in future releases. I know that this feature is available for items in a region but interested for the many regions I have on a page. I think it would be a nice feature to have instead of having to go into a page template to get the layout I want.
    Thoughts?
    Thanks,
    Russ

    Look at the following link:
    Drag and drop - like the builder?

  • Excel export in analysis for olap not working

    Hello!
    I want to export from analysis for olap 1.1 to an excel file.
    First I clicked on the export button, then I chose the wanted compontents and clicked ok.
    But there happens nothting, but a new browser window opens and closes itself immediately.
    Neither a dialog opens and asks where I want to save this excel, nore I found a related excel-file in my system.
    Any ideas on this problem?
    Regards,
    Kathi

    Hi Kathi,
    finally we solved the porblem. i guess you are working with IE 8.0?
    *if so, add the BO-Server (http://server.com) to your lokal intranet sites (inside the IE 8.0).
    *also check document mode in IE 8.0 is set to Quirks Mode (under ''Tool/Developer Tool'') when opening the analyis olap report
    then it should work.
    regards
    Tom

  • Disable log-in feature for Photoshop Elements 12

    I really do not want to be connected to Adobe in any way, shape or form while using their product.
    I detest and loathe this company.  The day another company produces a way to do accurate frequency seperation for retouching, I will be gone for good.
    I wish to register and activate my copy of PSE 12 one time: I do not wish to remain signed in to continue using my app, this feels like rape.
    I am not sure if I could do a silent install and disable the feature?  I bought this off of Amazon and did not realize what this sleaze ball company had changed.  I am in contact with Amazon about getting my money back but they suggested first to contact Adobe and see if there is simply a way to register and activate the software the traditional way, before Adobe started raping and molesting their customers.
    Chat reps did not help and said that this was a good thing and the customers requested it.  THis is BS.
    Here are links showing possible solutions.  If this company has anyone who is actually human working for it, please help.
    https://exception.licenses.adobe.com/aoes/aoes/v1/t1?locale=en

    Hi,
    Sorry to hear about the problem and the experince.
    Offline activation is one of the way you can use to activate your program if you are not connected to the internet.
    Else you can try the silent installation method mentioned in the below article,
    http://helpx.adobe.com/photoshop-elements/kb/photoshop-element-12-silent-install.html
    Let me know if you need any further help.
    -Harshit yadav

  • Export using TOAD for a nested table?

    I am trying to export a nested table via TOAD, however, the fields which are part of nested data (dataset) does not export.
    Any suggestions on an alternative solution?
    Thanks.
    Jaffee

      idx := tab.next (idx);

  • Excel exporting text error for chinese language

    Hi
    I am getting wrong text in the excel when i download the result list of opportunities in chinese login.
    Regards,
    Vijay

    Hi All,
    My issue is solved by implementing the notes 1139917 and 1287717.
    Please make sure to set user parameter
    CRM_CSV_EXPORT_SEPLN to X.
    Regards,
    Vijay Duvvada

  • Excel export are merging cells for data on multiple lines !

    Hello,
    I'm using Crystal Report XI R2, when we are doing an export to Excel with have an unexpected formatting.
    For example the value of the name is on 2 lines:
    => So, on Excel the result is on 2 lines but merged. We want to have this result only on one cells.
    Remark: if we delete the 2nd lines, because cells are merged we obtain the expected result.
    Proposal A:
    Are they any set-up available concerning the formatting of Excel ?
    Proposal B:
    Could we run some VBA when we click on Export button to make queries on the Excel ?

    When they introduced Unicode support in Crystal 9 (I believe), they had to completely re-write the export routines. At that time, they made a decision to change the functionality of the excel export. Crystal is attempting to remain absolutely faithful to the graphical layout of the report as you see it in the viewer. So it creates merged cell sections, empty columns between columns, and empty rows to give you as close to exactly what you see in the viewer as possible. Unfortunately, the result is typically less than useful. Iu2019ve had several conversations with Business Objects (now SAP) with regards to this when they changed it between versions 8.5 and 10, and they have no intention of changing the functionality as it now exists.
    There is a document which is now likely somewhere on the SAP portal that explains what you need to do to obtain the best results when exporting to excel.
    The jist of it is this:
    Line up all of the columns detail data with thier headers, and make sure that data fields are the same size as thier headers. 
    Line up all rows (headers and detail rows). (ie: select everything in the row, right click, align tops, and make the same height)
    cram everything as close together as possible. zero space in the report translates to zero extra collumns and rows in the export.
    the other option is to use the export to data only functionality, but that may not be what you're looking for either.

  • FR Report Print Layout Setup for Excel

    Hello All,
    Is there any way to setup the Page Layout for Excel export of the report.The user will export the report from HTML view on Workspace to Excel from File Menu options.After viewing the report in excel the user should be able to directly print the report without setting the page size and all.
    The Page Set Up option seems to be working for PDF but not in excel.
    REgards
    AG

    Hi AG,
    As far as I know, this option is limited to pdf view. It could a nice enhancements in the upcoming versions as I've heard this request many times from various clients.
    Cheers,
    Mehmet

  • Is any different between ECC 5.0 and ECC 6.0 for Excel export?

    Dear all,
    As you know, most standard SAP report allow Excel export. I just wonder is any different between ECC 5.0 and ECC 6.0 for excel report in standard SAP reports?
    In ECC 5.0, Reports in profit center accounting, LIS, or PA, etc. has their own different way to export to excel and is any improvement in ECC 6.0? I Thanks.

    In ECC 5.0, a lot of reports don't have Excel export function instead user has to go to system -> List -> Save -> Local file -> spreadsheet.
    I just wonder is any improvement in ECC 6.0? just like LIS report, user can select export -> Transfer XXL to either pivot table or just plain excel but the function only exist in certain reports in some modules and not all.
    Thanks again.

  • 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

  • When trying to export to Excel the tool hangs for 10-15 min. (1.5.1.54.40)

    When trying to export a result set after a query the tool hangs for 10-15 minutes. This is regardless of the export fileformat; xls, html etc. It seems like the problem is related to the complexity of the query: Low-cost query=export OK, High-cost query=Export Not OK (even though the number of returned records is low)
    Exporting to any fileformat from a tables data-tab is OK, the problem occurs only in combination with a query that has been ran in a Worksheet.
    Will be greatful for any hint!
    SQL Developer: 1.5.1.54.40
    Java: 1.5.0_06
    Client OS: XP Prof 5.1.2600 SP 3
    Database: 9.2.0.5.0

    Hi,
    If you are using SQL Dev 1.5.1, you can include the column header by using
    CTRL + Shift + C (instead of CTRL + C), and paste it to Excel.
    I got this info from other forum, sorry I couldn't find which one.
    Don't use the Edit - Copy Path menu, even it uses the same shortcut.
    Regards,
    Buntoro

  • Layout of excel exports look like #+% !!!

    Hi everyone,
    i want to create an agent session, which sends excel exports via mail. This is working, but ...
    - the layout isn't useable !
    - it seems to haven't any kind of format.
    --> Is there a possibility of customisation? That's really important ...
    -> And maybe as an extra, to assign the layout for the particular exports directly in the reports.
    krgds and thank you very much,
    Alex

    Bug #13329672 and #12982020 by chance?
    No fix as of yet.

  • SQL Server 2012 Management Studio:In the Database, how to print out or export the old 3 dbo Tables that were created manually and they have a relationship for 1 Parent table and 2 Child tables?How to handle this relationship in creating a new XML Schema?

    Hi all,
    Long time ago, I manually created a Database (APGriMMRP) and 3 Tables (dbo.Table_1_XYcoordinates, dbo.Table_2_Soil, and dbo.Table_3_Water) in my SQL Server 2012 Management Studio (SSMS2012). The dbo.Table_1_XYcoordinates has the following columns: file_id,
    Pt_ID, X, Y, Z, sample_id, Boring. The dbo.Table_2_Soil has the following columns: Boring, sample_date, sample_id, Unit, Arsenic, Chromium, Lead. The dbo.Table_3_Water has the following columns: Boring, sample_date, sample_id, Unit, Benzene, Ethylbenzene,
    Pyrene. The dbo.Table_1_XYcoordinates is a Parent Table. The dbo.Table_2_Soil and the dbo.Table_3_Water are 2 Child Tables. The sample_id is key link for the relationship between the Parent Table and the Child Tables.
    Problem #1) How can I print out or export these 3 dbo Tables?
    Problem #2) If I right-click on the dbo Table, I see "Start PowerShell" and click on it. I get the following error messages: Warning: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. 
    --> Failed to retrieve data for this request. --> Invalid class.  Warning: Could not obtain SQL Server Service information. An attemp to connect to WMI on 'NAB-WK-02657306' failed with the following error: An exception occurred in SMO while trying
    to manage a service. --> Failed to retrieve data for this request. --> Invalid class.  .... PS SQLSERVER:\SQL\NAB-WK-02657306\SQLEXPRESS\Databases\APGriMMRP\Table_1_XYcoordinates>   What causes this set of error messages? How can
    I get this problem fixed in my PC that is an end user of the Windows 7 LAN System? Note: I don't have the regular version of Microsoft Visual Studio 2012 in my PC. I just have the Microsoft 2012 Shell (Integrated) program in my PC.
    Problem #3: I plan to create an XML Schema Collection in the "APGriMMRP" database for the Parent Table and the Child Tables. How can I handle the relationship between the Parent Table and the Child Table in the XML Schema Collection?
    Problem #4: I plan to extract some results/data from the Parent Table and the Child Table by using XQuery. What kind of JOIN (Left or Right JOIN) should I use in the XQuerying?
    Please kindly help, answer my questions, and advise me how to resolve these 4 problems.
    Thanks in advance,
    Scott Chang    

    In the future, I would recommend you to post your questions one by one, and to the appropriate forum. Of your questions it is really only #3 that fits into this forum. (And that is the one I will not answer, because I have worked very little with XSD.)
    1) Not sure what you mean with "print" or "export", but when you right-click a database, you can select Tasks from the context menu and in this submenu you find "Export data".
    2) I don't know why you get that error, but any particular reason you want to run PowerShell?
    4) If you have tables, you query them with SQL, not XQuery. XQuery is when you query XML documents, but left and right joins are SQL things. There are no joins in XQuery.
    As for left/right join, notice that these two are equivalent:
    SELECT ...
    FROM   a LEFT JOIN b ON a.col = b.col
    SELECT ...
    FROM   b RIGHT JOIN a ON a.col = b.col
    But please never use RIGHT JOIN - it gives me a headache!
    There is nothing that says that you should use any of the other. In fact, if you are returning rows from parent and child, I would expect an inner join, unless you want to cater for parents without children.
    Here is an example where you can study the different join types and how they behave:
    CREATE TABLE apple (a int         NOT NULL PRIMARY KEY,
                        b varchar(23) NOT NULL)
    INSERT apple(a, b)
       VALUES(1, 'Granny Smith'),
             (2, 'Gloster'),
             (4, 'Ingrid-Marie'),
             (5, 'Milenga')
    CREATE TABLE orange(c int        NOT NULL PRIMARY KEY,
                        d varchar(23) NOT NULL)
    INSERT orange(c, d)
       VALUES(1, 'Agent'),
             (3, 'Netherlands'),
             (4, 'Revolution')
    SELECT a, b, c, d
    FROM   apple
    CROSS  JOIN orange
    SELECT a, b, c, d
    FROM   apple
    INNER  JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    LEFT   OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    RIGHT  OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    FULL OUTER JOIN orange ON apple.a = orange.c
    go
    DROP TABLE apple, orange
    Erland Sommarskog, SQL Server MVP, [email protected]

  • I need a table of the different features for Adobe Standard 9, 10 and 11?

    I need a table of the different features for Adobe Standard 9, 10 and 11 so that can advise my client which version can be packaed and deployed via SCCM. A detailed list of features for each version would be most useful.
    Regards Paul Jenkins

    See the following documents:
    Acrobat Standard 9, X and XI : http://www.adobe.com/products/acrobatstandard/buying-guide-version-comparison.html
    Acrobat Pro 9, X and XI : http://www.adobe.com/products/acrobatpro/buying-guide-version-comparison.html
    Back to version 7 : http://prodesigntools.com/version-comparison-differences-between-adobe-acrobat-x-10-9-8-7. html

  • Incremental import / export in oracle -- for a table

    Hi all,
    I got dump which has data for all the tables for a particular user as below
    user= xx
    dumps has the following tables
    table1
    table2
    table3.....
    Now i want to import on a daily basis, only the new data of table2 into different database db2.
    How to do this?
    eg. on day1 the table2 has (----when i import the table2 into the different data all the 3 will go(x,y,z))
    name age
    z 20
    y 22
    x 20
    on day2 the table2 has
    name age
    z 20
    y 22
    x 20
    a 25
    when import here only the record 'a 25' of table2 has to be appended to the other database db2
    Thnks and regards
    S. Djeanthi

    Incremental Imports are no longer supported.
    You could use fast refreshable materialized views if you can use a db-link.
    Do you know Oracle Streams ?
    Just ideas.
    But probably you will be stuck with traditional table exports.
    Regards
    Laurent

Maybe you are looking for

  • How to insert Method in ABAP code

    Hi Gurus, Plz tell me how to insert a METHOD in ABAP code as we do in the case of inserting function in ABAP code using PATTERN.Button Rgds rajesh

  • The offset in the file is too big"? Other than, hey it's FAT formatted, etcetera!

    Does anyone have an answer for "The offset in the file is too big" error while creating a file using QT API "writeToFile"? I mean something other it's FAT formatted, not enough space, et cetera. Anyone?

  • IDOCS types in R/3 system

    Hi ,    can you please let me know how many types of IDOCS are there in R/3 system. Thnx Andy

  • Scheduling Agreements configuration steps required Plz !

    Dear Sapients, I request you all to help me in providing the configuration steps for Scheduling Agreements and relevant Schedule lines configuration. Its urgent please help me !! Regards, Sreedhar.

  • Mac Mini -- OS X Server

    So I'm setting up a little webserver... I bought a mac mini and I know it comes with Apache etc... Do you all think it would be beneficial to buy OSX server for it? If so, what would it offer that is different from bare bones tiger? (I suppose there