How can i download dynamic alv report into excel  ?

when i create dynamic alv report and try to download it
to my pc ( to excel file ) the data is not set in the
write position , also i get message in the excel
"Dynamic List Display " .
how can i set the data like the alv display ?

ALV has standard download functionality to Excel. Aren't you able to use this functionality? Have you written your own custom code for DOWNLOAD?

Similar Messages

  • How can I download Raw format photographs into my iMac from my Sony A850 camera?

    How can I download Raw format photographs into my iMac from my Sony A850 camera?

    Looking at this article, it doesn't look like that camera model is supported by iPhoto. You may want to get in touch with Sony and see if they have any software that will allow you to import/view it.

  • ALV Report into excel

    Hi All,
    I have developed an ALV Report and its having 58 columns.
    While converting report into excel sheet (on ALV Report screen), i can save the excel sheet.
    But in excel sheet, i am not getting the exact report in correct columns.
    Few columns are getting into next line inthe excel sheet.
    How to avoid this problem...???
    Is it due to more number of columns in ALV (58 columns)...?????
    Regards
    Pavan

    Go through the code and Execute it on your system, I think this will do for you.
    In this code I used 3 radio buttons in my selection screen:
    If u selects the first radio button your out put shows into to the Excel sheet.
    If u selects the second radio button your out put shows the in the Editor screen.
    If u clicks the third radio button your output shows into the Excel as well as in the Editor.
    *& DATA DECLARATION *
    TABLES: MARA, "GENERAL MASTER DATA
    MARC, "PLANT DATA FOR MATERIAL
    MARD, "STORAGE LOCATION DATA FOR MATERIAL
    MBEW, "MATERIAL VALUATION
    MVKE, "SALES DATA FOR MATERIAL
    MAKT, "MATERIAL DESCRIPTION
    EKKO, "PURCHASING DOCUMENT HEADER
    EKPO, "PURCHASING DOCUMENT ITEM
    VBAK, "SALES DOCUMENT HEADER DATA
    VBAP. "SALES DOCUMENT ITEM DATA
    TYPE-POOLS : SLIS.
    DATA: VT_FIELDCAT1 TYPE SLIS_T_FIELDCAT_ALV,
    V_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
    V_LAYOUT TYPE SLIS_LAYOUT_ALV,
    BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
    BEGIN OF I_MARA OCCURS 0,
    MATNR LIKE MARA-MATNR, "MATERIAL NUMBER
    MBRSH LIKE MARA-MBRSH, "INDUSTRY SECTOR
    MEINS LIKE MARA-MEINS, "BASE UNIT OF MEASURE
    MATKL LIKE MARA-MATKL, "MATERIAL GROUP
    END OF I_MARA,
    BEGIN OF I_MARC OCCURS 0,
    MATNR LIKE MARC-MATNR, "MATERIAL NUMBER
    WERKS LIKE MARC-WERKS, "PLANT
    LVORM LIKE MARC-LVORM, "FLAG MATERIAL FOR DELETION AT PLANT
    "LEVEL
    DISPO LIKE MARC-DISPO, "MRP CONTROLLER
    END OF I_MARC,
    BEGIN OF I_MAKT OCCURS 0,
    MATNR LIKE MAKT-MATNR, "MATERIAL NUMBER
    MAKTX LIKE MAKT-MAKTX, "MATERIAL DESCRIPTION
    SPRAS LIKE MAKT-SPRAS, "LANGUAGE KEY
    END OF I_MAKT,
    BEGIN OF I_MVKE OCCURS 0,
    MATNR LIKE MVKE-MATNR, "MATERIAL NUMBER
    VKORG LIKE MVKE-VKORG, "SALES ORGANIZATION
    VTWEG LIKE MVKE-VTWEG, "DISTRIBUTION CHANNEL
    END OF I_MVKE,
    BEGIN OF I_MARD OCCURS 0,
    MATNR LIKE MARD-MATNR, "MATERIAL NUMBER
    LGORT LIKE MARD-LGORT, "STORAGE LOCATION
    LABST LIKE MARD-LABST, "VALUATED STOCK WITH UNRESTRICTED USE
    END OF I_MARD,
    BEGIN OF I_EKPO OCCURS 0,
    EBELN LIKE EKPO-EBELN, "PURCHASING DOCUMENT NUMBER
    EBELP LIKE EKPO-EBELP, "ITEM NUMBER OF PURCHASING DOCUMENT
    MATNR LIKE EKPO-MATNR, "MATERIAL NUMBER
    END OF I_EKPO,
    BEGIN OF I_VBAP OCCURS 0,
    VBELN LIKE VBAP-VBELN, "SALES DOCUMENT
    POSNR LIKE VBAP-POSNR, "SALES DOCUMENT ITEM
    MATNR LIKE VBAP-MATNR, "MATERIAL NUMBER
    END OF I_VBAP,
    BEGIN OF I_OUT OCCURS 0,
    MATNR LIKE MARC-MATNR,
    WERKS LIKE MARC-WERKS,
    LVORM LIKE MARC-LVORM,
    DISPO LIKE MARC-DISPO,
    MBRSH LIKE MARA-MBRSH,
    MEINS LIKE MARA-MEINS,
    MATKL LIKE MARA-MATKL,
    VKORG LIKE MVKE-VKORG,
    VTWEG LIKE MVKE-VTWEG,
    SPRAS LIKE MAKT-SPRAS,
    MAKTX LIKE MAKT-MAKTX,
    LGORT LIKE MARD-LGORT,
    LABST LIKE MARD-LABST,
    EBELN LIKE EKPO-EBELN,
    EBELP LIKE EKPO-EBELP,
    VBELN LIKE VBAP-VBELN,
    POSNR LIKE VBAP-POSNR,
    END OF I_OUT,
    BEGIN OF I_HEADING OCCURS 0,
    TEXT1(20),
    TEXT2(20),
    TEXT3(20),
    TEXT4(20),
    TEXT5(20),
    TEXT6(20),
    TEXT7(20),
    TEXT8(20),
    TEXT9(20),
    TEXT10(20),
    TEXT11(40),
    TEXT12(20),
    TEXT13(20),
    TEXT14(20),
    TEXT15(20),
    TEXT16(20),
    TEXT17(20),
    END OF I_HEADING.
    *& S E L E C T I O N - S C R E E N *
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-100.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR. "OBLIGATORY.
    PARAMETERS: P_WERKS LIKE MARC-WERKS. "OBLIGATORY.
    SELECT-OPTIONS: S_LGORT FOR MARD-LGORT,
    S_DISPO FOR MARC-DISPO,
    S_EBELN FOR EKPO-EBELN .
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-101.
    PARAMETERS : RB1 RADIOBUTTON GROUP G1,
    RB2 RADIOBUTTON GROUP G1,
    RB3 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF BLOCK B2.
    *& S T A R T - O F - S E L E C T I O N *
    START-OF-SELECTION.
    SELECT MATNR WERKS LVORM DISPO FROM MARC
    INTO CORRESPONDING FIELDS OF TABLE I_MARC
    WHERE MATNR IN S_MATNR
    AND DISPO IN S_DISPO
    AND WERKS = P_WERKS.
    IF I_MARC[] IS INITIAL.
    WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MARC'.
    EXIT.
    ENDIF.
    PERFORM PURCHASEDATA_VALIDATION.
    PERFORM SALESDATA_VALIDATION.
    SELECT MATNR LGORT LABST FROM MARD INTO TABLE I_MARD
    FOR ALL ENTRIES IN I_MARC
    WHERE MATNR = I_MARC-MATNR
    AND WERKS EQ P_WERKS
    AND LGORT IN S_LGORT.
    IF I_MARD[] IS INITIAL.
    WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MARD'.
    EXIT.
    ENDIF.
    SELECT MATNR VKORG VTWEG FROM MVKE INTO TABLE I_MVKE
    FOR ALL ENTRIES IN I_MARC
    WHERE MATNR = I_MARC-MATNR.
    IF I_MVKE[] IS INITIAL.
    WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MVKE'.
    EXIT.
    ENDIF.
    LOOP AT I_MARC.
    MOVE-CORRESPONDING I_MARC TO I_OUT.
    CLEAR MARC.
    SELECT SINGLE MATNR MBRSH MEINS MATKL FROM MARA
    INTO CORRESPONDING FIELDS OF MARA
    WHERE MATNR = I_OUT-MATNR.
    IF SY-SUBRC = 0.
    MOVE: MARA-MBRSH TO I_OUT-MBRSH,
    MARA-MEINS TO I_OUT-MEINS,
    MARA-MATKL TO I_OUT-MATKL.
    ELSE.
    CONTINUE.
    ENDIF.
    SELECT SINGLE MATNR MAKTX SPRAS FROM MAKT
    INTO CORRESPONDING FIELDS OF MAKT
    WHERE MATNR = I_OUT-MATNR.
    IF SY-SUBRC = 0.
    MOVE: MAKT-MAKTX TO I_OUT-MAKTX,
    MAKT-SPRAS TO I_OUT-SPRAS.
    ELSE.
    CONTINUE.
    ENDIF.
    LOOP AT I_EKPO WHERE MATNR = I_MARC-MATNR.
    MOVE: I_EKPO-EBELN TO I_OUT-EBELN,
    I_EKPO-EBELP TO I_OUT-EBELP.
    ENDLOOP.
    LOOP AT I_VBAP WHERE MATNR = I_MARC-MATNR.
    MOVE: I_VBAP-VBELN TO I_OUT-VBELN,
    I_VBAP-POSNR TO I_OUT-POSNR.
    ENDLOOP.
    LOOP AT I_MARD WHERE MATNR = I_MARC-MATNR.
    MOVE: I_MARD-LABST TO I_OUT-LABST,
    I_MARD-LGORT TO I_OUT-LGORT.
    ENDLOOP.
    LOOP AT I_MVKE WHERE MATNR = I_MARC-MATNR.
    MOVE: I_MVKE-VKORG TO I_OUT-VKORG,
    I_MVKE-VTWEG TO I_OUT-VTWEG.
    APPEND I_OUT.
    ENDLOOP.
    CLEAR I_OUT.
    ENDLOOP.
    PERFORM OPTIONS.
    FORM OPTIONS *
    FORM OPTIONS.
    IF RB2 = 'X'.
    PERFORM FIELDCAT.
    PERFORM OUTPUT.
    ELSE.
    IF RB1 = 'X'.
    PERFORM HEADINGS.
    PERFORM DLOAD.
    ELSE.
    IF RB3 = 'X'.
    PERFORM HEADINGS.
    PERFORM DLOAD.
    PERFORM FIELDCAT.
    PERFORM OUTPUT.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDFORM. "OPTIONS
    FORM HEADINGS *
    FORM HEADINGS.
    I_HEADING-TEXT1 = 'MATNR'.
    I_HEADING-TEXT2 = 'WERKS'.
    I_HEADING-TEXT3 = 'LVORM'.
    I_HEADING-TEXT4 = 'DISPO'.
    I_HEADING-TEXT5 = 'MBRSH'.
    I_HEADING-TEXT6 = 'MEINS'.
    I_HEADING-TEXT7 = 'MATKL'.
    I_HEADING-TEXT8 = 'VKORG'.
    I_HEADING-TEXT9 = 'VTWEG'.
    I_HEADING-TEXT10 = 'SPRAS'.
    I_HEADING-TEXT11 = 'MAKTX'.
    I_HEADING-TEXT12 = 'LGORT'.
    I_HEADING-TEXT13 = 'LABST'.
    I_HEADING-TEXT14 = 'EBELN'.
    I_HEADING-TEXT15 = 'EBELP'.
    I_HEADING-TEXT16 = 'VBELN'.
    I_HEADING-TEXT17 = 'POSNR'.
    APPEND I_HEADING.
    ENDFORM. "HEADINGS
    FORM DLOAD *
    FORM DLOAD.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    FILENAME = 'C:\MATSTK.XLS'
    FILETYPE = 'DAT'
    WRITE_FIELD_SEPARATOR = 'X'
    TABLES
    DATA_TAB = I_HEADING
    EXCEPTIONS
    FILE_WRITE_ERROR = 1.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    FILENAME = 'C:\MATSTK.XLS'
    FILETYPE = 'DAT'
    APPEND = 'X'
    WRITE_FIELD_SEPARATOR = 'X'
    TABLES
    DATA_TAB = I_OUT.
    ENDFORM. "DLOAD
    FORM FIELDCAT *
    FORM FIELDCAT.
    V_FIELDCAT-COL_POS = '1'.
    V_FIELDCAT-FIELDNAME = 'MATNR'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-HOTSPOT = 'X'.
    V_FIELDCAT-REF_FIELDNAME = 'MATNR'.
    V_FIELDCAT-REF_TABNAME = 'MARC'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '2'.
    V_FIELDCAT-FIELDNAME = 'WERKS'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-REF_FIELDNAME = 'WERKS'.
    V_FIELDCAT-REF_TABNAME = 'MARC'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '3'.
    V_FIELDCAT-FIELDNAME = 'LVORM'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-REF_FIELDNAME = 'LVORM'.
    V_FIELDCAT-REF_TABNAME = 'MARC'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '4'.
    V_FIELDCAT-FIELDNAME = 'DISPO'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-REF_FIELDNAME = 'DISPO'.
    V_FIELDCAT-REF_TABNAME = 'MARC'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '5'.
    V_FIELDCAT-FIELDNAME = 'MBRSH'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-REF_FIELDNAME = 'MBRSH'.
    V_FIELDCAT-REF_TABNAME = 'MARA'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '6'.
    V_FIELDCAT-FIELDNAME = 'MEINS'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-REF_FIELDNAME = 'MEINS'.
    V_FIELDCAT-REF_TABNAME = 'MARA'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '7'.
    V_FIELDCAT-FIELDNAME = 'MATKL'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-REF_FIELDNAME = 'MATKL'.
    V_FIELDCAT-REF_TABNAME = 'MARA'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '8'.
    V_FIELDCAT-FIELDNAME = 'VKORG'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-REF_FIELDNAME = 'VKORG'.
    V_FIELDCAT-REF_TABNAME = 'MVKE'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '9'.
    V_FIELDCAT-FIELDNAME = 'VTWEG'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-REF_FIELDNAME = 'VTWEG'.
    V_FIELDCAT-REF_TABNAME = 'MVKE'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '10'.
    V_FIELDCAT-FIELDNAME = 'SPRAS'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-REF_FIELDNAME = 'SPRAS'.
    V_FIELDCAT-REF_TABNAME = 'MAKT'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '11'.
    V_FIELDCAT-FIELDNAME = 'MAKTX'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-REF_FIELDNAME = 'MAKTX'.
    V_FIELDCAT-REF_TABNAME = 'MAKT'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '12'.
    V_FIELDCAT-FIELDNAME = 'LGORT'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-REF_FIELDNAME = 'LGORT'.
    V_FIELDCAT-REF_TABNAME = 'MARD'.
    V_FIELDCAT-SELTEXT_L = 'STRG LOCT'.
    V_FIELDCAT-OUTPUTLEN = 10.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '13'.
    V_FIELDCAT-FIELDNAME = 'LABST'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-SELTEXT_M = 'STOCK'.
    V_FIELDCAT-OUTPUTLEN = 15.
    V_FIELDCAT-REF_FIELDNAME = 'LABST'.
    V_FIELDCAT-REF_TABNAME = 'MARD'.
    V_FIELDCAT-DO_SUM = 'X'.
    V_LAYOUT-TOTALS_TEXT = 'TOTAL STOCK:'.
    V_FIELDCAT-HOTSPOT = 'X'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '14'.
    V_FIELDCAT-FIELDNAME = 'EBELN'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-HOTSPOT = 'X'.
    V_FIELDCAT-REF_FIELDNAME = 'EBELN'.
    V_FIELDCAT-REF_TABNAME = 'EKPO'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '15'.
    V_FIELDCAT-FIELDNAME = 'EBELP'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-REF_FIELDNAME = 'EBELP'.
    V_FIELDCAT-REF_TABNAME = 'EKPO'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '16'.
    V_FIELDCAT-FIELDNAME = 'VBELN'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-HOTSPOT = 'X'.
    V_FIELDCAT-REF_FIELDNAME = 'VBELN'.
    V_FIELDCAT-REF_TABNAME = 'VBAP'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    V_FIELDCAT-COL_POS = '17'.
    V_FIELDCAT-FIELDNAME = 'POSNR'.
    V_FIELDCAT-TABNAME = 'I_OUT'.
    V_FIELDCAT-REF_FIELDNAME = 'POSNR'.
    V_FIELDCAT-REF_TABNAME = 'VBAP'.
    APPEND V_FIELDCAT TO VT_FIELDCAT1.
    CLEAR V_FIELDCAT.
    ENDFORM. "FIELDCAT
    FORM OUTPUT *
    FORM OUTPUT.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'
    I_GRID_TITLE = 'CLICK ON MATERIAL/PURDOC/SALESDOC FOR DETAILS'
    I_CALLBACK_USER_COMMAND = 'DISPLAYDETAILS'
    IS_LAYOUT = V_LAYOUT
    IT_FIELDCAT = VT_FIELDCAT1
    TABLES
    T_OUTTAB = I_OUT.
    IF SY-SUBRC 0.
    ENDIF.
    ENDFORM. "OUTPUT
    FORM TOP-OF-PAGE *
    FORM TOP-OF-PAGE.
    DATA: T_HEADER TYPE SLIS_T_LISTHEADER,
    WA_HEADER TYPE SLIS_LISTHEADER.
    WA_HEADER-TYP = 'H'.
    WA_HEADER-INFO = 'REPORT FOR : '.
    APPEND WA_HEADER TO T_HEADER.
    CLEAR WA_HEADER.
    WA_HEADER-TYP = 'S'.
    WA_HEADER-INFO = 'MATERIAL DETAILS'.
    APPEND WA_HEADER TO T_HEADER.
    CLEAR WA_HEADER.
    WA_HEADER-TYP = 'S'.
    WA_HEADER-INFO = 'PURCHASE ORDER DETAILS'.
    APPEND WA_HEADER TO T_HEADER.
    CLEAR WA_HEADER.
    WA_HEADER-TYP = 'S'.
    WA_HEADER-INFO = 'SALES ORDER DETAILS'.
    APPEND WA_HEADER TO T_HEADER.
    CLEAR WA_HEADER.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    I_LOGO = 'GEAR'
    IT_LIST_COMMENTARY = T_HEADER.
    ENDFORM. "TOP-OF-PAGE
    *& FORM PURCHASEDATA_VALIDATION *
    FORM PURCHASEDATA_VALIDATION.
    SELECT EBELN EBELP MATNR
    FROM EKPO
    INTO TABLE I_EKPO
    FOR ALL ENTRIES IN I_MARC
    WHERE MATNR = I_MARC-MATNR
    AND EBELN IN S_EBELN
    AND WERKS EQ P_WERKS.
    IF I_EKPO[] IS INITIAL.
    WRITE:/ 'NO MATCHING DATA IS SELECTED FROM TABLE EKPO'.
    EXIT.
    ENDIF.
    DATA: T_EKPO LIKE I_EKPO OCCURS 0 WITH HEADER LINE.
    T_EKPO] = I_EKPO[.
    REFRESH I_EKPO.
    FREE I_EKPO.
    LOOP AT T_EKPO.
    SELECT SINGLE EBELN FROM EKKO INTO EKPO-EBELN
    WHERE EBELN = T_EKPO-EBELN.
    IF SY-SUBRC = 0.
    MOVE-CORRESPONDING T_EKPO TO I_EKPO.
    APPEND I_EKPO.
    CLEAR I_EKPO.
    ELSE.
    CONTINUE.
    ENDIF.
    ENDLOOP.
    SORT I_EKPO.
    ENDFORM. "PURCHASEDATA_VALIDATION
    *& FORM SALESDATA_VALIDATION *
    FORM SALESDATA_VALIDATION.
    SELECT VBELN POSNR MATNR
    FROM VBAP
    INTO CORRESPONDING FIELDS OF TABLE
    I_VBAP FOR ALL ENTRIES IN I_MARC
    WHERE MATNR = I_MARC-MATNR.
    DATA: T_VBAP LIKE I_VBAP OCCURS 0 WITH HEADER LINE.
    T_VBAP] = I_VBAP[.
    REFRESH I_VBAP.
    FREE I_VBAP.
    LOOP AT T_VBAP.
    SELECT SINGLE VBELN FROM VBAK INTO VBAK-VBELN
    WHERE VBELN = T_VBAP-VBELN.
    IF SY-SUBRC = 0.
    MOVE-CORRESPONDING T_VBAP TO I_VBAP.
    APPEND I_VBAP.
    CLEAR I_VBAP.
    ELSE.
    CONTINUE.
    ENDIF.
    ENDLOOP.
    SORT I_VBAP.
    ENDFORM. "SALESDATA_VALIDATION

  • Problem while downloading a ALV report to excel

    Hi experts,
    I have an ALV report which took long time to extract records from various table. So while there is some restriction the report can be executed well in foreground. And the report can be extracted well to excel sheet. But while there is hudge records, i have to execute the report in backgroung. And then from spool i generally prefers to download the report to excel.
    There is a field UOM where it contains value ' " ' for some records. And also there may be possiblity that other fields can also contain the same.
    Now my problem is: while download to excel... When ever there is a value ' " ' from this point to the next value ' " '. It is treating as one record. and keep that in a same position in the excel sheet.
    But i want to keep all the values in there respective fields. Can you please how can i do that? Please give me some solution...
    regards,
    charles.

    If anybody have any solution please send me....

  • Alv report into excel file.

    Hello experts,
    I have alv report , and i want to export this alv to excel file, how can i do this ?
    Thanks for your help.
    Avi.

    Hi Avi,
    U can download to any format by using ctrlshiftF9 or using the button to 'Local File'. Then  apopup appears as:
    In which format should the list
    be saved ?
    And some radio buttons. U select the 'SPreadsheet' option for excel.
    And click enter.Then it will prompt for the Directory and filename for saving.
    Keerthi

  • Download the alv report in excel

    dear experts
    I am creating ALV report and working fine, i want the report sould be viewed in excel format when i click the icon on AlV display
    with regards.
    Ajay Kumar.

    Hi Ajay,
    SAP has provided the user interface for downloading the data into an excel file in the tool bar there is an option for downloading into excel.
    Another way is to write a code using the function module alsm_excel and then downloading into the excel,
    please tell me whether this reply was useful or for further clarification revert back
    Thanks in advance
    Srikanth

  • How to export a dynamically generated datatable into excel sheet 2013?

    I have one data table and in that data table i am fetching data from sharepoint 2013 lists.
    When I export that data table into excel sheet, what ever data is static will be shown but the data which I fetch from lists are not coming.
    How should I get that data in my excel sheet from that data table?
    This is the code for Export to Excel:
    public void ExportToExcel(DataTable dt)
    if (dt.Rows.Count > 0)
    string filename = "WebTrafficReport.xls";
    System.IO.StringWriter tw = new System.IO.StringWriter();
    System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw);
    DataGrid dgGrid = new DataGrid();
    dgGrid.DataSource = dt;
    dgGrid.DataBind();
    //Get the HTML for the control.
    dgGrid.RenderControl(hw);
    //Write the HTML back to the browser.
    //Response.ContentType = application/vnd.ms-excel;
    Response.ContentType = "application/vnd.ms-excel";
    Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename + "");
    this.EnableViewState = false;
    Response.Write(tw.ToString());
    Response.End();
    Thanks in Advance.

    ublic void ExportToExcel(DataTable dt)
    if (dt.Rows.Count > 0)
    string filename = "WebTrafficReport.xls";
    System.IO.StringWriter tw = new System.IO.StringWriter();
    System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw);
    DataGrid dgGrid = new DataGrid();
    dgGrid.DataSource = dt;
    dgGrid.DataBind();
    //Get the HTML for the control.
    dgGrid.RenderControl(hw);
    //Write the HTML back to the browser.
    //Response.ContentType = application/vnd.ms-excel;
    Response.ContentType = "application/vnd.ms-excel";
    Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename + "");
    this.EnableViewState = false;
    HttpContext.Current.Response.Write(sw.ToString());
                        HttpContext.Current.Response.Flush();
                        HttpContext.Current.Response.End();
    }}try this should help

  • How can i create multiple page report using excel report generation toolkit from excel template?

    i am having code which create report in excel.but it prints only single page. if content is more than size of template than insted of tacking new page it prints only single page.Please help me out.
    Anyone has material for learning activeX in labview? Please mail me on [email protected] 
    PBP (CLAD)
    Labview 6.1 - 2014
    KUDOS ARE WELCOMED.
    If your problem get solved then mark as solution.

    Hi thanks for reply.....
    PBP (CLAD)
    Labview 6.1 - 2014
    KUDOS ARE WELCOMED.
    If your problem get solved then mark as solution.

  • How can I download the Crystal Report Viewer XI

    We need a way for users who recieve .rpt files as email attachements distributed from BOE XI R2 to be able to view the reports and use drill-down functionality without being able to edit the report.
    I found the Crystal Reports Viewer XI R2 release notes at help.sap.com but need to know from where to download so that we can install on users' machines.  The note references CRViewerXI.exe but I need to know where to get that file?

    Thanks...  I was able to download / install....
    As a seperate issue: we're getting an error when trying to open a report generated out of boe xi r2 sp4....the report does have "save data" with report....  I send to myself via email, save the rpt but when I try to open on a machine with viewer installed....it tries and gets to the end and presents an 'unexpected error' with detail:
    any suggestions?  I put in case# 1020775
    Product Info:
    Crystal Reports Viewer 2008
    com.businessobjects.crystalreports.viewer.shell.application
    JVM Info:
    1.6.0_02-b05
    Sun Microsystems Inc.
    Java HotSpot(TM) Client VM
    System Configuration:
    win32
    x86
    en_US
    Plug-ins:
    org.eclipse.osgi version: 3.4.0.v20080605-1900
    org.eclipse.equinox.common version: 3.4.0.v20080421-2006
    org.eclipse.update.configurator version: 3.2.200.v20080417
    org.eclipse.core.runtime version: 3.4.0.v20080512
    com.businessobjects.crystalreports.designer.BOEIntegration.cs version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.de version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.en version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.es version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.fr version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.hu version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.it version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.ja version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.ko version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.nl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.pl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.pt version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.ru version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.sv version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.zh version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.zh_HK version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.zh_MO version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.zh_MY version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration.zh_TW version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.BOEIntegration version: 12.2.0.r325
    com.businessobjects.crystalreports.boesdk.libs version: 12.0.0
    com.businessobjects.crystalreports.boesdk version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.cs version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.de version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.en version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.es version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.fr version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.hu version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.it version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.ja version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.ko version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.nl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.pl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.pt version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.ru version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.sv version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.zh version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.zh_HK version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.zh_MO version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.zh_MY version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core.zh_TW version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.core version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.cs version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.de version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.en version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.es version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.fr version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.hu version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.it version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.ja version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.ko version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.nl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.pl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.pt version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.ru version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.sv version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.zh version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.zh_HK version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.zh_MO version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.zh_MY version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration.zh_TW version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.CRDCIntegration version: 12.2.0.r325
    com.businessobjects.crystalreports.crdcsdk.libs version: 12.0.0
    com.businessobjects.crystalreports.crdcsdk version: 12.2.0.r325
    com.businessobjects.crystalreports.crsdk.libs version: 12.2.0.r325
    com.businessobjects.crystalreports.crsdk version: 12.2.0.r325
    com.businessobjects.GEFUtilities.cs version: 12.2.0.r325
    com.businessobjects.GEFUtilities.de version: 12.2.0.r325
    com.businessobjects.GEFUtilities.en version: 12.2.0.r325
    com.businessobjects.GEFUtilities.es version: 12.2.0.r325
    com.businessobjects.GEFUtilities.fr version: 12.2.0.r325
    com.businessobjects.GEFUtilities.hu version: 12.2.0.r325
    com.businessobjects.GEFUtilities.it version: 12.2.0.r325
    com.businessobjects.GEFUtilities.ja version: 12.2.0.r325
    com.businessobjects.GEFUtilities.ko version: 12.2.0.r325
    com.businessobjects.GEFUtilities.nl version: 12.2.0.r325
    com.businessobjects.GEFUtilities.pl version: 12.2.0.r325
    com.businessobjects.GEFUtilities.pt version: 12.2.0.r325
    com.businessobjects.GEFUtilities.ru version: 12.2.0.r325
    com.businessobjects.GEFUtilities.sv version: 12.2.0.r325
    com.businessobjects.GEFUtilities.zh version: 12.2.0.r325
    com.businessobjects.GEFUtilities.zh_HK version: 12.2.0.r325
    com.businessobjects.GEFUtilities.zh_MO version: 12.2.0.r325
    com.businessobjects.GEFUtilities.zh_MY version: 12.2.0.r325
    com.businessobjects.GEFUtilities.zh_TW version: 12.2.0.r325
    com.businessobjects.GEFUtilities version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.cs version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.de version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.en version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.es version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.fr version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.hu version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.it version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.ja version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.ko version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.nl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.pl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.pt version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.ru version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.sv version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.zh version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.zh_HK version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.zh_MO version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.zh_MY version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase.zh_TW version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.IntegrationBase version: 12.2.0.r325
    com.businessobjects.crystalreports.platformext.win32 version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.cs version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.de version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.en version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.es version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.fr version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.hu version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.it version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.ja version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.ko version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.nl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.pl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.pt version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.ru version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.sv version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.zh version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.zh_HK version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.zh_MO version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.zh_MY version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui.zh_TW version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.promptingui version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.cs version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.de version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.en version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.es version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.fr version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.hu version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.it version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.ja version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.ko version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.nl version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.pl version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.pt version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.ru version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.sv version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.zh version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.zh_HK version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.zh_MO version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.zh_MY version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities.zh_TW version: 12.2.0.r325
    com.businessobjects.RCPRuntimeUtilities version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.cs version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.de version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.en version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.es version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.fr version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.hu version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.it version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.ja version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.ko version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.nl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.pl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.pt version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.ru version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.sv version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.zh version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.zh_HK version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.zh_MO version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.zh_MY version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage.zh_TW version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.readingpage version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.cs version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.de version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.en version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.es version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.fr version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.hu version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.it version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.ja version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.ko version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.nl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.pl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.pt version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.ru version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.sv version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.zh version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.zh_HK version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.zh_MO version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.zh_MY version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib.zh_TW version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.reportviewlib version: 12.2.0.r325
    com.businessobjects.SWTUtilities.cs version: 12.2.0.r325
    com.businessobjects.SWTUtilities.de version: 12.2.0.r325
    com.businessobjects.SWTUtilities.en version: 12.2.0.r325
    com.businessobjects.SWTUtilities.es version: 12.2.0.r325
    com.businessobjects.SWTUtilities.fr version: 12.2.0.r325
    com.businessobjects.SWTUtilities.hu version: 12.2.0.r325
    com.businessobjects.SWTUtilities.it version: 12.2.0.r325
    com.businessobjects.SWTUtilities.ja version: 12.2.0.r325
    com.businessobjects.SWTUtilities.ko version: 12.2.0.r325
    com.businessobjects.SWTUtilities.nl version: 12.2.0.r325
    com.businessobjects.SWTUtilities.pl version: 12.2.0.r325
    com.businessobjects.SWTUtilities.pt version: 12.2.0.r325
    com.businessobjects.SWTUtilities.ru version: 12.2.0.r325
    com.businessobjects.SWTUtilities.sv version: 12.2.0.r325
    com.businessobjects.SWTUtilities.zh version: 12.2.0.r325
    com.businessobjects.SWTUtilities.zh_HK version: 12.2.0.r325
    com.businessobjects.SWTUtilities.zh_MO version: 12.2.0.r325
    com.businessobjects.SWTUtilities.zh_MY version: 12.2.0.r325
    com.businessobjects.SWTUtilities.zh_TW version: 12.2.0.r325
    com.businessobjects.SWTUtilities version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.cs version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.de version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.en version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.es version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.fr version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.hu version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.it version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.ja version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.ko version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.nl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.pl version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.pt version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.ru version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.sv version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.zh version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.zh_HK version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.zh_MO version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.zh_MY version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase.zh_TW version: 12.2.0.r325
    com.businessobjects.crystalreports.designer.uibase version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.cs version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.de version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.en version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.es version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.fr version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.hu version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.it version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.ja version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.ko version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.nl version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.pl version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.pt version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.ru version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.sv version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.zh version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.zh_HK version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.zh_MO version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.zh_MY version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin.zh_TW version: 12.2.0.r325
    com.businessobjects.crystalreports.updateserviceplugin version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.cs version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.de version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.en version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.es version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.fr version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.hu version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.it version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.ja version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.ko version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.nl version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.pl version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.pt version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.ru version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.sv version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.zh version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.zh_HK version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.zh_MO version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.zh_MY version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell.zh_TW version: 12.2.0.r325
    com.businessobjects.crystalreports.viewershellext.win32 version: 12.2.0.r325
    com.businessobjects.crystalreports.viewer.shell version: 12.2.0.r325
    com.businessobjects.ui.controls.de version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.en version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.es version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.fr version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.it version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.ja version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.ko version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.nl version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.pl version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.pt version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.ru version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.sv version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.zh version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.zh_HK version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.zh_MO version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.zh_MY version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls.zh_TW version: 12.0.0.r325_v20080731
    com.businessobjects.ui.controls version: 12.0.0.r325_v20080731
    com.ibm.icu version: 3.8.1.v20080530
    org.eclipse.core.commands version: 3.4.0.I20080509-2000
    org.eclipse.core.contenttype version: 3.3.0.v20080604-1400
    org.eclipse.core.databinding version: 1.1.0.I20080527-2000
    org.eclipse.core.expressions version: 3.4.0.v20080603-2000
    org.eclipse.core.jobs version: 3.4.0.v20080512
    org.eclipse.core.runtime.compatibility.auth version: 3.2.100.v20070502
    org.eclipse.draw2d version: 3.4.0.v20080529
    org.eclipse.equinox.app version: 1.1.0.v20080421-2006
    org.eclipse.equinox.launcher.win32.win32.x86 version: 1.0.100.v20080509-1800
    org.eclipse.equinox.launcher version: 1.0.100.v20080509-1800
    org.eclipse.equinox.preferences version: 3.2.200.v20080421-2006
    org.eclipse.equinox.registry version: 3.4.0.v20080516-0950
    org.eclipse.gef version: 3.4.0.v20080526
    org.eclipse.help version: 3.3.100.v20080610
    org.eclipse.jface.databinding version: 1.2.0.I20080515-2000a
    org.eclipse.jface version: 3.4.0.I20080606-1300
    org.eclipse.rcp version: 3.4.0.v20080507
    org.eclipse.swt.win32.win32.x86 version: 3.4.0.v3448f
    org.eclipse.swt version: 3.4.0.v3448f
    org.eclipse.ui.views version: 3.3.0.I20080509-2000
    org.eclipse.ui.workbench version: 3.4.0.I20080606-1300
    org.eclipse.ui version: 3.4.0.I20080610-1200
    Libraries:
    C:\Program Files\Business Objects\Crystal Reports Viewer 2008\libs\CR\us.jar version: null
    Stack Trace:
    Caused by : java.lang.IndexOutOfBoundsException
    com.crystaldecisions.reports.formulas.FieldExpression$Type.a(Unknown Source)
    com.crystaldecisions.reports.formulas.ExpressionNode.getType(Unknown Source)
    com.crystaldecisions.reports.datafoundation.DFQuery.a(Unknown Source)
    com.crystaldecisions.reports.datafoundation.DFQuery.a(Unknown Source)
    com.crystaldecisions.reports.datafoundation.DFQuery.a(Unknown Source)
    com.crystaldecisions.reports.datafoundation.DFQuery.<init>(Unknown Source)
    com.crystaldecisions.reports.datafoundation.DFRuntime.if(Unknown Source)
    com.crystaldecisions.reports.datafoundation.DFRuntime.a(Unknown Source)
    com.crystaldecisions.reports.datalayer.a.if(Unknown Source)
    com.crystaldecisions.reports.datalayer.a.char(Unknown Source)
    com.crystaldecisions.reports.datalayer.a.long(Unknown Source)
    com.crystaldecisions.reports.datalayer.a.f(Unknown Source)
    com.crystaldecisions.reports.datalayer.a.c(Unknown Source)
    com.crystaldecisions.reports.datalayer.a.case(Unknown Source)
    com.crystaldecisions.reports.dataengine.m.char(Unknown Source)
    com.crystaldecisions.reports.dataengine.j.char(Unknown Source)
    com.crystaldecisions.reports.dataengine.m.j(Unknown Source)
    com.crystaldecisions.reports.dataengine.m.a(Unknown Source)
    com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
    com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
    com.crystaldecisions.reports.dataengine.j.case(Unknown Source)
    com.crystaldecisions.reports.dataengine.h.<init>(Unknown Source)
    com.crystaldecisions.reports.dataengine.DataContext.a(Unknown Source)
    com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
    com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
    com.crystaldecisions.reports.dataengine.DataProcessor2.new(Unknown Source)
    com.crystaldecisions.reports.dataengine.DataProcessor2.try(Unknown Source)
    com.crystaldecisions.reports.dataengine.DataProcessor2.int(Unknown Source)
    com.crystaldecisions.reports.dataengine.DataProcessor2.I(Unknown Source)
    com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fl(Unknown Source)
    com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(Unknown Source)
    com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(Unknown Source)
    com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.Y(Unknown Source)
    com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(Unknown Source)
    com.crystaldecisions.reports.formatter.formatter.lightmodel.FCMPageFormatter.goToPage(Unknown Source)
    com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.B(Unknown Source)
    com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.A(Unknown Source)
    com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages.create(Unknown Source)
    com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedDocumentModeller.getValidFormattedPages(Unknown Source)
    com.businessobjects.crystalreports.designer.reportviewlib.FormattedModelHelper$1.A(Unknown Source)
    com.businessobjects.crystalreports.designer.reportviewlib.FormattedModelHelper$1.call(Unknown Source)
    com.businessobjects.crystalreports.designer.uibase.dialogs.ProgressMonitorDialog$6.run(Unknown Source)
    org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

  • Reg: Download report into Excel file

    Hi All,
    While downloading the ALV report into excel file(System -> List -> Save -> Local file) or (List -> Export -> Local file), i cannot download full report in to excel. Even though the report contains just 200 rows(I can able to download about 90 lines).
    Some reports can able to download all the data, even the report is very big. Currently I am blind to solve, anyone can help me to solve this issue.
    Thanks in advance.

    The most elegant way of downloading ALV display data to EXCEL is displaying the excel in the SAP GUI screen itself.  Select "Excel in Place" and then save it from there. Before that you need to let the VB script of SAP know as trusted macro. This is done by opening a blank excel file then go to Tools > options > Security > Macro Security > Trusted Publishers (tab) > (check) Trust access to Visual Basic Project.  This activation is one time activation. Once you do this you can see ALV display exactly like in normal ALV with all the colors fields etc.

  • Download ALV report to excel sheet

    halo fellow SAPiens,
    i want to download my alv report into excel sheet...........for tht i used UGI_DOWNLOAD........here if i use the file type as 'ASC' all the leading zeros of numeric values are removed and date format is "yyyy/mm/dd".......
    i need the leading zeros and date format in "dd/mmyyy"
    when i use file type 'DBF' i get the leading zeros but my date is replaced by '#####.............wht shld i do...........

    To get the leading zeros to come, append an apostrophe to the start of each field that has the leading zeros as shown
    loop at itab.
    concatenate '''' itab-field1 into itab-field1.
    modify itab.
    endloop.
    note that
    1. This sometimes doesnt show correctly in excel and you may have to double click on the cell to prevent the apostrophe from displaying in the sheet
    2. You field needs to have an extra character to add the apostrophe

  • How to convert ALV report to Excel ??

    Hi,
    My requirement is to show ALV report in the excel .
    I have 2 radio buttons in Selection screen :
    1)  ALV  format                           2) Excel.
    If excel is selected then user will give a path : C :\newexcelreport.xls
    I knew that there is a way to download report through ALV report using download into local file. But the requirement is to create a report in Excel same like ALV report .
    I tried using GUI_Download . But it is displaying some fields wrongly, ex : Date , Time, without header .
    Date is showing year month date format in the excel .
    time is showing in a numeric format.
    But the ALV report is showing correct report . When I download into local then the report is showing correct results .
    Is there any function module to download exact ALV report into excel .??
    Thanks & Regards,
    Varma

    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.

  • Alv report to excel

    How can i convert an alv report to excel using abap code?

    Thank you very much, but how can i convert the alv list into internal table?
    I am using this code but dont work
    REPORT Z_SAMPLE.
    TYPES tipoLinea(1024) TYPE c.
    DATA: begin of TablaLinea occurs 0,
          linea type tipoLinea,
    END OF TablaLinea.
    DATA lista LIKE abaplist OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'LIST_FREE_MEMORY'
    TABLES
    listobject = lista.
    SUBMIT  rhrhaz00
           AND RETURN
           EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = lista
    EXCEPTIONS
    OTHERS = 1.
    WRITE: / 'C:', SY-SUBRC.
    perform save_ascii_list.
    LOOP AT TablaLinea.
       WRITE: / TablaLinea-linea.
    ENDLOOP.
    WRITE: / 'C:', SY-SUBRC.
    * FUNCTION: save_ascii_list
    form save_ascii_list.
    CALL FUNCTION 'LIST_TO_ASCI'
    EXPORTING
    LIST_INDEX = -1
    TABLES listasci = TablaLinea
    listobject = lista
    EXCEPTIONS empty_list = 1
    list_index_invalid = 2
    OTHERS = 3.
    IF sy-subrc <> 0. ENDIF.
    endform.
    Another question, this code is showing the alv list in the screen and i dont want to appear, just convert directly into internal table. How to do that?

  • Problem in downloading ALV report to Excel

    hi All,
    i am facing the problem when i am trying to download the ALV report to Excel format i should have the option to  save as  the Excel file from the dropdown where as instead of it i am getting the option to save as XML file.
    is it something related to settings in SAP or is it done through programatically.
    thanks,

    Anyways is this happening for every one in your team or just for one. If the latter, looks like the user has selected the download in XML format & checked the "remember these settings" checkbox
    You can refer to this link on how to change the default settings: [http://home4sap.com/Blog/2010/03/ecc5-0-alv-default-file-format-when-extracting-files-to-excel/|http://home4sap.com/Blog/2010/03/ecc5-0-alv-default-file-format-when-extracting-files-to-excel/]
    You can also check this SAP offers the possibility to make from transaction FAGLB03 a download
    Edited by: Suhas Saha on Apr 13, 2010 4:40 PM

  • Download alv report to excel in linux

    Hi All,
    I am working on SAP GUI for Java in Linux PC. I have installed
    Open Office.
    After executing an alv report there is no spreadsheet option
    to download the report in excel format .
    Also, when doing Save as Local File -> Spreadsheet ,
    the report is not downloaded in proper format.
    So, how to download the alv reports in excel format ?
    Edited by: Vinod Iyer on Jan 8, 2008 11:51 AM

    The problem of course is that you can't actually call up EXCEL on a Linux machine so such XXL functions  as  call function 'ALV_XXL_CALL' will not work.
    I don't think SAP has OPEN OFFICE integration -- and even if you use EXCEL via the Linux Cross Over Office it is unlikely to work.
    You might need to fiddle around with the internal file format yourself before saving it as a local file.
    For EXCEL 2007 you actually have a better chance since if you save in TRUE EXCEL 2007 format the data is saved in a type of XML file.
    You can read about the EXCEL 2007 new file formats on the M$ site. Note however that you will need to download the EXCEL 2007 file viwer to read the file with earlier versions of EXCEL.
    (You can use EXCEL 2007 in "compatability" mode but using an XML file IMO seems a better option).
    If you use a lot of EXCEL functionality probably the best option is to install Windows as a VM on your linux machine (VMWARE/PARALLELS/VMBOX etc) and then run the standard SAPGUI from the Windows VM.
    Probably not the answer you want but it's the best I can do.
    Cheers
    jimbo

Maybe you are looking for

  • Does SAP Provide any standard conversion program for Batch Managment activa

    Hi, An idea if SAP Provides any standard program to conversion of non batch managed material to batch managed material in a productive SAP Environment and close open documents, It would be great help if somebody can reply to these queries. Thanks in

  • 1st gen iPod became a paper weight after last update

    For the last couple of months, I've posted and read all posts, visited the Apple store three times to check in with the Geniuses, have emailed Apple with feedback, have upgraded and downgraded systems with different OSX versions, have tried 8 differe

  • PDF export with menus auto open

    Is there a way to export a PDF for a client so that when they click on your PDF, a certain PDF menu opens automatically with it (like the 3D model tree)? Or the layers fly out side menu? Or to have certain tools open across the top? Thanks friends, T

  • Airport extreme and express & apple TV

    I have an airport extreme and express & apple TV. I'd like to do the following: 1) Extend the network via the express 2) Enable the express to stream music to the stereo from the apple TV I am sure someone has figured this out but I can't find the an

  • My calendar does not send meeting invitations

    I selected my info. contact for myself, and I can receive invitations from other iphones, but when I send an invititation, nothing happens.