ECC6: export ALV to 'Excel (in MHTML format)

We have just upgraded to ECC6. When I try to export ALV to 'Excel (in MHTML format) I get a runtime error (GETWA_NOT_ASSIGNED). My list has 2 quantity fields. Tracing the error in the dump, i notice there is failure when processing quantity fields when the following SAP Standard method is called.
   >173      when if_salv_bs_c_data=>reffieldtype_quan.                 
   >174 *... get iso value for quantity value                              
   >           call method cl_alv_xslt_transform=>get_isonum_from_intnum
   >176             exporting                                              
   >177               i_value    = <l_data>                                
   >178               i_unit     = <l_reference>                           
   >179               i_decimals = ls_attribute-s_dfies-decimals           
   >180             importing                                              
   >181               e_value    = l_isovalue.    
I have tried a few tricks with the FIELDCATALOG function without success. Does anyone know how I can overcome this.
Regards.

Hi.
The quantity fields are coming from a table structure. I have tried making then character in the fieldcatalogue function but the runtime error was not eliminated.
Regards.

Similar Messages

  • Send/export the background job spool in Excel (in MHTML format) in ECC 6.0.

    Hello All,
    I have a requirement to send/export the background job spool in Excel (in MHTML format) in ECC 6.0. Please help.
    Thank you.
    Nalini

    Hi Jigar,
    Thanks for your response.
    Anything is like download to desktop or email is fine. But in MHTML format.
    We can download the ALV report in MHTML spreadsheet format when we run the program online. But the program is running for long time and going to dump.
    So i scheduled it as background job and downloading the output in  .HTML format. But user wants the spool/report output in .MHTML spreadsheet format.
    I can write the code. Instead of changing the existing program I would like to know is there any way (from standard SAP) that I can get the background spool in MHTML spreadsheet format.
    Thanks,
    Nalini

  • Error while exporting ALV to excel?

    Hi Gurus,
    I'm stuck at a weird error.
    For a particular Z report, when I'm exporting ALV report through Menu List->Export->Spreadsheet, and then selecting "Star Office 8 Calc / OpenOffice.orf 2.0 Calc", what is happening is that, sometimes the ALV downloads, sometimes it gives a dump (INTERNAL_ERROR, i've attached the short dump) and sometimes it gives an error while opening the downloaded excel.
    This error comes in OpenOffice, but I'm also unable to open the file in MS Excel.
    I'm using  REUSE_ALV_FIELDCATALOG_MERGE for preparing fieldcatalog. Earlier the fieldcatalog was prepared manually, but still the error was coming.
    Any suggestions please?
    Thanks!
    Bhuvan Paliwal

    Hello Bhuvan.
    it is visible in your message that error occurs at row 2 and column 6290106.
    If you check in the below link, the limit of columns is Openoffice 2.0 is 256.
    OpenOffice Calc - Simple English Wikipedia, the free encyclopedia
    So I guess there is some problem during the export to Openoffice 2.0.
    Might be there is some delimiter problem which leads to increase in column size.
    Please check from this point of view.
    Regards,
    Thanga

  • How to export alv into excel sheet without using toolbar button

    hi,
    i have developed ALV using FM methord on that i have created one button when user will click on that button
    hole ALV should export in to excel as it is and that ALV is Heaving top of page contain also i want that shuld
    also copy please help me for that please send me the sample code for that
    Edited by: ankita khare on Nov 3, 2008 9:42 AM

    Check this:
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'C:/test.xls'
          filetype                = 'ASC'
          write_field_separator   = 'X'
        TABLES
          data_tab                = t_output
    Regards.

  • Exporting ALV to excel(including row colors)

    Hai All,
        I have an ALV which contains column color.I wnt to export to excel including the colors .Is it possible???
    If yes, kindly let me know how to do that.
    Thanks & Regards,
    Kiran I

    hi
    try these links
    http://help.sap.com/saphelp_erp2005/helpdata/en/e3/41a138c4397a42e10000009b38f842/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/7d/fe9f638af411d3805e00c04f99fbf0/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/6f/31dfd4ac4ed84189a25d8e01f14af3/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/9f/53065cb77a364aa025a12a0af37c6e/frameset.htm
    regards
    Arun
    Message was edited by: arun a v

  • Export ALV to Excel and results in missing records/rows

    Hi experts,
    I'm a very beginner in ABAP programming. I've got a problem as below:
    My ALV report is able to export to .MHTML file, but few rows/records missing when export to .XLS file (using the 'Local File...' button or Ctrl + Shift + F9). And I found that missing rows actually appended to a cell of a displayed row.
    I've been searching solution for this issue quite sometimes and could not find any.
    Please kindly advise how to solve this issue.
    Thanks and regards,
    AN

    For more detail, the "Material Description" field contains some special characters as double-quote (") and comma (,)
    Please kindly advise if you experience.
    Thanks,
    AN

  • EXport Data to Excel with Columns format

    Dear All,
    This may  be a basic question, however, I just need a tip to conclude my issue. 
    I have a Report that displays Financial Budget data (AFE).  I am able to download to the Excel sheet.  However, I need to conclude it with the column formatted at code itself and not given to the user.
    That is I want to set couple of column to Numeric, and Set Colum width defined at Code level itself.
    I am already using the Function module : MS_EXCEL_OLE_STANDARD_DAT
    Regards,
    Venkat

    data: go_excel       type ole2_object,
              Go_CELL        TYPE OLE2_OBJECT,
              go_workbooks   TYPE OLE2_OBJECT,
              go_workbook    TYPE OLE2_OBJECT,
              go_sheet       type OLE2_OBJECT,
              go_application type OLE2_OBJECT,
              go_activesheet type OLE2_OBJECT,
              go_text        type OLE2_OBJECT.
        gv_EXTRD = sy-datum.
        gv_EXTRT = sy-uzeit.
        concatenate pfile gv_EXTRD gv_EXTRT  'check.xls' into gv_file.
        clear: gt_export, gs_export.
    ****INITIATE EXCEL
    Create object Excel
        create object go_excel 'EXCEL.APPLICATION'.
        set property of go_excel 'Visible' = 0.
    Create workbook object
        call method of go_excel 'WORKBOOKS' = go_workbook .
      Add workbook
        call method of go_workbook 'Add' = go_workbook.
        lv_line = 0.
        loop at gt_collect ASSIGNING <collect>.
          lv_line = lv_line + 1.
          move-corresponding <collect> to gs_export.
          clear: gs_export-ZALDT.
          concatenate <collect>-ZALDT4(2) '-' <collect>-ZALDT6(2) '-' <collect>-ZALDT+0(4)
               into gs_export-ZALDT.
    Populate cells
          call method of go_excel 'Cells' = Go_CELL
            EXPORTING
              #1 = lv_line
              #2 = 1.
    **************SET UP PROPERTY WIDTH ****************************
          SET PROPERTY OF GO_CELL 'ColumnWidth' = '11'.
          SET PROPERTY OF GO_CELL 'Value' = gs_export-BANKL.
    ***********SET PROPERTY CELL NUMBER**************************************
          call method of go_excel 'Cells' = Go_CELL
            EXPORTING
              #1 = lv_line
              #2 = 4.
          SET PROPERTY OF go_cell 'NumberFormat' = '@'.     "PROPERTY NUMBER
          SET PROPERTY OF GO_CELL 'ColumnWidth' = '10'.
          SET PROPERTY OF GO_CELL 'Value' = gs_export-ZALDT.
    endloop.
    **CLOSE EXCEL**********
        CALL METHOD OF go_workbook 'SaveAs'
          EXPORTING #1 = gv_file
          #2 = 1.
        "file format
        CALL METHOD OF go_workbook 'close'.                                    "file format
        call method of go_excel 'QUIT'.
    ****OPEN CREATED EXCEL FILE ****************************
        call method of go_excel 'Workbooks' = go_workbooks.
        call method of go_workbooks 'Open'
          EXPORTING
            #1 = gv_file.
        set property of go_excel 'Visible' = 1.

  • Exporting ALV to Excel

    Hi,
    I have a report in ALV and my problem is that the columns in Excel are in different sequence to the report if the Export->Spreadsheet route is taken.
    However, If i do it as Export->local file the columns in Excel appear in the same sequence as in report.
    Can any one explain me how to get the same sequence of columns via the Export->Spreadsheet also.
    Regards.

    instead of dat try doin dis..
    After ALV is displayed..press CtrlShiftF7
    ull b able 2 see the ALV in Spreadsheet n den u can save it..
    Hope dis helps..

  • Export ALV to excel automatically???

    hi experts.
    i want to run my ALV report on daily shedule basis like 11:00 in night in background.now i want to also save it automatically after completion of background job..
    how can i save my ALV list to excel automatically on daily basis.????

    Hi,
    GUI_DOWNLOAD doesn't work in background use dataset. Refer below code.
    *--Local Variables
      DATA : l_erfile TYPE string.
    *--Clear file
      CLEAR : l_erfile.
      l_erfile = p_aefile.
    *--Open dataset for output mode to transfer the error log
      OPEN DATASET l_erfile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc EQ c_ok.
        IF NOT it_erfile[] IS INITIAL.
          LOOP AT it_erfile INTO st_erfile.
            TRANSFER st_erfile TO l_erfile.
                 CLEAR : st_erfile.
          ENDLOOP.
    *--Error Log downloaded on given path
          MESSAGE i000 WITH text-005.
        ELSE.
    *--Legacy Data Created Successfully
          MESSAGE i000 WITH text-004.
        ENDIF.
      ENDIF.
    Regards,
    Prashant

  • Export icons in ALV to Excel

    Hi Guys,
    I have created a report in ALV for ABAP Dynpro. I have two columns in which i am displaying icons. But
    when the user exports it to excel or PDF, these icons are not getting copied. Is there any work around,
    where i can get them downloaded or any other approach that can be used for the purpose.
    Regards,
    Sagar

    Thank you for your answer.
    The thing is that it works well if I choose the format "Excel (in MHTML format)"u2026
    The icons have a meaning: they indicate either the employee attended the course or not and either he passed  the course or not.
    So, if it can not work with icon I would like to replace them by "yes" or "no" when the export is done. Is that possible?

  • How to export data from MS Project 2010 to MS Excel 2010 with formatting

    I have created a Project 2010 export map to Excel 2010.  It works fine.  I have two questions that I cannot determine an answer.  I'm not sure if its a project or excel setting.  I have spend hours trying to make it
    work with little success.
    1.  When the task name field is exported to excel it losses summary/task indent.  Is there a way to set it up so it works via the export map?
    2.  The Start & Finish fields in project is setup as 5/26/11 when they exports to excel it shows up as 5/26/11 8:00 AM.  Is there a way to set it up either in project export map or excel so its formated as a date field. 
    Excel's Format Cell function does not seem to work converting them back to just 5/26/11.
    How can I keep the outlines and formatting in my data while exporting it to Excel.
    I would appreciate any guidance.
    Yogesh

    Rameshchandra --
    Two things I would recommend:
    Do not add your question at the end of a post that is marked as Answered.  In the future, please post your question as a new question so that everyone will notice it and be able to answer it.
    Because this is a programming question, please repost your question as a new post in the Project Customization and Programming user forum at:
    http://social.technet.microsoft.com/Forums/projectserver/en-US/home?forum=project2010custprog&filter=alltypes&sort=lastpostdesc
    Hope this helps.
    Dale A. Howard [MVP]

  • Export webi to excel with the exact same format

    Hello expert,
         I develped a webi report, but when I exported it into excel file, its format is defferent from WEBI report, such as text for legend with multple lines in webi presented in one line in excel,  there are a few descrepency.  please tell me how can I export webi to excel with the exact same format?
    Many Thanks,

    Hi,
    There are options for the "save as excel" step .   either a) for formatting ,   or b) for data
    these should help.
    The reason why there are 'undesirable'  rows (also, merged rows / columns) is because your report document has table outlines which have been positioned 'by eye'.
    When the rendering algorythm outputs it content,  it's looking at pixel-level , so the relative position of borders can get messed-up. It's mainly due to slightly sloppy formatting.
    Regards,
    H

  • Download data from ALV to excel issue

    Hi All,
    Could you please tell me if there has any restriction on ALV grid data download to excel? I've a report contains 68 columns and about 500 rows, I want to download the data using the standard menu list->export->save to local file. but after I download them, I found the first 65 columns display in one line and the rest columns display in next line, just like ALV do not allow too many characters in one row and have to switch to new line. I can hide some columns but it's very strange that even after i hide 3 columns to fit the 500 rows download, then if the rows increase, the same problem occurs.
    I searched the forum and in the thread Re: Export ALV in EXCEL Issue Mr. Suvajit provided a solution by using menu List->export->spreadsheet, it looks very good. But I still want to know how this happen and is there a standard way to download data with more than 65 columns to local file with extension .xls so that user can open it directly?
    PS: I'm using FM REUSE_ALV_GRID_DISPLAY and the SAP version is SAP ECC6 with kernal package SAPKB70103.
    Thank you very much.
    Best Regards,
    Jeff
    Edited by: Jeff_liu_2010 on Mar 10, 2011 7:21 AM

    Hi Jeff,
    Please check if following analysis is helpful to you.
    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.
    Reducing the header size (by forcing to use short text or specifying own header names) should resolve the issue.
    Regards,
    Parveen

  • ALV export MHTML format problem

    We are using List->Export->Spreadsheet->Excel(in MHTMT format) to export from ALV. This option is take very long time to export the data .However user choose Excel(in existing XXL format) it get downloaded quickly.
    Does someone faced similar problem. Is this related with SAP , Network or Excel. We are using Excel 2003.

    Hi Hung To,
    I didn't got root cause of the problem.
    When user reported this, I told him to use XXL format until this gets fixed.
    Being not u2018sou2019 critical, this got delayed and last time I checked with user he switch back to MHTML format without any problem.
    Because this problem was with user in remote location, I though network could have been issue, but there wasnu2019t any change in network since and everything else on useru2019s PC remains same. So I havenu2019t got a clue what could have gone wrong.
    Considering this as one off problem I just left it as I couldnu2019t even regenerate the problem.
    I would say check with other users if they have similar problem with MHTML format, if not than most probably its excel.
    I would love to hear from others if they had this problem and solved it.

  • Getting Runtiime error while exporting to Excel 97-2000 format (URGENT)

    Post Author: net_us2001
    CA Forum: Exporting
    Hello Everyone,
    This is my first time in this forum.
    I am getting runtime error while exporting the report in EXCEL 97-2000, but exporting perfactly in MS-EXCEL (Data only) format.
    I found the reason is, using expression (formula) for formatting phone number as shown below.
    On table field "abPhone",
       used  "formula = PhoneFormat() " expression on format field -> common tab -> display string .
    Intead that i have used fumula e.g. test1 and used same expression, then it was exporting perfactly..
    Having above problem if i use expression to supress group header and report header. 
    So let me know if anyone can help, why it was giving error in first case.
    Thanks in advance
    Thanks,
    Nitin

    Hi,
    This is the Technical limitation of ABAP list export to local file.
    ALV grid greater than 1023 characters per line will be split into 2 lines.
    To prevent a line break occuring when you download the list as a local spreadsheet file, you must reduce the width of the list in ALV. You can do this either by hiding columns or by changing the column widths in the ALV. Take care that the column heading characters also dont exceed 1023 characters. This will work.
    Thanks
    LG

