ALV: Problem in exporting to excel with too many columns

Hi,
While exporting from ALV report to excel following issue was faced:
ALV report contains 81 columns out of which 67 columns are displayed properly but from 68th column onwards data is dispalyed on next row
I want all columns displayed on single row..
Any help will greatly appreciated..
Thanks,
Deepak

Hi Deepak,
I was browsing through these threads to find anwer for the same issue.
So thought of putting my analysis which helped me resolve my problem.
Analysis/Solution:
When we export ALV data to excel worksheet, as sap notes say the maximum lenght allowed is 1023 charaters and the max no of columns supported is 90.
(I never faced any issue related to no of columns as it worked fine for columns >90 too)
Issue occured when row size of exported data gets more than 1023 character.
Therefore the row data must not exceed 1023 character, otherwise column splits and moves to next row.
One additional aspect generally missed is that:
When data in any particular column changes it's length, alv header also changes its lengh (short text, medium text, long text; depending on the length of of the longest cell in the column)
therefore even if you have total length of row less than 1023 character, there might be cases when your ALV header size exceeds this length.
Hopefully it will be helpful for you too.
Regards,
Parveen

Similar Messages

  • Split row in two rows (Table with too many columns)

    Hello,
    I have a small problem. I have a table with several columns. As all the columns do not fit with the correct width, the format is very ugly. Since leaving all data in a row is very small, I like to cut a line into two, namely:
    - For example if I have a table with 10 columns, I would leave in the first row 7 columns (for that look good data) and the next row only the remaining 3 columns. Thus each row of the original table, occupy two rows on the form.
    Thank you very much beforehand

    hello
    thanks for the reply, will be very helpful.
    Regarding links to examples, I do not relate to this problem, these are not correct, you must have confused the link.
    thanks!

  • Tabular form: too many columns

    What can I do with too many columns in a tabular form? I tried modifying the report template behind and put </tr><tr> inside column template, but I'm unable to find current's loop column number. This would work if after every 3rd column in a report I could do the </tr><tr> thing.
    Substitution string #COLNUM# doesn't work in this particular template field.

    Hi "prpi",
    What do you want to achieve? Have less columns?
    Or see them on the next row?
    You can use javascript to show/hide columns. Have a look here: http://htmldb.oracle.com/pls/otn/f?p=11933:46:7060485099466175
    Hope that helps,
    Dimitri
    -- http://dgielis.blogspot.com

  • Export to excel with formatting was autowrapping text in a cell

    Export to excel with formatting was autowrapping text in a cell without having to check the can grow option.  When the can grow option is checked it does wrap the text however it spans multiple rows, which causes complications when trying to sort. 
    It worked in:
    ProductVersion=10.0.0.533
    ProductName=Crystal Enterprise 10 Embedded
    Doesnt work in:
    Crystal Reports 10.0 Service Pack 6
    After the upgrade the reports did not autowrap, b/c the "can grow" option was not checked.  I believe this was fixed by "ADAPT00305137 Patch ID: 36479914
    Description:
    When users export to Excel 97-2000 with the page-based format, text fields are wrapped, even when the "can grow" feature in the
    Designer is turned off." .   After we turn the option to grow on it does wrap however it spans across multiple rows.  So I guess my question is there a way for it not to span multiple rows when wrapping text?
    Edited by: dforde on Jan 27, 2010 11:12 PM

    I could be wrong, but I believe the export to excel option exports the database values, and the export to HTML exports the values seen in the sheets. If the database values are stored as seconds, the Excel will see them as seconds, and the data will have to be formatted properly in Excel.
    I haven't toyed around with Excel exports that much, but it might be possible to set up a template or macro in excel that would have the proper formatting, and use it when opening the Disco export.

  • Export to Excel with Filter values

    I have implemented Prakash Darji's Exporting tips.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123
    But it very important for us to only allow the user to only export the data which is available on the table currently, basically export to excel WITH filters and not everything which is in the infoprovider.
    does anyone have a way of achieveing this?
    i was thinking of maybe somehow passing filter values in the PCD url
    Something like this?  would this work.....
    pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex.QUERY=ZTESTQUERY&FILTER_IOBJNM=0CALDAY&FILTER_VALUE='01012009'&BI_COMMAND_1BI_COMMAND_TYPE=EXPORT&BI_COMMAND_1-EXPORT_FORMAT=XLS&BI_COMMAND_1-null=

    Hi Apeksha,
    you can achieve this requirement (unless I do not know the detailled requirement) perhaps by using this way of implementation:
    1. Create a new template which contains an info_field which does a data binding to the variable values or the characteristic you want to display. Set the visibility of the top container to "hidden". Add a empty data provider to this template. However be aware that the name for the (empty) data provider must match the name of the data provider within the original template you want to print.
    2. Open your original template and include the template you created in step 1 (Advanced: Web Templates and technical name of the web template created in step 2). Choose the appropriate location (above/below the analysis item).
    3. Check the settings of your export command: do not set a special web item to be printed.
    If you export the template within web the second template should be printed correctly displaying the variable settings chosen in step 2 for the info_field.
    Brgds,
    Marcel

  • I have been blocked from my own ITunes songs because my apple ID associated with too many devices

    I cannot access songs from my own iTunes Apple ID because it says my iPhone has been associated with too many devices.  I have to wait 90 days to access my own songs on my iPhone.  Here is what happend:
    1-Our family moved.  So, with the address change, the credit cards on all of the apple ID's would no longer work because the other users had our old address. (I have 4 users in the family).
    2-My family started calling me while I was out of town complaining that purchases were rejected.  This was because our address had changed and it no longer matched. 
    3-I tried to walk them thru the process of changing the home address on the credit card, but they couldn't do it.  They assured me that they were doing it correctly and were still rejected.
    4-So, being the techie of the family, I simply logged into each of their iTunes accounts from my iPhone while I was out of town and made the address change.  While I was in their  accounts, I noticed they didn't have automatic downloads and iTunes match and stuff.  So, I changed it so it would work for them when they logged back in.
    5-I go back to log into my own account on my iphone and I cannot access my own songs on the iTunes cloud for 90 days!!!!  This is quite disappointing.
    How can I get this corrected?   I tried to reset user settings (not a erase and reset).  I figure it's not my phone, but my iTunes account thinks I'm doing something sharing-wise.
    So, in summary, when I am on my iPhone and I go to my iTunes library and click on a song (that I have paid for) with the cloud and down arrow beside it, it's rejected.  It says that I have too many apple id's associated with this device and I must wait 90 days.  It counts down each day.
    I just want access to the music I paid FOR!!

    Thank you-I will contact support.
    No, I cannot wait 90 days.
    Let me restate what I have to endure, even though I own the music and have paid for iTunes Match:
    I cannot access my purchases-zero-at all
    I have to listen to never ending McDonald's latte commercials and progressive insurance. I have now banned both of those annoying businesses and will not make purchases there.
    In summary, I have given apple my minded, and have zero to show for it.
    Ps-you get to hear the McDonald's "love hate commercial" every 2 songs on iTunes Radio.  I have substituted the words where I hate McDonald's and love when the commercial is over.

  • After my friend locked me out of my iPhone with too many wrong passwords I restored my iPhone and now it is showing that picture of a cable leading towards itunes and itunes says the sim is not supported but it is the original sim. How do I fix this?

    After my friend locked me out of my iPhone with too many wrong password attempts I restored my iPhone via recovery mode and now it is showing that picture of a cable leading towards itunes, and itunes says the sim is not supported but it is the original sim. How do I fix this?

    Something went wrong with the update, this can and does happen with every version of iOS.
    There is nothing wrong with the update.
    Simply restore the device via iTunes on the computer.
    If iTunes is stating it will take hours to update, that indicates an extremely slow Internet connection and is likely the reason the OTA update failed.

  • Tablespace with too many extents are evil for performance

    I think the tablespace with too many extents are not bad for performance after introduction of LMT tablespace?? May be true with DMT tablespace(earlier versions). This is just observation after reading the LMT vs DMT tablespaces.
    Experts - Please comment on your thoughts.

    Indeed, I work in an environment where there is over 50 databases to be administered and so we have lots of DBAs interacting with each other.
    I'm stunned by this myth of "reorganization". Most of the DBAs move tables + rebuild indexes regularly generating huge redo  on a monthly basis. Also provoking indexes to do all the splits again generating even more redo. They claim "it helps performance a lot" however not one is able to quantify and quite justify it other than "less extents less I/O, good". Even when I bring up the existence of shrink they say "do not like it, prefer the classic move". People really have a way of holding on to their good ol' practices of Oracle 8i.
    For full table scans (which should never be done on a OLTP scenario) this extent issue would be relevant IF data on the table is the victim of large deles and Oracle hasn't re-used that space yet. If your multiblock reads is a multiple of your extent size, than there won't be any overhead of I/O call, no matter the number of your extents. For OLTP this is not relevant because Oracle will access the table via ROWID.
    I rarely have ever seen an index benefit from a rebuild significantly. In my experience what people often understand as "index fragmentation" is often just an unoptimized execution plan due to cardinality issues where oracle ends up fetching a large percentage of the table via single reads on that index.

  • Your request cannot be completed because your Apple ID has been associated with too many credit cards.what is that mean please tell Apple

    Please help me I don't know what is this mean : Your request cannot be completed because your Apple ID has been associated with too many credit cards.
    And you tell me what to do?

    New one to me, you might try contacting Apple through iTunes Store Support

  • Too many columns for Custom report

    Hi,
    I'm building a custom XML Publishe report, the O/P will be in excel format.
    Problem is that i have too many columns...around 30 which are extracted to excel sheet.
    How should i create RTF file with these many columns?
    Any suggestion?
    Database:10g
    Thanks.

    Hi,
    try the Oracle BI Publisher forum (BI Publisher as you are using XML Publisher.
    Regards, Roberto

  • Too many columns to be shown in the Enterprise Manager 11g?

    Hello,
    we are having some problems with the Enterprise Manager 11g. When we want to VIEW DATA of a specific table, we get this exception. We think that our table has too many columns to be displayed. If we delete some of the columns, the data is shown in the enterprise manager. But this cannot be a solution for us. Can you help us with this point?
    2009-08-03 10:07:04,210 [EMUI_10_07_04_/console/database/schema/displayContents] ERROR svlt.PageHandler handleRequest.639 - java.lang.ArrayIndexOutOfBoundsException: -128
    java.lang.ArrayIndexOutOfBoundsException: -128
         at oracle.sysman.emo.adm.DBObjectsMCWInfo.getSqlTimestampIndexes(DBObjectsMCWInfo.java:194)
         at oracle.sysman.emo.adm.schema.TableViewDataBrowsingDataSource.executeQuery(TableViewDataBrowsingDataSource.java:167)
         at oracle.sysman.emo.adm.DatabaseObjectsDataSource.populate(DatabaseObjectsDataSource.java:201)
         at oracle.sysman.emo.adm.DatabaseObjectsDataSource.populate(DatabaseObjectsDataSource.java:151)
         at oracle.sysman.emo.adm.schema.DisplayContentsObject.populate(DisplayContentsObject.java:369)
         at oracle.sysman.db.adm.schm.DisplayContentsController.onDisplayAllRows(DisplayContentsController.java:303)
         at oracle.sysman.db.adm.schm.DisplayContentsController.onDisplayContents(DisplayContentsController.java:290)
         at oracle.sysman.db.adm.schm.DisplayContentsController.onEvent(DisplayContentsController.java:136)
         at oracle.sysman.db.adm.DBController.handleEvent(DBController.java:3431)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:577)
         at oracle.sysman.db.adm.RootController.handleRequest(RootController.java:205)
         at oracle.sysman.db.adm.DBControllerResolver.handleRequest(DBControllerResolver.java:121)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:781)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:337)
         at oracle.sysman.eml.app.Console.doGet(Console.java:318)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:109)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:153)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.sysman.eml.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:122)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:102)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:336)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)When we select the table via SQL, everything works fine.

    Hi,
    I'm Galit from the QE team of VIN.
    All the things that you've described are correct.
    It is actually an edge case where the only VM, that the manual App can be managed from its Map view, was removed from the App.
    The Manual App management is as designed, and may be changed in the future.
    There are 2 ways to overcome this situation:
    1.You can, as you stated, create another Manual App with similar name and remain with the "Zombie App".
    2. To run a specific command that will remove the Zombie App from the DB.
    Please note that option no. 2 involves using an API that we do not publish.
    If you would like to use option no. 2 contact me in private and we will see about supplying the relevant commands to run in order to delete the "zombie" application.
    Thanks,
    Galit Gutman

  • Unable to load the following resource: Error: too many columns- form won't

    Hi ..
    Can you please suggest on the following error, which i am facing the issue while opening data form in Hyperion Planning 11.1.1.4 .
    Unable to load the following resource: Error: too many columns- form won't
    Regards,
    Vasu

    It is something around 256 if I am not mistaken, I dread to think what a form with 700 columns is like to work with.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • ALV TO EXCEL PROBLEM? ( 90 COLUMNS ALV CAN'T EXPORT TO EXCEL NORMALLY)

    HI ABAPERS,
    anyone have a alv that have over 90 columns and want to export to excel have experienced abnormal formating (like the header row show only up to 60 column and the rest show up in next row) and the data show in separate line.
    anyway can have a better format?
    also after 90 columns show up on alv, it can't show anymore except modify the layout in run time.
    can we do something before that?
    thanks & regards,
    HOWARD

    Hi HOWARD,
    My Report ouput having more than 90 columns in ALV, while downloading data from ALV to Excel sheet am facing alignment problem. (ie) the output column > 66 are appearing in next line of the excel sheet leads to improper alignment.
    Pls give me a solution as u had already come across this issue..
    Thank & Regards,
    Paramesh.

  • Export to excel with javascript/vbscript or with plsql(html table)

    i have searched for a way to export data from OracleXe to excel without losing formatting .
    So far i have found 2 possible relatively easy ways that i am still researching
    (i do not include the ask tom sylk format way of exporting )
    1 to export the query to a html table, while using stylesheets for formatting
    (using microsoft specific styles)
    2. use of javascript/vbscript to fill an array and write this array to excel with use
    of visual basic for applications in excel.This also provides charting capabilities.
    I am still researching this two ways, and have
    encountered a few obstacles (help would be appreciated)
    1 the first way:
    a. create a button " export to excel"
    b. create the following pl/sql procedure:
    owa_util.mime_header('application/vnd.ms-excel');
    owa_util.http_header_close;
      HTP.PRINT('<html>');
      HTP.PRINT('<head>');
      HTP.PRINT('<meta http-equiv="Content-Type" content="text/html">');
      HTP.PRINT('<title>Title of the HTML File</title>');
      HTP.PRINT('</head>');
      HTP.PRINT('<body TEXT="#000000" BGCOLOR="#FFFFFF">');
      HTP.PRINT('<h1>Heading in the HTML File</h1>');
      HTP.PRINT('<p>Some text in the HTML file.');
      HTP.PRINT('</body>');
      HTP.PRINT('</html>');
    htmldb_application.g_page_text_generated := true;
    htmldb_application.g_unrecoverable_error := true;
    c: run the procedure conditionally based on the button  "export to excel"
    the problem with this way is that using htmldb_application.g_unrecoverable_error := true; is not the ideal way, because it
    stops further processing, but if i leave it out, the export doesn't happen.
    To export to excel while retaining data formatting  you have to use microsoft excel
    specific styles(Seedocumentation on the microsoft site)
    2.The second way:
    a create a pl/sql procedure or sql query.
    b use this query to fill a vbscript/javascript array with values
    c write these values to excel with use of vba in excel :
    the obstacle i encountered here was that i dont know how to export the result of a
    query to a visual basic script or javascript array.

    Using approach 1) works fine for me.
    the problem with this way is that using htmldb_application.g_unrecoverable_error := true;
    is not the ideal way, because it
    stops further processing, but if i leave it out, the export doesn't happen. Why is this a problem?
    I created the button to export the excel file on page 1 and created your pl/sql procedure on page 2 using an onload process.
    Works fine.
    Other approaches for exporting to excel are:
    http://www.oracle.com/technology/pub/articles/saternos_broadcast.html
    http://htmldb.oracle.com/pls/otn/f?p=18326:54:5685133631021176591::::P54_ID:1962
    ~Dietmar.

  • Hyperion IR 11 -Export to Excel with formatting

    Hi,
    we have problem in exporting pivot sections to excel with the format intact.
    Is there really an option in Hyperion IR 11, to use this as such?
    I have a script that creates excel, by creating a MHTML And converting it to excel.
    But I need to know other options as well.
    Thanks in advance.

    Hi~
    I get the same question.
    I export pivot sections to excel with the format intact, but it did not work.
    When export pivot sections to excel can not with the format intact
    My script below:
    ActiveDocument.Sections["sectionname"].Export('C:\\test.xls',bqExportFormatOfficeMHTML,true,true);
    What is it wrong? Thanks~

Maybe you are looking for

  • Is docking station compatible for T400 and T520?

    Since 2 years I am working on a T400 laptop with a Lenovo ThinkPad Advanced Mini Dock for Z,T & R 60 Series. I am thinking of buying a T520 laptop and would like to know if this docking station is compatible? The shop says it is not, and I have to bu

  • I cannot control volume using keypad or computer can anyone help me?

    Could anyone help me with my problem of not being able to control the volume using the key pad or the computer?

  • Error in 10.5.6 installation

    I downloaded 10.5.6 by using apple/software update. The 190 MB file got downloaded but did not get installed. A error message indicating error in package popped out. Subsequently when I click apple/software update, it directly goes into restart optio

  • I have to render every time i move a clip!

    i am a musician and im trying to use fcp to edit my videos to match my final product with my mp3 final project audio from garage band. i recorded in photobooth and recorded at the same time as garage band using my condenser mic for better audio. i ch

  • Smartform - Event on Sort End

    Hi frnds, i am sending the internal table of PO's list from driver prog to smartforms. here smartform is displaying all the PO's in one lay out. i need each PO should come separately. means....when new PO start it should start in new page(first). for