Blocked ALV Excel Download Issue

Hi Experts,
My customers requirement is to download the output of Quotation Comparison Report with exact alignments as how it displays on Screen.
When I tried to download from Standard SAP Save options, like List->save.... Export.. Spreadsheet........, I am not getting the same format into the Excel Sheet.
I went into the program to check and found that it is a Blocked ALV.
I have 3 Blocks in the Outputs.
I am missing the alignment of Second Block having "Quoted" "Negotiated" to left side.
Kindly help me in downloading this as it is.
Regards,
G.V.S Praveen Kumar

Hi Sumeet,
DATA: lv_exit   TYPE char1,                               "#EC NEEDED
         lwa_exit  TYPE slis_exit_by_user,                   "#EC NEEDED
         lt_excl   TYPE slis_t_extab,
         lwa_event TYPE slis_alv_event.
   DATA: lwa_layout1 TYPE slis_layout_alv,
         lwa_layout2 TYPE slis_layout_alv,
         lwa_layout3 TYPE slis_layout_alv,
         lt_events   TYPE slis_t_event.
FIELD-SYMBOLS: <t_block1> TYPE STANDARD TABLE,
                <t_block2> TYPE STANDARD TABLE,
                <t_block3> TYPE STANDARD TABLE,
                <w_block>  TYPE any.
* Initializing the Block List
   CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
     EXPORTING
       i_callback_program       = sy-repid
       i_callback_pf_status_set = 'PF_STATUS'
       i_callback_user_command  = 'USER_COMMAND'
       it_excluding             = lt_excl.
CONSTANTS:slis_ev_top_of_list TYPE slis_formname VALUE 'TOP_OF_LIST'.
   lwa_event-name = slis_ev_top_of_list.
   lwa_event-form = 'HEADER_TOP_OF_LIST'.
   APPEND lwa_event TO lt_events.
   CLEAR  lwa_event.
   lwa_layout1-no_colhead = 'X'.
   lwa_layout1-zebra = 'X'.
* Appending the block data for header to the list
   CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
     EXPORTING
       is_layout                  = lwa_layout1
       it_fieldcat                = t_fld1
       i_tabname                  = '<T_BLOCK1>'
       it_events                  = lt_events
     TABLES
       t_outtab                   = <t_block1>
     EXCEPTIONS
       program_error              = 1
       maximum_of_appends_reached = 2
       OTHERS                     = 3.
   IF sy-subrc <> 0.
     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
   ENDIF.
   REFRESH lt_events.
   lwa_event-name = slis_ev_top_of_list.
   lwa_event-form = 'ITEM_TOP_OF_LIST'.
   APPEND lwa_event TO lt_events.
   CLEAR  lwa_event.
   lwa_layout2-no_colhead = 'X'.
   lwa_layout2-zebra = 'X'.
* Appending the block data for item to the list
   CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
     EXPORTING
       is_layout                  = lwa_layout2
       it_fieldcat                = t_fld2
       i_tabname                  = '<T_BLOCK2>'
       it_events                  = lt_events
     TABLES
       t_outtab                   = <t_block2>
     EXCEPTIONS
       program_error              = 1
       maximum_of_appends_reached = 2
       OTHERS                     = 3.
   IF sy-subrc <> 0.
     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
   ENDIF.
   lwa_layout3-no_colhead = 'X'.
   lwa_layout3-zebra = 'X'.
   REFRESH lt_events.
* Appending the block data for item to the list
   CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
     EXPORTING
       is_layout                  = lwa_layout3
       it_fieldcat                = t_fld3
       i_tabname                  = '<T_BLOCK3>'
       it_events                  = lt_events
     TABLES
       t_outtab                   = <t_block3>
     EXCEPTIONS
       program_error              = 1
       maximum_of_appends_reached = 2
       OTHERS                     = 3.
   IF sy-subrc <> 0.
     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
   ENDIF.
* Displaying the block list
   CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
     EXPORTING
       i_screen_start_column   = 0
       i_screen_start_line     = 0
       i_screen_end_column     = 0
       i_screen_end_line       = 0
     IMPORTING
       e_exit_caused_by_caller = lv_exit
       es_exit_caused_by_user  = lwa_exit
     EXCEPTIONS
       program_error           = 1
       OTHERS                  = 2.
   IF sy-subrc <> 0.
     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
   ENDIF.

