Problem while exporting ALV column header to excel sheet.

Hi,
I am able to export an ALV grid details to an excel sheet. But the ALV column headers when exported to excel sheet are getting truncated.
For eg: if my column header in ALV grid is displayed as 'Material' then the column header in excel sheet is 'Mater' only. Remaining portion is getting truncated.
How can I view the entire column header text?
Kindly assist.
Thanks.

I have the same problem with you, when user export to excel. I fixed it by using
w_layo-colwidth_optimize = 'X'. <<<<<<<<<<<<This
perform generate_fcat_reftab
    using 'PRUEFLOS' 'T_INPUT' '' '' 'Inspection Lot' 0.
form generate_fcat_reftab  using    p_fieldname
                                    p_tabname
                                    p_ref_tabname
                                    p_ref_fieldname
                                    p_output_text
                                    p_output_lenght.
  clear w_fcat.
  w_fcat-fieldname = p_fieldname.
  w_fcat-tabname   = p_tabname.
  w_fcat-ref_fieldname = p_ref_fieldname.
  w_fcat-ref_tabname = p_ref_tabname.
  w_fcat-seltext_s = p_output_text.
  w_fcat-seltext_m = p_output_text.
  w_fcat-seltext_l = p_output_text.
  w_fcat-outputlen = p_output_lenght.
  w_fcat-ddictxt = 'L'. <<<<<<<<<<<<<<<<<<This
  append w_fcat to t_fcat.
endform.

