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

Similar Messages

  • 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

  • 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

  • ALV export MHTML format problem

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

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

  • Export to Excel problem in Signal Express 2012

    Equipment used: PXIE-8102 CELERON T3100 1.9GHZ Controller Windows 7, PXIE-1071 4 Slot Chassis, PXIE-4140 4-Channel SMU 1.7.5 version.
    I am using Signal Express 2012 and the SMU to plot the I/V characteristics of FET and other active devices. I am able to obtain the anticipated curve traced results but I am not able to Export the data to Excel directly from the Data View using the Microsoft Excel option. The error message is: Data could not be sent to Microsoft Excel. Please ensure you have a properly licensed version of Microsoft Excel. See attachment.
    We have checked our version of Microsoft Office, it is Professional Plus and has the correct volume license so it does not revert to a home or student version.
    I have been able to use the Export to Excel function directly from the Dataview when I was using one of the waveform tutorials supplied with Signal Express so I suspect it is a function of the SMU.
    In conversations with an NI support engineer he felt it may be a problem with "an active x call is just not seeing the license for some reason", his suggestion is to drag the data into Excel rather than use the Data view tab. Because the SMU is being used in a production environment it is not really appropriate to have the operator work at this level so I would rather figure a way to have the data exported using the Data View tab.
    Anyway please can you let me know if there are any known work around for this issue.
    Thank you

    Calvin1957,
    I am not seeing any attachments in the first post or this latest post. The images should be added using the attachments section when creating the post. You should also be able to insert an image using the insert image button in the toolbar. Let me know if you have any questions. Thanks!
    Robert B
    Applications Engineer
    National Instruments

  • Export to Excel Problem - Page server Error

    Post Author: Preethig
    CA Forum: Exporting
    Crystal Reports were designed using the Seagate Crystal Reports Developer Version 8.5.3.975.The reports does designed are published in the Seagate Crystal Enterprise 8.0.2.6725  across the web.
    When we try to the export these reports to excel from the Crystal report viewer of the Crystal Enterprise it throws up an error" The export format 'U2FXLS:5' is not supported. &#91;on Page Server : <webserver>.pageserver&#93;."
    The webserver as the Following ConfigurationWindows Terminal Edition - Windows 2000Service Pack 4.Seagate Crystal Enterprise 8.0.2.6725
    The Client system on which the "Export to Excel" is performed has the following Configuration.Windows XP Professional Operating SystemService Pack - SP2.Excel 2002 (10.2614.2625).
    We have tried uninstalling the Crystal Enterprise 8.0.We have also checked for the u2fxls.dll and Crxf_xls.dll in the C:/ <% system Root%> /Crystal.
    Kindly help us to figure out the problem. It has been working fine for quite long and flawed only recently.
    Thank You in advance.
    Thanks and regards,
    Preethi

    Post Author: Preethig
    CA Forum: Exporting
    Cyril,
         Thank You For your tip. But the problem of export To excel could be solved after I renamed the Crxf_xls.dll in the  <%System root%> /Crystal folder which allowed the dll U2fxls.dll to Excel export work just as fine as explained in the Knowledge Base of Bussiness Object.
    Thank you
    With Regards,
    Preethi

  • Export to Excel Problem external DC using Web Dynpro binary cache

    Hallo,
    I want to export from Web Dynpro to Excel. For this I study the Tutorial "Excel Export Using the Web Dynpro Binary Cache".
    The example is running without a problem.
    I have create a new DC only for excel export. The name is ExcelExportWD. In this DC I create a Component and programmed the methods of the example. Also I create the View and the Context for it.
    This DC is used in other DCs. I put the Component to the public part. After than I make the entry in the used DCs in that DC which I want to use the Excel export. I use the DC ExcelExportWD in the DC ContactsWD.
    The ContactsWD is running without a problem.
    If I try now to export to Excel I got the following error.
    <b>com.sap.tc.webdynpro.services.sal.api.WDDispatcherException: Requested deployable object 'mgi.de/portalscmContactsWD' and application 'ResultGetContacts.xls' are not deployed on the server. Please check the used URL.</b>
    In the View of the ExcelExport the name of file is not visible in the URL of the ExcelFileName. The name "ResultGetContacts.xls" is the name of the node which I want to export.
    What is wrong? I have try to set a Sharing reference in the ContactWD without success.
    An idea ?
    Regards
    Gunter

    Hallo,
    I want to export from Web Dynpro to Excel. For this I study the Tutorial "Excel Export Using the Web Dynpro Binary Cache".
    The example is running without a problem.
    I have create a new DC only for excel export. The name is ExcelExportWD. In this DC I create a Component and programmed the methods of the example. Also I create the View and the Context for it.
    This DC is used in other DCs. I put the Component to the public part. After than I make the entry in the used DCs in that DC which I want to use the Excel export. I use the DC ExcelExportWD in the DC ContactsWD.
    The ContactsWD is running without a problem.
    If I try now to export to Excel I got the following error.
    <b>com.sap.tc.webdynpro.services.sal.api.WDDispatcherException: Requested deployable object 'mgi.de/portalscmContactsWD' and application 'ResultGetContacts.xls' are not deployed on the server. Please check the used URL.</b>
    In the View of the ExcelExport the name of file is not visible in the URL of the ExcelFileName. The name "ResultGetContacts.xls" is the name of the node which I want to export.
    What is wrong? I have try to set a Sharing reference in the ContactWD without success.
    An idea ?
    Regards
    Gunter

  • Export to Excel - Problem with extra rows

    Hi have a report that has 3 groups. I suppress the group headers and am using the group footers for totals.
    When I export to excel, I get extra rows in the excel file for the suppressed sections. How can I get rid of these?
    Thanks,
    Linda

    I can use this to get out additional rows on my excel export. However, in the columns, I usually put some distance between each column so the columns won't run together. This is giving me extra columns. It would be much easier if I did not have to put that distance. Is there a way to format the field to have a leading or trailing space so all the fields don't run together on the report?
    example:
    field1
    field2
    field 3
    if all these fields have data the output would look like:
    field1datafield2datafield3data
    how can I make it look like:
    field1data field2data field3data

  • Web application designer - save view, Export to excel problem

    Hi All,
    It is very urgent.
    We are working in BW 3.5 version.
    In web application designer save view, export to excel, export to CSV options are not working.In the report out put if i select any of these push buttons it is giving blank page.
    Please give me the solution for the above.
    Thanks & Regards,
    Vizz

    Hi Amer,
    There is a web item 'Menu bar' available in WAD 7.0.
    There, you can set the Action (Command Triggered) (ACTION) property to Export Web Application and achieve the functionality of exporting to excel.
    For more details, see this..
    http://help.sap.com/saphelp_nw04s/helpdata/en/b9/a18342fe118c51e10000000a1550b0/frameset.htm
    Hope this helps you..!!
    Revert back in case of any help needed..
    -Pradnya

  • 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

  • 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 Grid to Excel Problem

    Hi Folks,
    I have developed a report using ALV GRID for an user. However when he tries to export it to excel my field LIFNR (vendor no.) its 1 character short.
    For example:
    ALV GRID VIEW:
    103190325          2000004610          37,900.00
    EXCEL File:
    10319032          2000004610          37,900.00
    This is pretty strange for me, never had this problem before. Can anyone help me with this problem.
    Thanks in advance for your help.
    Regards,
    Gilberto Li
    Edited by: Gilberto Li on Nov 6, 2008 4:28 PM

    Hi Naimesh,
    Thanks for your reply.
    Yes I have checked the output length for the field. Right now I have it on 12 just in case, but LIFNR is a 10 character field, and I am still having this problem.
    When I hit the button for a preview on the grid it shows like this:
    10319032...   2000004610               37,900.00
    Strangely, don't know why this last digit is getting cutted.
    Thanks again.
    Regards,
    Gilberto Li

  • ALV download to excel problem

    Dear Gurus a problem in alv report downloading to excel:
    on executing the report works fine but when downloading to excel there last digit of bpvno is getting truncated.
    ex: actual bpvno:'4000010' but excel o/p shows as '400001'
    I have declared a field in final internal table as:
    data: bpvno as bseg-belnr,
    (in field catalog)
      fieldcatalog-fieldname   = 'BPVNO'.
      fieldcatalog-seltext_m   = 'BPV No.'.
      fieldcatalog-seltext_L   = 'BPV No.'.
      fieldcatalog-col_pos     = I1.
      fieldcatalog-emphasize   = 'X'.
      append fieldcatalog .
      clear  fieldcatalog.
      I1 = I1 + 1.
    but after specifying the  REF_TABLENAME & REF_FIELDNAME the downloaded excel o/p is correct.
    My questions is:
    1) i want to know what all are mandatory fields to be specified in fieldcatalog & is it compulsory to specify REF_TABLENAME & REF_FIELDNAME .
    if not complusory why the downloaded excel value is being truncated ???
    plz dont send materilas on alv and answer specific to the question....

    Hi,
    I wrote a small program, and for me it worked. My assumption about the seltext was wrong. And I also didn't use output lenght.
    Here is the code.
    REPORT  ZALVTOEXCEL                                                 .
    type-pools slis.
    data : gt_fcat type slis_t_fieldcat_alv.
    data fieldcatalog like line of gt_fcat.
    types : begin of t_belnr,
            bpvno like bseg-belnr.
    types end of   t_belnr.
    data gt_belnr type table of t_belnr.
    data gwa_belnr type t_belnr.
    gwa_belnr-bpvno = '4000010'.
    append gwa_belnr to gt_belnr.
    fieldcatalog-fieldname = 'BPVNO'.
    fieldcatalog-seltext_m = 'BPV No.'.
    fieldcatalog-seltext_L = 'BPV No.'.
    fieldcatalog-col_pos = 1.
    fieldcatalog-emphasize = 'X'.
    append fieldcatalog to gt_fcat.
    clear fieldcatalog.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       IT_FIELDCAT                        =  gt_fcat
        I_SAVE                            = 'A'
      TABLES
        t_outtab                          =  gt_belnr
    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.
    regards,
    Advait.

  • ALV download to Excel--Problem with Column Headers

    Hi,
    I have created a dynamic internal table and displaying it as ALV using SALV classes. Problem is that  when I download this ALV to Excel I'm not getting Column headings same as they are in ALV display.
    I mean in Excel it is showing Column headings taken from domain or data element.
    While creating dynamic table i'm passing short/ Medium & Long text too. Still it is not working.
    Any kinda help is appreciated.
    Thanks & Regards,
    Vivek Gaur
    Edited by: Vivek  Gaur on Nov 4, 2009 2:04 PM

    Look I cant actually post the code as it is divided in some global classes and main program. But i can elaborate the steps little further:
    1: I have created a field catalog for Dynamic internal table. In it i have passed every necessary field along with short/medium/Long texts.
    2: I fill up this dynamic table with data.
    3: I assign a field symbol to this dynamic internal table.
    4: I pass this field symbol to the factory method of CL_SALV_TABLE  Class.
    Thats it buddy..Hope u have understood my problem.

  • 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.

Maybe you are looking for

  • How to give the file path in adf application

    Hii all, I want to use castor xml framework in adf application.. for which i have to un- marshaller the xml file.. by using following method- Person person = (Person) Unmarshaller.unmarshal(Person.class, new FileReader("src/com/person.xml")); if i us

  • Abap memory question

    hi,guys,i did a example to test the difference between sap memory and abap memory,the result that i did program zmemory1 is : 1111  2223, but the question is when i did program zmemory2 alone,the result is the same,why i can get test2 with import sta

  • Provide ALE and IDOC Faqs and all Transactions

    Dear Experts, I am new to ALE & IDOC. Please provide ALE & IDOCs FAQs and all Transactions? Thanks in advance.

  • How to install a third part plugin?

    Hi, I am trying to install a third part plugin (fileopen) but it is not possible because I am in certified mode on: how can I turn it off?

  • OT-javascript question

    I'd like to have a javascript image gallery with controls that look like that: < 1 | 2 | 3 | 4 | 5 > All images preload, and clicking on the numbers display the corresponding image, without reloading the page. I have had no problem making the numbers