Similar Messages

  • ALV Excel download problem

    Hi,
    I am trying to download ALV report to excel but the columns in the o/p is appearing in two rows.
    THe ALV report has 82 columns in o/p.Is there any restriction on the no of columns that can be downloaded in excel.Please help.
    Thanks,
    Sutapa.

    Hi Sutapa,
    Kindly go through this link below for ALV Excel Download:
    Re: how to view alv grid output in excel format(not downloading to pc)
    Hope it helps
    Regrds
    Mansi

  • ALV Excel Download problem ( Special Character)

    Hi,
    I am unable to download completely in XLS format from ALV grid. When i tried in couple of ways there is a special character( " ) in one of the filed. Due to the same Excel download has some problem. I tested by removing those and it worked fine, 
    Please suggest me to solve the issue.
    Thanks,
    Bhanu Gattu,

    Data strings with special characters can not be downloaded into XLS format from ALV grid. In my case, I replaced the special character " with space and I could download the data into excel.

  • ALV Block List Excel download

    Hi,
    I am using 'REUSE_ALV_BLOCK_LIST_APPEND' and 'REUSE_ALV_BLOCK_LIST_DISPLAY' to output 2 reports (Header and Item) on the same screen.
    Since, SAP does not give Excel icon for Block List by default, I added an icon and used 'GUI_DOWNLOAD' function to download 2 separate excel files. Is it possible to combine both the reports into 1 file?

    In second call to GUI_DOWNLOAD use same path, and set function output parameter APPEND to X. Lines of second table, will be appended to file created with first table lines.
    Regards.

  • IE8 excel download issue

    Experts,
    I have a exportCollectionActionListener to download table data in excel format. The issue is when i try to download in IE 8, i get the security message by internet explorer and the download doesn't happen. Any ideas on this ?
    Partial submit is set to true on the commandButton
    thnks
    Jdev 11.1.1.5

    i get the security message by internet explorerI don't know what "the security message" is - perhaps it is saying "file download blocked due to security restrictions?"
    You cannot in your code bypass the security restrictions set by the browser - if you could, then you can probably make a nice illicit living as a virus writer.
    John

  • Max. no of columns in ALV Excel download

    I've a problem regarding the download of data from alv report's that have more than 99 columns.
    I have searched the forum but couldn't find a right answer.
    It is being done by standard option and not by custom functionality is there any way where we can increase this limitation.

    I don't know if there is a way it for more columns using that function.     But I suggest you to use excel inplace tool. With excel inplace users directly display and maintain values in SAP screen and they can save final document without any limits I think. Just go to change layout-> view and choose microsoft excel. To be able to display excel using this option macro security in installed MS Excel should be in low and VB script execution must be on.

  • ALV - Excel download Date field sits in the last Column

    Hi,
    I have custom ALV grid report using OOp . From the report i am exporting the results to an EXCEL, but the date columns in the report sits as last column the exported excel.
    Any idea ?
    Thanks
    aRs

    That is the default functionality of the ALV grid, it collects all the similar data types together and then donwloads the data.
    If you don't want that, you will have write code yourself and download the data
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • ALV -Excel download -header & data comming in Different columns

    Hi,
    I have an ALV report with FM.When I download it to excel through LIST/EXPORT/LOCALFILE some columns are getting messed up (ex: header is in one column and data is comming in different column).
    When i do with LIST/EXPORT/SPREADSHEET option it is working fine.
    but users want to use the first option only.
    I am use FM's in this report.
    Regards
    Praveen

    Hi
    What is the statement you used to dowload data .Check the field catalog that u are passing to downloaad function module.
    or check in the debuging mode..
    change these options in excel sheet and checkout if it can help u
    1. Go to Tools -> Macro -> Security in Excel
    2. Select the ‘Trusted Sources’ tab and ensure that the checkbox titled ‘Trust access to Visual Basic Project’ is ticked.
    3. With the feature switched on, the data is passed to Excel.
    check this sample one
    TABLES : MAST , "Material to BOM Link
    STKO , "BOM Header
    MARA . "General Material Data
    * Types Begin with TY_ *
    TYPES : BEGIN OF TY_MASTER ,
    MATNR TYPE MAST-MATNR , "Material Number
    WERKS TYPE MAST-WERKS , "Plant
    STLAN TYPE MAST-STLAN , "BOM Usage
    STLNR TYPE MAST-STLNR , "Bill of material
    STLAL TYPE MAST-STLAL , "Alternative BOM
    ANDAT TYPE MAST-ANDAT , "Date record created on
    AEDAT TYPE MAST-AEDAT , "Date of Last Change
    AENAM TYPE MAST-AENAM , "Name of Person Who Changed Object
    STLST TYPE STKO-STLST , "BOM status
    ZPLP1 TYPE MBEW-ZPLP1 , "Future Planned Price 1
    DWERK TYPE MVKE-DWERK , "Delivering Plant (Own or External)
    END OF TY_MASTER .
    TYPES : MY_TYPE(20) TYPE C.
    * Constants Begin with C_ *
    * Internal tables Begin with IT_ *
    DATA : IT_MASTER TYPE STANDARD TABLE OF TY_MASTER,
    WA_MASTER TYPE TY_MASTER .
    DATA : IT_HEADER TYPE TABLE OF MY_TYPE.
    * Data Begin with W_ *
    DATA : W_PTH TYPE RLGRAP-FILENAME.
    DATA : W_FILE TYPE RLGRAP-FILENAME.
    * Field Symbols Begin with FS_ *
    * Select Options Begin with SO_ *
    * Parameter Begin with PR_ *
    * I N I T I A L I Z A T I O N *
    *--- Add Header Fields to Header Table ---
    APPEND 'Material Number' TO IT_HEADER .
    APPEND 'Plant' TO IT_HEADER .
    APPEND 'BOM Usage' TO IT_HEADER .
    APPEND 'Bill Code' TO IT_HEADER .
    APPEND 'Alternative BOM' TO IT_HEADER .
    APPEND 'Created On' TO IT_HEADER .
    APPEND 'Changed On' TO IT_HEADER .
    APPEND 'Changed By' TO IT_HEADER .
    APPEND 'BOM Status' TO IT_HEADER .
    APPEND 'Planned Price' TO IT_HEADER .
    APPEND 'Delivery Plant' TO IT_HEADER .
    IF SY-MANDT = '700'.
    W_PTH = '\lkdb01ISDISSoftware DevelopmentsDevelopmentsData FilesSAP DumpsBOM_Available'.
    ELSE.
    W_PTH = 'C:'.
    ENDIF.
    * A T S E L E C T I O N S C R E E N *
    * s t a r t o f s e l e c t i o n
    START-OF-SELECTION.
    *--- Load Data to Internal Table ---
    * SELECT MAST~MATNR MAST~WERKS MAST~STLAN MAST~STLNR MAST~STLAL MAST~ANDAT MAST~AEDAT MAST~AENAM STKO~STLST
    * INTO TABLE IT_MASTER
    * FROM MAST
    * INNER JOIN STKO ON STKO~STLNR EQ MAST~STLNR
    * AND STKO~STLAL EQ MAST~STLAL
    * INNER JOIN MARA ON MARA~MATNR EQ MAST~MATNR
    * WHERE MARA~MTART LIKE 'ZFG%'
    * AND STKO~LKENZ NE 'X'
    * AND STKO~LOEKZ NE 'X'
    * AND STKO~STLST EQ '1'.
    SELECT MAST~MATNR MAST~WERKS MAST~STLAN MAST~STLNR MAST~STLAL MAST~ANDAT MAST~AEDAT MAST~AENAM STKO~STLST MBEW~ZPLP1 MVKE~DWERK
    INTO TABLE IT_MASTER
    FROM MAST
    INNER JOIN STKO ON STKO~STLNR EQ MAST~STLNR
    AND STKO~STLAL EQ MAST~STLAL
    INNER JOIN MARA ON MARA~MATNR EQ MAST~MATNR
    INNER JOIN MBEW ON MBEW~MATNR EQ MAST~MATNR
    AND MBEW~BWKEY EQ MAST~WERKS
    INNER JOIN MVKE ON MVKE~MATNR EQ MAST~MATNR
    WHERE MARA~MTART LIKE 'ZFG%'
    AND STKO~LKENZ NE 'X'
    AND STKO~LOEKZ NE 'X'
    AND STKO~STLST EQ '1'.
    IF SY-SUBRC <> 0.
    MESSAGE I014(ZLOAD).
    ENDIF.
    *--- Set Path to Function Module ---
    CONCATENATE W_PTH SY-DATUM ' - ' 'BOM_AVAILABLE_PLANT.XLS' INTO W_FILE.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    FILENAME = W_FILE
    FILETYPE = 'DAT'
    TABLES
    DATA_TAB = IT_MASTER
    FIELDNAMES = IT_HEADER
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_WRITE_ERROR = 2
    INVALID_FILESIZE = 3
    INVALID_TYPE = 4
    NO_BATCH = 5
    UNKNOWN_ERROR = 6
    INVALID_TABLE_EIDTH = 7
    GUI_REFUSE_FILETRANSFER = 8
    CUSTOMER_ERROR = 9
    OTHERS = 10.
    IF SY-SUBRC = 0.
    SUBMIT ZI005_MARA_DUMP_SOLIDEAL_N.
    MESSAGE I023(ZLOAD) WITH text-001.
    ELSE.
    MESSAGE I022(ZLOAD) WITH W_FILE. "Errors while downloading.
    ENDIF.
    END-OF-SELECTION.
    SUBMIT ZI005_MARA_DUMP_SOLIDEAL_N.
    Reward all helpfull answers
    Regards
    Pavan
    Message was edited by:
            Pavan praveen

  • Excel downloading issue in modalDialog

    Hi all,
    I have a jsp page which is used to download an excel report.
    Issue i am facing is the pop up jsp is working fine when i dont have it as
    "modalDialog" page,if its a normal popup the download works fine.
    is there any sspecial stuff to fix the same against modal dialog???
    code i used for modal dialog jsp:
      showModalDialog((mypage+"?ssnNo="+ssnNo),myname,"dialogHeight:290px;dialogWidth:650px;")code i used for normal popup jsp:
      window.open(mypage+"?ssnNo="+ssnNo,myname,settings)server side code for download :
    ServletOutputStream outputStream1 = response.getOutputStream();
              outputStream1.write(bytes);
              context.renderResponse();
              outputStream1.flush();
              outputStream1.close();   I believe the problem occurs only for the modal window not for normal popup.
    Any idea on this???
    regards,
    sundar

    Uh, there is a huge conceptual misunderstanding here.
    Java code runs at the server side, not at the client side.
    If you want to run Java at the client side, use a signed applet or web start application.

  • Alv Excel download

    Hi,
    I written a ALV Grid report and i want to download the the report to Excel.
    When I click on the excel button on the menu, Excel opens and the report is downloaded . BUT all the data with decimals are not downloaded it shows blank ,
    Can any one help me on this  .
    But when I use export to excel it works properly but my customer want to click on the excel and download
    Thanking you,
    Raju S

    hi raju,
    please try this,
    Open Excel -> Tools -> Options -> Security -> Macro Security -> Make it low.
    Now on the same path open tab -> Trusted Publishers and Check the checkbox for Trust Access to VB Project.
    Use the FM - ALV_XXL_CALL. here is the sample -
    REPORT ZSKC_ALV_XXL.
    TYPE-POOLS : KKBLO.
    DATA : ITAB LIKE T100 OCCURS 0,
    T_FCAT_LVC TYPE LVC_S_FCAT OCCURS 0 WITH HEADER LINE,
    T_FCAT_KKB TYPE KKBLO_T_FIELDCAT.
    START-OF-SELECTION.
    Get data.
    SELECT * UP TO 20 ROWS
    FROM T100
    INTO TABLE ITAB
    WHERE SPRSL = SY-LANGU.
    CHECK SY-SUBRC EQ 0.
    Create the field catalog.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
    I_STRUCTURE_NAME = 'T100'
    CHANGING
    CT_FIELDCAT = T_FCAT_LVC[]
    EXCEPTIONS
    INCONSISTENT_INTERFACE = 1
    PROGRAM_ERROR = 2
    OTHERS = 3.
    CHECK SY-SUBRC EQ 0.
    make sure you pass the correct internal table name in the field catalog.
    t_fcat_lvC-tabname = 'ITAB'.
    MODIFY T_FCAT_LVC TRANSPORTING TABNAME WHERE TABNAME NE SPACE.
    Transfer to KKBLO format.
    CALL FUNCTION 'LVC_TRANSFER_TO_KKBLO'
    EXPORTING
    IT_FIELDCAT_LVC = T_FCAT_LVC[]
    IMPORTING
    ET_FIELDCAT_KKBLO = T_FCAT_KKB
    EXCEPTIONS
    IT_DATA_MISSING = 1
    IT_FIELDCAT_LVC_MISSING = 2
    OTHERS = 3.
    CHECK SY-SUBRC EQ 0.
    Call XXL.
    CALL FUNCTION 'ALV_XXL_CALL'
    EXPORTING
    I_TABNAME = 'ITAB'
    IT_FIELDCAT = T_FCAT_KKB
    TABLES
    IT_OUTTAB = ITAB[]
    EXCEPTIONS
    FATAL_ERROR = 1
    NO_DISPLAY_POSSIBLE = 2
    OTHERS = 3.
    IF SY-SUBRC 0.
    ENDIF.
    Dont forget to reward,
    Thanks & Regards,
    Kalyan.

  • Excel download issue

    Hi all
    While I am running code for downloading data to excel I am prompted with following options :
    Pleas select how you would like to open this file:
    selection 1  As an XML table
    selection 2 As a read only workbook
    selection 3 Use the XML source task pane
    ok                      cancel                        help
    How can I remove this and have it directly open the workbook.  Kindly help
    Thank you
    Regards,
    Preet Kaur

    Hi John
    Its a customised one.  This is the code I have used for opening the excel:
    private String toExcel(IWDNode dataNode, Map columnInfos) {
    StringBuffer x = new StringBuffer();
    String attributeName, headerName;
    String entriesName = dataNode.getNodeInfo().getName();
    String entryName = entriesName + "Element";
    // trim given header texts, so that XML element names adhere to the
    // rule 'no spaces contained'.
    trimHeaderTexts(columnInfos);
    x.append("<?xml version='1.0' encoding='UTF-8' standalone='no'?>\n");
    x.append("<").append(entriesName).append(">\n");
    for (int i = 0; i < dataNode.size(); ++i) {
    IWDNodeElement dataNodeElement = dataNode.getElementAt(i);
    x.append("<").append(entryName).append(">\n");
    for (Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();) {
    attributeName = (String) iter.next();
    headerName = (String) columnInfos.get(attributeName);
    x
    .append("<")
    .append(headerName)
    .append(">")
    .append(dataNodeElement.getAttributeValue(attributeName))
    .append("</")
    .append(headerName)
    .append(">\n");
    x.append("</").append(entryName).append(">\n");
    x.append("</").append(entriesName).append(">\n");
    return x.toString();
    thank you
    regards,
    Preet Kaur

  • ALV Table Download Issue

    Hi all,
    I have a question on the download settings when downloading an ALV table content (e.g. content of PPT).
    Sequence:
    1. Choose the "Export" button
    2. Choose Spreadsheet
    3. Choose any format
    4. Check on the checkbox "Always Use Selected Format"
    5. Download the file
    Now, once you do the same thing, it won't give you any format option. Instead it will directly set the file extension for you and it is unchangeable. Makes sense because you already checked the box in step 4. But the simple question is: How do I deselect the option in step 4?
    By the way, I'm using SCM 7.0 (just recently upgraded).
    Thanks,
    Torio.

    Torio,
    Double check by reviewing the contents of table SALV_BS_ADMIN.  This is the table that should not hold your userid.  Also, look for an  entry against userid "*", which will affect all users that don't have specific entries.
    Also, check your user parameter SALV_BS_XML_TYPE in Tcode SU01.  This should be blank.
    Basically, there are a number of things that can affect the changeability of this setting.  Look at https://service.sap.com/sap/support/notes/1080608 and all the related notes, and the attached zip file.  In some cases, a correction must be loaded into your system before you can reset this flag. 
    If all else fails, raise a message with SAP.
    Best Regards,
    DB49

  • Trigger event of Excel download in ALV

    From my menu bar on the screen can i trigger the alv
    excel download feature.

    Hi Kaushik,
    Check out the function module ALV_XXL_CALL.
    Srinivas

  • WebI to Excel Format Issues

    Hi Guys,
    I have a problem that when I export a BO report to Excel, the bar graph from BO gets very scrunched up and narrow, with the X-axis barely visible once it goes to Excel. But in BO, the report looks great. With all the cells aligned and matching. Is there a way to manipulate something in the BO report to make it Excel friendlier?
    thanks in advance, will award points.
    -preya

    Hi All,
    Trying to replicate WEBI Excel Download issue.
    Operating system : Windows 7
    Internet Explorer : IE8 Version 8.0.7600.16385CO.
    Jre Version : 1.6_ greater than 1.8 version.
    If anybody having above specifications in your machines Please try to save a webi reports to excel format and send me the results.

  • Problem in ALV to Excel Download

    Good Morning Experts,
      I am facing one issue related ALV to excel Download.
    I Developed one custom report the output is correct displaying.
    the output is like for example i am taking 3 columns (plant, material, amt).
    plant material amt
    1001  aaa     1000
    1001  bbb     2000
    while downloading to excel
    it displaying like
    plant
    material
    amt
    1001
    aaa
    1000
    1001
    bbb
    2000
    I dont know why its coming like that.
    this is my code
    DEFINE field_cat.
    wa_field-row_pos = &1.
    wa_field-fieldname = &2.
    wa_field-tabname = &3.
    wa_field-seltext_m = &4.
    wa_field-outputlen = &5.
    wa_field-currency = &6.
    wa_field-ref_fieldname = &7.
    wa_field-ref_tabname = &8.
    APPEND wa_field to it_field.
    clear wa_field.
    END-OF-DEFINITION.
    field_cat '1' 'BUKRS' 'IT_FINAL' 'Company Code' '6' '' '' ''.
    field_cat '2' 'BUTXT' 'IT_FINAL' 'Comp Descrip' '25' '' '' ''.
    field_cat '3' 'LIFNR' 'IT_FINAL' 'Vendor No' '10' '' '' ''.
    field_cat '4' 'NAME1' 'IT_FINAL' 'Vendor Name' '35' '' '' ''.
    field_cat '5' 'STRAS' 'IT_FINAL' 'Vendor Addres' '35' '' '' ''.
    field_cat '6' 'FDGRV' 'IT_FINAL' 'Nature Of Work' '30' '' '' ''.
    field_cat '7' 'DMBTR' 'IT_FINAL' 'Net Amount' '16' 'X' 'WAERS' 'IT_FINAL'.
    field_cat '8' 'QBSHB' 'IT_FINAL' 'TDS Amount' '16' 'X' 'WAERS' 'IT_FINAL'.
    field_cat '9' 'TOTAL' 'IT_FINAL' 'Total Amount' '16' 'X' 'WAERS' 'IT_FINAL'.
    it_layout-zebra = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = sy-repid
       I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
       IS_LAYOUT                         = it_layout
       IT_FIELDCAT                       = it_field
       I_SAVE                            = 'X'
      TABLES
        t_outtab                          = it_final
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " DISPLAY_ALV
    FORM TOP_OF_PAGE.
    REFRESH it_head. CLEAR it_head.
    wa_head-typ = 'H'.
    wa_head-info = 'Vendorwise Expense Details'.
    APPEND wa_head to it_head.
    wa_head-typ = 'S'.
    IF NOT s_MONAT-high is INITIAL.
      CONCATENATE 'Period : ' p_gjahr '.' s_MONAT-low ' to ' p_gjahr '.' s_MONAT-high INTO wa_head-info.
    ELSE.
      CONCATENATE 'Period : ' p_gjahr '.' s_MONAT-low INTO wa_head-info.
    ENDIF.
    APPEND wa_head to it_head.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        it_list_commentary       = it_head.
    ENDFORM.
    Regards,
    Dhina..

    Hi,
    You can also try in this way
    in the output screen
      click List (in app tool bar) -> Export -> Spreadsheet
    and save at your desired location.
    (It will be save in .mhtml format , just rightclick on it and you can open it with excel )
    Then you will be able to view in your required format.
    Regards,
    koolspy.

Maybe you are looking for

  • Import to iPhoto 8.2.

    Hi all, Just did a clean install of my iMac and upgraded to Mountain Lion. Do I simply go to iPhoto in Mountain Lion and select the iPhoto Library in my backup drive to transfer all pics over? Thanks

  • Selecting All Dashed Lines

    Greetings all, I am using Illustrator CS3 for Mac and was wondering if there is there a way to select all dashed lines within a given Illustrator project? I can't use Select->Same->Stroke Color or Select->Same->Stroke Weight because there are other l

  • AppletStub - How do I Display an Applet in JFrame

    I've been researching on this and got some useful info about what I need like the AppletStub... What I am trying to do is make a JFrame with an Applet inside of it. Also, don't know if this is possible but I would like to run the applet from a remote

  • I can't get song or entire cd to iPod what the heck is going on paid over 200 for this

    I followed the instructions as best I could an"No Musis"  I've been at this for 5 hours, HELP

  • [NEW] Bacula

    Hi, I thoroughly checked all the repositories mentioned in the sticky topic and could not find any reference to Bacula, so I'm posting my PKGBUILD here... hope it will be useful to you all. :-) PKGBUILD: pkgname=bacula pkgver=1.36.1 pkgrel=1 pkgdesc=