Maybe you are looking for

  • Unable to open reports with Web intelligence

    Hi there, We are unable to open reports using Webi Intelligence.  Error of "Session is closed(Error: INF)" apears. I have restarted the SIA and Apache services with no luck. Version : Business Objects XI3, Edge Series professional Kind regards,

  • Solution Manager 4.0 SR1 on iseries - Error on step CallOfflineCTC

    I'm installing a Solution Manager 4.0 SR1 on iseries using SAPinst/TMKSRV from Windows XP client. In the step Configure UME the installation stopped. As describe in SAP note 927734 I changed the control.xml in the SAPinst directory with the control.x

  • Mysql, Jboss connecting problem

    Hello, I am having problem with mysql database. I am trying to run AccountEJB application from SUN with mysql as my backend. PLEASE DO NOT FORGET I AM NOT EXPERT IN JBOSS OR EJB BUT I AM TRYING TO LEAN WITH A EXAMPLE. HERE IS MY SETUP UP TO THIS POIN

  • Quality inspection lot creation?

    Hi All, We are implementing the QM inspection functionality in our project. But we just want the QM inspection lot to be created when GR is done and then we will clear the lot with UD directly. We do not want to do any other processes like defects re

  • ActionScript 2 in Flex

    I realize that Flex uses AS3, but can a SWF written in AS2 be loaded in the SWF_Loader component and run correctly?