Similar Messages

  • Facing problem while downloading ALV grid Output into Excel

    Hi Guys,
    I am facing problem while downloading ALV grid Output into Excel.
    It is downloading into excel, but all character columns first and next all quantity columns it is displaying. But I need columns order as it is in the grid.
    If I take all columns as characters it works fine. But it will be problem for calculating total, subtotals of quantity columns
    Can someone help me regarding this
    thanks for your help

    Hi,
    Open up Excel on your desktop. Goto Tools > Macro > Security.
    Make sure that your security is set to Medium (or less). SAP uses OLE automation to run the Excel instance and in Office 2003 (for example), Microsoft has increased their default security setting to High. With the High setting, the output to Excel fails.
    Was this your problem? Don't forget those points, either.
    check with this wetther it is solved or not.
    Regards,
    sana.

  • Exporting ALV Grid output to Excel sheet

    Hi All,
           How can i export the output displayed using Grid to an Excel sheet. I tried with default option from list->export->excel sheet/local file but i am not getting complete data and the data which i am getting also notin proper format. Please help me in this regard.
    Best Regards,
    Sunil

    Check out the ALV grid toolbar for export options.
    Regards
    Raja

  • Export ALV Grid Header to spread sheet

    Hi,
       I created ALV report using OO ABAP where i splitted the container into 3 parts , one for header , one for Grid and the other for Footer. When i export it to a spred sheet , i could not able to get the header and footer into the Spread sheet. I want the header and the footer to be exported to the spred sheet. Can any one of you help me out in this.
    Thanks,
    Kishore.

    Use the events PRINT_TOP_OF_PAGE and PRINT_END_OF_PAGE for printing the Header and Footer.
    Sample routine for the method PRINT_TOP_OF_PAGE is given below:
      METHOD M_HANDLE_TOP_OF_PAGE.
    *Local variables declaration
        DATA:
         V_TEXT                 TYPE SDYDO_TEXT_ELEMENT,                                 " Text
          V_DATE                 TYPE CHAR10,                                             " Date
          V_TIME                 TYPE CHAR10,                                             " Time
          V_TEXT2                TYPE CHAR30.
    *To display Current Date
        WRITE SY-DATUM TO V_DATE.
        WRITE SY-UZEIT TO V_TIME.
        CONCATENATE 'Current Date :'(076)
                    V_DATE
                    V_TIME
               INTO V_TEXT2 SEPARATED BY SPACE.
        WRITE:/ V_TEXT2.
    *To print Report Date
        CLEAR: V_DATE, V_TEXT2.
        WRITE P_CURDT TO V_DATE.
        CONCATENATE 'Report Date :'(077)
                    V_DATE
               INTO V_TEXT2 SEPARATED BY SPACE.
        WRITE:/ V_TEXT2.
      ENDMETHOD.                                                                        " M_HANDLE_TOP_OF_PAGE
    If you are satisfied, please give points to my reply.
    Regards,
    Sumanth.

  • Problem while exporting the data from a report to an excel file.

    Hi SAP guru's,
    I have a problem while exporting the data from a report to an excel file.
    The problem is that after exporting, the excel file seems to have some irrelevant characters....I am checking this using SOST transaction..
    Required text (Russian):
    Операции по счету                                    
    № документа     Тип документа     № учетной записи     Дата документа     Валюта     Сумма, вкл. НДС     Срок оплаты     Описание документа
    Current Text :
       ? 5 @ 0 F 8 8  ? >  A G 5 B C                                   
    !   4 > : C       "" 8 ?  4 > : C      !   C G 5 B = > 9  7 0 ? 8 A 8        0 B 0  4 > : C         0 ; N B 0      ! C <       ! @ > :  > ? ; 0 B K        ? 8 A 0 = 8 5  4 > : C
    Can you help me making configuration settings if any?
    Regards,
    Avinash Raju

    Hi Avinash
    To download  such characteres you need to adjust code page to be used during export. You can review SAP note 73606 to identify which code page is required for this language
    Best regards

  • Problem while Exporting Table Data to Excel Sheet

    Hi All,
    Im getting problem while downloading the table data to Excel.
    Steps i was fallowed:
    1)created Context node with four attributs.
    2)created one attribut(resource) type:  com.sap.ide.webdynpro.uielementdefinitions.Resource
    3)Taken one Filedownload UI and Property resource bounded to (resource)
    4)Added required jar file in the library and copied the same jar file in the navigator lib file
    written the necessary coding but showing the below  problem in the Browser
    You must Flush before accessing the resource content
    Please give me any suggestion  on this
    Regards
    Polaka

    Hi
    Check this might help with Brian Fernandes comments.
    Flush?
    Regards
    Arun Jaiswal

  • Unknown column in the excel sheet created using Export to Excel

    Hi,
    I created an excelsheet for the table data using the below link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/exporting%20context%20data%20into%20excel%20using%20the%20web%20dynpro%
    20Binary%20Cache.pdf
    but problem here is when i open the excel sheet it is having some unknown columns apart from the expected like amount/#agg next to the actual column amount and it is happening only for the cloumns which have some numbers.
    I dont know where these columns are coming from.
    Send me the solution and points will be rewarded for the helpful answers.
    I want to put some name to the excel file instead of using system created file name.for this requirement where do i need to change the code

    Hi,
    You can export to excel even not relating with any libraries
    Follow this way..
    Take one singleDimensional array, arrColNames[], and one Two dimensional array, arrValues[][].
    File f=new File("Sample.xls);
    FileOutputStream fos=new FileOutputStream(f);
    for(int i=0;i<arrColNames.length;i++)
    fos.write(arrLabels<i>.getBytes());
    fos.write("\t".getBytes());
    fos.write("\n".getBytes());
    for(int j=0;j<noOfRows;j++)
    String arr[]=arrValues[j];
    for(int a=0;a<arr.length;a++)
    if(arr[a]!=null)
         fos.write(arr[a].getBytes());
        fos.write("\t".getBytes());
    fos.write("\n".getBytes());
    fos.flush();
    fos.close();
    The exported excelFile will be stored in your server. If you want to open it using FileDownLoad UI Element,
    Create value attributes resource of type Resource, behaviour of type FileDownLoadBehaviour, reso of type String, fileName of type String , Then then append this code
    FileInputStream fis=new FileInputStream(f);
    FileChannel fc=fis.getChannel();
    byte data[]=new byte[(int)fc.size()];
    ByteBuffer bb=ByteBuffer.wrap(data);
    fc.read(bb);
    fis.close();
    IWDCachedWebResource objCachedWebresource=null;
    if(data!=null)
    objCachedWebresource=WDWebResource.getWebResource
    (data,WDWebResourceType.XLS);
    objCachedWebresource.setResourceName(f.getName());
    wdContext.currentContextElement().setFileName(f.getName());
    wdContext.currentContextElement().setResource(objCachedWebresource);
    wdContext.currentContextElement().setReso(objCachedWebresource.getAbsoluteURL());
    wdContext.currentContextElement().setBehaviour(WDFileDownloadBehaviour.ALLOW_SAVE);
    Regards
    LN

  • Problem While Exporting the Output

    Dear All ,
    I am facing a problem while exporting the ALV output to Spreadsheet.
    When I click on Menu LIST->Export-->Spreadsheet, One pop is coming with title "Save XXL list object in SAPOffice" In that it is asking me to save Name of the List object and a Title.
    Please guide me what needs to be done for this.
    Regards,
    Nikhil

    Hi, Nikhil
    You can USE a Short Cut Key Ctrl + Shift + F9 and than select the type in you want to download in your case you will select Spreadsheet
    Regards,
    Faisal

  • How to import all column heading of excel to oracle 6i forms(no rows).

    hello,
    I am new to oracle forms.
    There are so many links for importing and exporting data from forms to excel and excel to forms.
    But i want to import all column heading of excel to form (no rows). I am using forms 6i.
    please help me for the same.
    Thank You.
    Edited by: sam8682 on Apr 9, 2013 5:48 AM
    Edited by: sam8682 on Apr 9, 2013 5:50 AM

    Reading from any file is always done in a loop through the records. So, just loop only once. That will give you the first record only.
    If you have some code already you can modify it to something like:
    for i in 1..1 loop
    end loop;

  • Has anyone tried to export an ALV Tree to an excel sheet?

    Hi "gurus",
    I've been looking for a way of exporting a printed report in an ALV tree to an Excel sheet.
    Has someone done this before?
    NOTE: I am studying the Office Integration, which I believe it can be a way of making SAP generates it via ABAP objects.
    Thanks and Regards,
    Daniel Carvalho
    Edited by: Daniel Carvalho on Feb 28, 2008 11:40 PM

    (Add a Button function in the ON Toolbar such as EXCEL and set event handlers).
    METHOD on_user_command.
       break-point 2.
      CASE e_ucomm.
         WHEN 'EXIT'.
            LEAVE PROGRAM.
         WHEN 'EXCEL'.
          CALL METHOD me->download_to_excel.
         WHEN 'SAVE'.
         WHEN 'PROC'.
          CALL METHOD me->process.
         WHEN 'REFR'.
          CALL METHOD me->refresh.
      ENDCASE.
    endmethod.
    METHOD on_toolbar.
    CLEAR ls_toolbar.
        MOVE  0 TO ls_toolbar-butn_TYPE.
      MOVE 'EXCEL' TO ls_toolbar-function.
      MOVE  SPACE TO ls_toolbar-disabled.
      MOVE  icon_xxl TO ls_toolbar-icon.
      MOVE 'Excel' TO ls_toolbar-quickinfo.
      MOVE  'EXCEL' TO ls_toolbar-text.
      APPEND ls_toolbar TO e_object->mt_toolbar.
    endmethod.
      METHOD  download_to_excel.
    field-symbols:
        <fs0> TYPE standard table,
        <fs1> TYPE standard table.
      assign g_outtab1->* to <fs0>.
      assign g_fldcat1->* to <fs1>.
    break-point 5.
      CALL FUNCTION  'LVC_TRANSFER_TO_KKBLO'
        EXPORTING
          it_fieldcat_lvc   = <fs1>
    *     is_layout_lvc     = m_cl_variant->ms_layout
           is_tech_complete  = ' '
        IMPORTING
          es_layout_kkblo   = ls_layout
          et_fieldcat_kkblo = lt_fieldcat.
       LOOP AT lt_fieldcat INTO lt_fieldcat_wa.
        CLEAR lt_fieldcat_wa-tech_complete.
        IF lt_fieldcat_wa-tabname IS initial.
           lt_fieldcat_wa-tabname = '1'.
           MODIFY lt_fieldcat FROM lt_fieldcat_wa.
        ENDIF.
        l_tabname = lt_fieldcat_wa-tabname.
       ENDLOOP.
    CALL FUNCTION 'ALV_XXL_CALL'
        EXPORTING
          i_tabname           = l_tabname
          is_layout           = ls_layout
          it_fieldcat         = lt_fieldcat
          i_title             = sy-title
        TABLES
          it_outtab           = <fs0>
        EXCEPTIONS
          fatal_error         = 1
          no_display_possible = 2
          others              = 3.
      IF  sy-subrc <> 0.
         message id sy-msgid TYPE 'S' number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    ENDMETHOD.
    Your original table that goes to the grid is parameter g_outtab1
    the field catalog is g_fldcat1.
    These need to be converted to kkblo format to use the XXL function module.
    The advantage of this method is that you get an EXCEL spreadsheet interactively.
    (Of course the standard export function will still work).
    Cheers
    Jimbo

  • PREMIERE PRO CS5.5 Gamma problem while exporting project to mjpeg A or B

    Dear Sir,
    I'm in a big ****. I've directed and edited 1h documentary for Finnish television, also, the technical specs requested by the TV Channel is all production Broadcast masters must be encoded with Apple ProRES codec or MJPEG A or B.
    As i'm working on PC (win7), the ProRES codec doesn't exist on PC system, so i've done the export to MJPEG. The problem is i have a different gamma level when i watch the final export with Quicktime or VLC. Of course i can adjust the level in those players, but it doesnt effect the file. When i import the Qt file into a Premiere sequence, the gamma level is still **** and different from my original level i have from my timeline and preview window. If i export the project to H264 1920x1080p25, then the gamma is perfect with Qt, VLC and WinMedia player. But the TV station don't wanna work with H264. Deadline is on next monday, and i can't send a Qt MJPEG file with wrong gamma !!!Any chance to find a solution to fix it ??? After reading different forum, i can see this problem exist since many years and never been solved.
    What can i do ??
    Denis.

    Things is my prpject includ few effect plugins i bought, so what ever i could find a mac, not your i could export xml project to finalcut with plugins it dont have
    Denis
    Sent from my iPad.
    Le 31 mai 2013 à 15:20, Fuzzy Barsik <[email protected]> a écrit :
    Re: PREMIERE PRO CS5.5 Gamma problem while exporting project to mjpeg A or B
    created by Fuzzy Barsik in Premiere Pro - View the full discussion
    If it were me, I wouldn't encode to MJPEG.
    So as to encode to ProRes on Windows you can utilise any solution based on ffmpeg/ffmbc or better yet find a Mac with Final Cut or Compressor installed for delivering critical work.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5368019#5368019
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5368019#5368019
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5368019#5368019. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Premiere Pro by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Subdivide a ALV column header

    Hi experts ,
    I have an requirment to divide a ALV column header.
    I want to add a header row grouping the column headers.
            Departure                                               Arrival        <-- This row is what I want to add
    Airport    Gate    Date                         Airport    Gate    Date
    Thanks,
    Regards ,
    Swashrayee
    Edited by: SWASHRAYEE77928 on Feb 1, 2012 7:30 AM
    Moderator Message: UserID sent for deletion, for ignoring multiple Moderator warnings.
    Edited by: kishan P on Feb 1, 2012 12:05 PM

    Hello,
    Take a look on this code:
      DATA:
        lv_title              TYPE        string,
        lt_columns            TYPE        salv_wd_t_column_ref,
        lr_column_settings    TYPE REF TO if_salv_wd_column_settings,
        lr_salv_wd_table      TYPE REF TO iwci_salv_wd_table,
        lr_table              TYPE REF TO cl_salv_wd_config_table,
      FIELD-SYMBOLS:
        <fs_column> LIKE LINE OF lt_columns,
      lr_salv_wd_table = wd_this->wd_cpifc_cmp_alv( ).
      lr_table         = lr_salv_wd_table->get_model( ).
      lr_column_settings ?= lr_table.
      lt_columns = lr_column_settings->get_columns( ).
      LOOP AT lt_columns ASSIGNING <fs_column>.
        lr_col_header = <fs_column>-r_column->get_header( ).
        lr_col_header->set_ddic_binding_element( space ).
        lr_col_header->set_ddic_binding_field( if_salv_wd_c_column_settings=>ddic_bind_none ).
          lv_title = cl_wd_utilities=>get_otr_text_by_alias( alias = 'HISTORIC' ).
          lr_col_header->set_text( lv_title ).
          CLEAR lv_title.
    I suggest you to put this code in some method called over the method WDDOMODIFYVIEW.
    Regards.

  • Split ALV Column heading into two

    Hello All,
    I have a ALV Column Header - ALV LIST - SAP 46C.
    Material   |  Info Type |  Quantity |  Price etc..
    Due to space contraints and other reason client needs to split the Info type column into two.
    Material   |  Info  |  Quantity |  Price etc..
               | Type   |
    The data records should not have any additional blank lines.
    How to achieve this?
    Thanks,

    You have to assign X to layout property no_colhead.
    Then write your heading using write statements.
    Here is the exact example you are looking for [Create Multiple Lines Header In ALV List Report|http://www.freesaptutorial.com/create-multiple-lines-header-in-alv-list-report/]

  • Problem while inserting new Column in JTable

    Hi,
    I am facing Problem while inserting new Column in JTable.
    I have a JTable with one inherited ColumnModel class.
    When I am adding the column and moving towards the corresponding location, it moves successfully.
    but if I am adding another column or making any changes to table column structure the table retains the defualtcolumn structure.
    please help me to solve this..
    Regards
    Ranjith.........

    Maybe this example will help:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=579527

  • Problem when dowloading the ALV report output to Excel Sheet.

    Hi ,
    I am dowloading the ALV report output to Excel Sheet.
    There is field Condition Unit(KOMP-KMEIN) in the output of the ALV, this has values PC and CSE , but when I download to Excel Sheet, CSE is appearing as CSE ,but PC is appearing as ******.
    Can you please help me in knowing the reson for this.
    Regards,
    Madhu.

    hi
    refer to following link
    http://www.****************/Tutorials/ALV/ColorSALV/Demo.htm
    http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm
    Cheers
    Snehi
    Edited by: snehi chouhan on Jul 11, 2008 12:42 PM

Maybe you are looking for

  • Unable to gift song in iTunes UK

    I've done this before once, but today when I try to gift as song I can see nothing that gives me this option. Any suggestions? Have they stopped this feature?

  • Schema copy misses NUMBER(1) column named DEPRECATED

    Hi, I did a Tools/Database Copy using SQL Developer 1.5.4 towards Oracle Enterprise 10.2.0.2.0. Almost everything went as expected. There was a column originally defined as DEPRECATED NUMBER(1,0). The column was created in the destination schema, but

  • 404 when trying to access apex using Oracle XE

    I've installed a new system disk on my computer. On my old system I had Oracle XE + Apex 3.1 installed on a data drive in e:\oracleXE On my new system I installed Oracle XE in e:\oracleXE2. Then copied the contents of E:\oracleXE\oradata\XE to E:\ora

  • I can't click and drag

    All of a sudden, last night while I was doing homework, I tried to copy a sentence by the highlight portion wouldn't drag across. I restarted my computer just in case it was over heated and still nothing. I need help! I'm a full time student!!

  • Adf table data scrolling issue in IE8

    Hello I have converted my jdev application from version 11.1.1.1.0 to 11.1.2.1.0. In the application there is a table that pull data through view object. I have set RangeSize = -1 and FetchSize = 30 and there are about 500 records. To see more record