ALV Export to excel (spreadsheet) without line break

my ALV report contains 76 columns, if i try to download it in an excel sheel its not getting displayed in correct format.
Few columns are automatically displayed in the second row and also all my values are getting collapsed due to this display.
In the print preview also i am getting the same problem.
Is there any column limit in ALV display or i can make it to get display correctly as it is in the exact output.
ALv reports contain various options such as sort,filter,print preview, download to excel etc....in this if i use the download to excel option in the excel sheet its getting displayed as col1,col2,col3.......col54
col55,col56.................col75
but i need the output to be in a single line such as col1,col2,col3,.........col75
I do not want the line break.
Edited by: Suhas Khengle on Oct 1, 2008 11:50 AM

Hi Suhas,
Can you tell me what was the solution for your issue? I'm also facing same issue
Regards,
Siva

Similar Messages

  • ALV Export to Excel problem

    Hi All
    I have a problem with exporting a ALV Grid to Excel. If I add the quantity field to my Grid output the excel spreadsheet does not bring through the quantity field and it puts all the other columns one place out. I tried changing field attributes from QUAN to CHAR field and it made no difference.
    I am using the standard sap functionality:
    List > Save > Local File > Spreadsheet
    It works fine as long as I do not include my quantity column? I have tried many other custom FM's with no luck because all of them require you to put in a internal table inside the function but I do not want to send whole internal table to spreadsheet only the ones selected in the ALV Grid. So please do not suggest function modules as I have had no luck with these!
    I need to know how to use the standard sap alv export to excel function with my quantity field? The only issue I can think of that would cause a error would be that I have 50+ columns on the grid and internal table. Even If I put quantity field by itself in the grid then export to excel it brings through the Qty header but no data.

    Hi Atish
    Quantity is below: (RMNGE)
    Data type is QUAN, Length 10, Decimal places 0.
    DATA: BEGIN OF I_DATA OCCURS 0.
             INCLUDE STRUCTURE ZWRNTHDR.
    DATA:   POSNR LIKE ZWRNTITM-POSNR,      "Sales Document Item
             MATNR LIKE ZWRNTITM-MATNR,      "Material Number
             CLRFL LIKE ZWRNTITM-CLRFL,      "Claim Reference Line ID
             PCBPN LIKE ZWRNTITM-PCBPN,      "PCB Part Number
             PCBPX LIKE MAKT-MAKTX,          "PCB Part Number Description
             RMNGE LIKE ZWRNTITM-RMNGE,      "Quantity
             MEINS LIKE ZWRNTITM-MEINS,      "Base Unit of Measure
             WRNTC LIKE ZWRNTITM-WRNTC,      "Warranty Claimed
             WRNTG(3) TYPE C,                "Warranty Given
             FLTCD LIKE ZWRNTITM-FLTCD,      "Fault Code
             MFATE LIKE ZWRNTITM-MFATE,      "Module Fate
             CMNTS LIKE ZWRNTITM-CMNTS,      "Comments
             SRIAL LIKE ZWRNTITM-SRIAL,      "Serial Number
             PFREX LIKE ZWRNTITM-PFREX,      "PFR External
             PFINT LIKE ZWRNTITM-PFINT,      "PFR Internal
             RLCRQ LIKE ZWRNTITM-RLCRQ,      "Replacement Requested
             TCHID LIKE ZWRNTITM-TCHID,      "Technician ID
             PMATN LIKE ZWRNTITM-PMATN,      "Parent Material
             PMATX LIKE MAKT-MAKTX,          "Parent Material Description
             MDLNO LIKE ZWRNTITM-MDLNO,      "Module Number
             MDLNT LIKE MAKT-MAKTX,          "Module Description
             CLVFX LIKE ZWRNTITM-CLVFX,      "Claim Value FX
             CRVFX LIKE ZWRNTITM-CRVFX,      "Credit Value FX
             CRVLC LIKE ZWRNTITM-CRVLC,      "Credit Value Local
             XRATE LIKE ZWRNTITM-XRATE,      "FX Rate
             NAME1 LIKE KNA1-NAME1,          "Customer Name
             MAKTX LIKE MAKT-MAKTX,          "Material Description
             CTYPT LIKE DD07T-DDTEXT,        "Customer Type Text
             BUNTT LIKE DD07T-DDTEXT,        "Business Unit Text
             FRCRT LIKE DD07T-DDTEXT,        "Freight Carrier Text
             FLTCT LIKE ZFLTCODES-FDESC,     "Fault Code Text
             ISRES LIKE ZWRNTITM-ISRES,      "Issue Resolved
             DCODE LIKE ZWRNTITM-DCODE,      "Date Code
             ISTAT LIKE ZWRNTITM-ISTAT,      "Ignore Stats
             LABCL LIKE ZWRNTITM-LABCL,      "Labour Claimed
             MATCL LIKE ZWRNTITM-MATCL,      "Material Claimed
           END OF I_DATA.
    Field Catalog:
    FORM          BUILD_ALV_COLUMNS
    Build Main Page ALV Fieldcat
    FORM BUILD_ALV_COLUMNS.
       CLEAR FIELDCAT_LN.
       ADD 1 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'KUNNR'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-KEY = 'X'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 2 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'CLMID'.
       FIELDCAT_LN-KEY = 'X'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 3 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'Claim Type'.
       FIELDCAT_LN-FIELDNAME = 'CTYPT'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 4 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'CLREF'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 5 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'Business Unit'.
       FIELDCAT_LN-FIELDNAME = 'BUNTT'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 6 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'CURCY'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-EMPHASIZE = 'C500'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 7 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'CHKID'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 8 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'RECVD'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 9 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'APVDT'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 10 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'CRDRF'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 11 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'RORDR'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 12 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'RORDD'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 13 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'ARVDT'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 14 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'TSTDT'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 15 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'TEDDT'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 16 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'FSTDT'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 17 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'FEDDT'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 19 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'Freight Carrier'.
       FIELDCAT_LN-FIELDNAME = 'FRCRT'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 20 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'FRTRF'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 21 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'FRINV'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 22 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'UNAMECR'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 23 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'DATUMCR'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 24 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'UNAMECH'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 25 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'DATUMCH'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 26 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'UNAMEDE'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 27 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTHDR'.
       FIELDCAT_LN-FIELDNAME = 'DATUMDE'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 28 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'POSNR'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-KEY = 'X'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 29 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'MATNR'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-EMPHASIZE = 'C700'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 30 TO COL_POS.
       FIELDCAT_LN-TABNAME   = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'RMNGE'.
       FIELDCAT_LN-SELTEXT_L = 'Qty'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 31 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'CLRFL'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 32 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'PCB Part No'.
       FIELDCAT_LN-FIELDNAME = 'PCBPN'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-EMPHASIZE = 'C700'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 33 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'MEINS'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 34 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'WRNTC'.
       FIELDCAT_LN-DO_SUM = SPACE.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 35 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'Warranty Given'.
       FIELDCAT_LN-FIELDNAME = 'WRNTG'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 36 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'FLTCD'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 37 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'MFATE'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 38 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'CMNTS'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 39 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'SRIAL'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 40 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'PFREX'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 41 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'PFINT'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 42 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'RLCRQ'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 43 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'TCHID'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 44 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'PMATN'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-EMPHASIZE = 'C700'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 45 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'MDLNO'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-EMPHASIZE = 'C700'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 46 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'Customer Name'.
       FIELDCAT_LN-FIELDNAME = 'NAME1'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-KEY = 'X'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 47 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'MAKT'.
       FIELDCAT_LN-FIELDNAME = 'MAKTX'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-EMPHASIZE = 'C700'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 48 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'Parent Matl Description'.
       FIELDCAT_LN-FIELDNAME = 'PMATX'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-EMPHASIZE = 'C700'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 49 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'PCB Matl Description'.
       FIELDCAT_LN-FIELDNAME = 'PCBPX'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-EMPHASIZE = 'C700'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 50 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'Fault Code Description'.
       FIELDCAT_LN-FIELDNAME = 'FLTCT'.
       FIELDCAT_LN-COL_POS = COL_POS.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 51 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'CLVFX'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-EMPHASIZE = 'C500'.
       FIELDCAT_LN-NO_ZERO = 'X'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 52 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'CRVFX'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-NO_ZERO = 'X'.
       FIELDCAT_LN-EMPHASIZE = 'C500'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 53 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'XRATE'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-NO_ZERO = 'X'.
       FIELDCAT_LN-EMPHASIZE = 'C500'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 54 TO COL_POS.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'CRVLC'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-NO_ZERO = 'X'.
       FIELDCAT_LN-EMPHASIZE = 'C500'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 55 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'Module Description'.
       FIELDCAT_LN-FIELDNAME = 'MDLNT'.
       FIELDCAT_LN-COL_POS = COL_POS.
       FIELDCAT_LN-EMPHASIZE = 'C700'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 56 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'Iss Resvld'.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'ISRES'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 57 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'Date Code'.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'DCODE'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 58 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'Ignore Stats'.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'ISTAT'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 59 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'Labr Claimed'.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'LABCL'.
       APPEND FIELDCAT_LN TO FIELDCAT.
       CLEAR FIELDCAT_LN.
       ADD 60 TO COL_POS.
       FIELDCAT_LN-SELTEXT_L = 'Matl Claimed'.
       FIELDCAT_LN-REF_TABNAME = 'ZWRNTITM'.
       FIELDCAT_LN-FIELDNAME = 'MATCL'.
       APPEND FIELDCAT_LN TO FIELDCAT.
    ENDFORM.                    " BUILD_ALV_COLUMNS

  • ALV Export to Excel

    Does anyone know the row/column limit on exporting an ALV grid to Excel?  I am getting a message that "list object is too large to be exported".

    Hi Janet,
    Please find the following SAP Note 700206.
    Symptom
    Excel export gives error "List object is too large to be exported" when a large list object is exported. This message comes only on usage of function module XXL_FULL_API for Export to Excel functionality.
    Other terms
    Excel Export, XXL Export, i_oi_spreadsheet, Size Limit,
    Reason and Prerequisites
    Older technology used and old MS Office release has limitaion of exporting only 16384 lines of data. This change is valid only for the SAP R3 release higher than 4.6C and MS Office release higher than Office 97.
    On The pop-up dialog "Export list object to XXL" with three options
    "Excel SAP macros", "Table" and "Pivot table", this change is valid only
    for "Table" and "Pivot table" option and not for "Excel SAP macros".
    Choice of "Excel SAP macros" option is not linked with this change for any R3 relaese.
    This correction is done in function module XXL_FULL_API and is only valid when XXL_FULL_API is called for Exporting the list to Excel.
    Solution
    Increased the Max Size Limit to 65536 rows and 256 columns. For Table and Pivot Table option of Excel Export. This change is available for office integration technology only and no adaption is possible to old SAP
    Macros. Import the relevant ABAP patch.
    NOTE: If you Export a Large list object there could be a performance problem and the same will be dirctly proportional to the amount of DATA (size of list object) Exported. The Maximum limits with XXL Export: Number of Rows - 65536. Number of Columns - 256. Size of individual cell - 255 Characters.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Problem in ALV export to Excel (Local File)

    Hi guys,
    I'm using the option export data do local file, option excel, but some strange behave is happening...
    Some columns are exported without the last digit...
    Ideas?
    Regards,
    LMS

    Hi LMS,
    Use this link.
    Export to excel in ALV
    Problem with Export to Excel from ALV Grid
    Hope this will help you to resolve your problem.
    Regards,
    Vijay

  • Help with exporting an excel spreadsheet to sharepoint

    I've downloaded the 'Synchronising with sharepoint lists' add-in and have linked my spreadsheet to a sharepoint list, where any changes made to the spreadsheet then updates the sharepoint list. This spreadsheet is full of formulas but as soon as I click
    'synchronise with sharepoint' all of the formulas in my spreadsheet vanish. There are also no formulas in the sharepoint list but I'm not really bothered about having working formulas in my sharepoint list because I will be updating that list through my formula
    filled and rather complicated spreadsheet.
    So is there a way that I can synchronise my spreadsheet to sharepoint and keep my formulas in my excel spreadsheet? 

    Hi Sarah,
    It is difficult to answer your question without any knowledge of the calculations in your Excel spreadsheets. Not all calculations that work on your desktop excel application will work on SharePoint Excel services which is why some of your formulas are getting
    extracted.
    For more information about Excel Services in SharePoint you can refer to
    http://msdn.microsoft.com/en-us/library/office/ms517343%28v=office.14%29.aspx
    Daniel Christian (MCTS)

  • Search/replace in huge files without line breaks

    i need to search and replace in huge XML files not containing line breaks. i cannot load them to memory as a whole because of size and cannot write a simple GrepReader because the $%��*" legacy system exporting the files does not do line breaking
    plz help

    P.S.
    the files are looking similar to XML, they are not XML at all - thats the original reason i have to modify them, no parser will accept them. aka: plz do not suggest SAX-parsing...

  • How to extract compiled stored procedure without line break for long statement

    After I compiled stored procedure which contains long statement, the statement would cut into 2 rows into dba_source.
    However, when I extract the codes from dba_source table, the source couldn't be compiled successfully because of
    the broken lines.
    For example, the following statement would be broken into 2 rows like this:
    (line 1) gv_Message := 'Interface Description: Interface with Training '|| 'and Development Intran
    (line 2) et (Evaluation Statistic Details)';

    That's very strange. What did you originally compile it with (sql*plus, toad, etc...)? I was able to compile a procedure with the maximum line length (2499 characters see error SP2-0027) and there is no split. Is the procedure in a VALID state with that line break? Honestly, this seems very odd, possibly even a bug here somewhere.
    Richard

  • Long Text In ALV - Exporting to Excel sheet

    Hi,
    Currently my ALV report reads the text using READ_TEXT fm and it displays only the first line of the text in the report.
    To the see the remaining lines of the text, user needs to double click on the text in the report and it creates another ALV report with one column showing all the lines of that particular text.
    Now the problem is when user exports the report in excel sheet, obviously only the first line of the text is downloaded in the excel file. User wants all the lines to be downloaded but at the same time, it should be line by line in a single cell not in a single line.
    LIKE
    Col-1                          Col2
    XXXXX                       XXXXXXXXXXXXX
                                      XXXXXXXXXXXX
                                      XXXXXXXXX
    YYYYY                     YYYYYYYYYYYY
                                     YYYYYYYYYYY
                                     YYYYYYYY
    So How can i create a report like this? and also the number of lines of the text will vary.
    Thanks,
    Ezhil

    Hi,
    Here's my suggestion: Install OpenOffice.org and ask SAP to deliver good integration with OpenOffice.org.
    Alternative suggestion: re-install SAP Gui on the PC where the integration is not working. If that does not help, re-install Microsoft Office as well.
    Here's my comment: I think you should ask this question in a different forum, e.g. in the Duet forum. That may not be the correct forum either, but as it is a Microsoft/SAP integration technology forum, someone there may know the solution.
    Regards,
    Raj.

  • ALV,Export to excel, only heading getting exported.

    Hi Experts,
      I have a simple alv report output but when exported to spreadsheet only heading is getting exported and no data is geting printed, i have tried hiding few columns when i do so then data is geting display in an abdupt manner mean to say allignment is not right, can anyone suggest me with a solution.
    Thanks in advance,
    Abhilash Setty.

    Hello friend,
    In the tool bar you will find two buttons one has a help text (Spreedsheet....CtrlShiftF7) and other has a help text (Local File.... CtrlShiftF9).
    Select any one option and select spreed sheet with .xml formart.
    I tried in my program and i am getting the excel in a correct formart.
    Please let me know if you have any queries. I will help you.
    Thanks,
    Sri Hari

  • Report Writer / Report Painter Export to Excel Spreadsheet

    Hello Experts,
    I have created a report writer report with variation (can be seen on the left hand of the screen after execution of the report). Now, if i try to export the report to a spreadsheet, it just gives me the information without including the variation. Is there any solution to include the variation in the export to spreadsheet.
    Hope this question makes some sense??
    Example:
    This report gives a breakdown by period of planned/actuals by cost element, the cost element being the varation. so lets say salary is one variation (cost element).
    Any ideas will be appreciated.
    Thanks,
    Ro

    Solved..As per SAP Note 145073

  • Webdynpro abap ALV export to excel with images problem

    Hello experts,
    I'm having problems with standard excel export functionality in webdynpro abap ALV.
    In my table i have images taken from content server (employee photos) linked with URL to a table_cell Image, when i export the table to excel using standard function the images is showed as a broken picture with the following text:
    "The linked image cannot displayed. The file may have been moved, or deleted. Verify that the link points to the correct file and location."
    I'm running on sap basis 7.02 SP13 and implemented the notes 1975765 and 1985288 but not resolved this issue.
    Do you have any ideas?
    Thank you.

    Hi Jorge,
    Are you able to download the ICONs from alv table? try to use some icon source '~Icon/Add' and check out if you can download it to excel successfully.
    FYR:
    Regards,
    Rama

  • ALV Export to Excel after Upgrade to ERP2005

    Hi Guys and Gals,
    We have a bespoke ABAP report which prior to the upgrade to ERP 2005 created an ALV list and from the menu list, we could select: -
    List --> Export (we then had the following options):-
    Word Processing
    Spreadsheet
    Local File
    Additional Function of SAP Query
    XML  Export
    However, after the upgrade only Local File and XML Export are selectable all the rest are grayed out and therefore <i><b>not</b></i> selectable. The code never changed before or after the upgrade.
    Any pointers will be greatly appreciated.
    Thanks in Advance.
    Kind Regards.
    Tony Roundhill.

    Sounds like it could be a Basis issue to me.  Check with them first.  I haven't come across this problem myself so I could be wrong.

  • Updating data in Xcelsius 2008 Export from Excel Spreadsheet

    Xcelsius 2008 newbie question....
    I have created a Xcelsius export (.swf) that display my data. However it appears the data is static after exporting.
    I am at a loss as to how you force it to update/refresh using the connections used in the excel.
    Am I missing something? I cannot find a straight answer, do need LiveOffice?
    How do I have an (.swf) export file that refreshes data itself????

    The easiest way to get data to update in your swf is to create a connection in the Data Manager.  After the connection is setup you can add a connection refresh button to allow the swf viewer to trigger that connection.
    To get data to refresh automatically, you can setup the connection to trigger or update on interval.
    For more information you can check out the learning center:
    http://resources.businessobjects.com/support/cx/samples/learning/ondemand.asp

  • ALV export to Excel, some field lose char

    Dear SAP,
    when I develop a report have one field is PR NO(BANFN), and show result in ALV, then user download the report to excel, but the PR# lose the last number, I don't know how to solve this problem, Please help!
    Ivan

    Hi
    you can use  fm: CONVERSION_EXIT_ALPHA_OUTPUT
    to delete useless zero of aufnr
    Or:
    set fieldcatlog-seltext_l longer
    for example:
    fieldcatlog-fieldname = 'AUFNR'.
    fieldcatlog-seltext_l =  'ProductionNumber'.
    Wish it works.
    Best Regards.

  • CSV export from SSRS gives a line break if there are two tables

    I have a report with two tables. There is no gap between in the reports. The report looks good when I run it, but when I export the report to CSV, there is an extra line between the two tables. Can somebody help me fix this issue.
    Thanks in advance.
     

    Hi Bindu,
    If I understand correctly, you have two tables in the report. When you export to CSV, it has an extra blank line between these two tables. I have create a simple report in my test environment, I can reproduce the same issue.
    Based on your description, you want to splice these two tables with no gap in the report. I order to meet your requirement, we can use subreport to work around the issue. We can insert two aubreports in one table. Then, display these two tables in these
    two subreports.
    Reference: Subreports
    Alternatively, we can display these data in one table to work around the issue. If possible, you can post your sample data, we can to do further analysis. If these columns is from two datasets, please check if there has same fields. If so, we can use
    Lookup function to display two datasets data in one tablix.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

Maybe you are looking for

  • My Macbook does not turn on

    So I was downloading an episode from the iTunes Store and I left it downloading all night. This morning I check my laptop and it freezed so I decided to take the batttery out and put it back to turn my computer on, and the computer makes the sound of

  • How to close Automatic PO freight charges

    Since there are Shipment Cost Module implemented, there are automatic PO created called  "automatic PO generation for freight charges". These POs has no GR perform. Kindly please advise on how to handle it otherwise the POs will kept always open. Bel

  • Saving or backing up iweb work

    Looking for some help on saving/backing up iweb work. I understand the all information is saved to the domain file under user/library/application support/iweb and that altering that file is not good. But I would like to know a few things that I can't

  • RFC dest . parameter Problem

    Hi Friends, I am getting a problem when i restore the Source system. No RFC dest.parameters maintained for the Warehouse in source system BQACLNT100 When i am asking my basis team to checck for the connection in the source system they are telling tha

  • HT4623 iPhone latest update creates issue for my iPhone 4

    After updating my iPhone 4 with the latest update software, I had been experiencing lagging, hang during phone calls, hang before picking up calls (which leads to unanswered calls), total hang in software that makes even hard restart difficult. What'