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.

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 GRID with icon fields. When exports to Excel, icon fields are emtpy.

    Hi all,
    In our SAP system (6.0 ECC) we've noticed the following behaviour:
    In ALV GRID with icons (color lights for example...) when we export the list to Excel format with the standard button bat, the icon column is always empty.
    We think that in previous SAP version (4.7), the code corresponding to the icon appeared (For example @08@ for green light).
    It's possible to have tha same functionality in this new version like in 4.7?
    Regards.
    Edited by: Ole ES on Nov 17, 2010 6:05 PM

    Hi,
    Check the format in which you export to Excel (MHTML, XML, ...) and try antoher one.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/66/79ad48157f11d2953700a0c930328a/content.htm
    I think the integrated Excel mode shows '@08@'.
    Best regards,
    Guillaume

  • ALV output to excel - custom fields are missing

    Hi,
    I am displaying the output using ALV grid display. I have few fields in the output table that I am calculating based on the rest. When i save this output file to an Excel file I am getting all the fields except the ones that I am calculating. something like
    vbeln | posnr | kwmeng | custom field1 | werks
    1         0010        10              alb1
    I am getting the werks field value in the custom field1. and custom field1 value is missing.
    Please suggest me some solutions.
    Thanks.

    Hi,
    Check the format in which you export to Excel (MHTML, XML, ...) and try antoher one.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/66/79ad48157f11d2953700a0c930328a/content.htm
    I think the integrated Excel mode shows '@08@'.
    Best regards,
    Guillaume

  • 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

  • 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

  • To Display Output in Grid ALV with change of some field display total with

    Hi Masters,
    I m working on ALV in which  i have to display output with the following format.
    Header
    "Some String"                                                             date/time                                                                               
    User:XYZ01       page 1 
    Line
    1st field    2nd    3rd     4th       5th   6th    7th   8th   9th  10th field
    x               y       z        A        B     C       D     E      F       G
    BLANK..............................................................................                            
                          "total 3rd+4TH"           P        Q     R      S        T       
    same thing for every change of 4th field .
    So the problem is with inserting the line with string "Total of 3rd+4th" in the output .
    Can Anyone help me out?
    Thanks ,
    Varlani Amit

    Hi,
    Use control-break statement ON-CHANGE for the 4th field, and do the changes.
    regards,
    sri

  • 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

  • ALV Download to excel truncating fields

    Hi,
    When I use the ALV download button to download to excel, it is truncating the last character of customer number.
    ie customer 20011790 is showing as 2001179.
    Any ideas how to fix this.
    Thanks.

    Looks like Note 855314 has a workaround ... my be more.
    Of course (yuk!), write you own download.
    Best!
    Jim

  • Web Dynpro ABAP - ALV: Export to Excel | Export to PDF

    Hello,
    I was wondering which settings I need to configure and where to configure these, for the "Print Version" and "Export to Microsoft Excel" to work.
    Print version Communication Failure: RFC destination SALV_WD_EXPORT_PDF does not exist
    Thanks in advance,
    Dragovian

    Refer this :
    Print Version: RFC Destination SALV_WD_EXPORT_PDF doesnt not exists

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

  • 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

  • Cross Tab Formatting Problem when exported to excel

    Hi There,
    I got a problem with cross tab when exported to excel, Call_id field is occupying 4 cells. Below is the structure
    AssignedGroup-Call_Id-Total
    A--1001-
    A--1011-
    Total-----2-
    B--1021-
    B--1031-
    Total-----2-
    C--1041-
    Total-----1-
    can anyone help? How to restrict call_id to fit in single cell?
    Thanks,
    Jyothi
    Edited by: Jyothi Yepuri on Sep 16, 2009 7:50 AM

    Yeah.. crystal has giving  some issues while exporting reports without SPs, especialy previous versions.
    So  Better to install latest SP or patches for CR 10.0. I think SP 6 is the updated one for CR10.0.
    For More info Go through this link,
    http://resources.businessobjects.com/support/additional_downloads/service_packs/crystal_reports_en.asp#CR10
    Regards,
    Salah

Maybe you are looking for

  • IP Address would not open in Browser!!!!

    I have an applet-servlet communication. I have setup everything... When i open my applet in browser using http://localhost/scanapp It works fine... i get the applet on the screen and then i am opening another frame from that applet's button actionper

  • Xsd:integer - how to set maximum length

    Hi, In a structure, I have set some of fields as xsd:integer.  my scenario is file to proxy.  while generating the inbound proxy, for those elements which are xsd:integer, the data dictionary fields are authomatically set to INT4.  Whereas the actual

  • Classic tween saturation property not animating like in total training video

    John Ulliman uses actionScript3 with Flash CS3 and I have Flash CS5 which is the main difference. It appears he uses a classic tween (from CS4 and CS5's perspective). I have a thumbnail which is created as a movie symbol and when I double click on th

  • 3D Render shows shadows/reflections in Custom View, but not in camera

    All vector content, extruded text and a simple ground plain to catch shadows, 50% reflective. The custom view shows all shadows & reflections correctly, but the camera will not show them. I've deleted / re-created cameras, lights, floor plains AND ob

  • Webkit2webprocess stopped working / Broken Tabs

    Hi I'm having lots of problems with the Windows version of Safari - the 5.1.4 update did not fix any of the main problems; webkit2webprocess.exe has stopped working I've had this message about 20 times today, after the update to 5.1.4 With multiple t