ALV GRID download truncates the last digit of invoice

Hi Experts,
                 I am facing a production issue related to ALV grid download. When we click export to local file -> spread sheet,
if it is downloaded to Excel file, invoice last digit is truncated.
Can any body face this problem ?
Please let me know if any body has clue to solve this strange issue.
Thanks,
Balaji.T.

Hi,
check the type of field used for invoice list. Make it type vbeln. Also try using EXit_alpha_output FM and modify the table for invoice numbers.
Thanks,
Sam.

Similar Messages

  • The last digit of invoice vbeln is getting  truncated  in the file

    Hi Experts,
    I'm facing problem in both quality and production,the last digit of invoice vbeln is getting  truncated  in the file when i do export-> local file ->spread sheet.I'm having an alv report using grid display alv is getting display.when output is displayed  i'm getting vbeln as 0430098109 and when i'm trying to download into XLS file using export local file spread sheet i'm getting vbeln as 043009810, last digit not appering in the file
    Thanks in advance.

    PERFORM reset_component_price.
    LOOP AT tab_documenti .
        IF tab_documenti-waerk = co_krw .
          tab_documenti-netwr = tab_documenti-netwr * 100 .
        ENDIF .
        MODIFY tab_documenti .
      ENDLOOP .
    DESCRIBE TABLE tab_documenti LINES num.
      IF num > 0.
        IF importa = 'X'.
          PERFORM esporta_file.
        ELSE.
          PERFORM stampa2.
        ENDIF.
      ENDIF.
    *&      Form  recupero_trigger_fatturazione
          text
    FORM recupero_trigger_fatturazione.
      SELECT vkorg fkdat kunnr vbeln vtweg spart vbtyp
             INTO CORRESPONDING FIELDS OF TABLE tab_vkdfs
             FROM vkdfs
             WHERE vkorg IN s_vkorg
              AND  fkdat IN s_edatu
              AND  kunnr IN s_kunnr
              AND  vbeln IN s_vbeln
              AND  vtweg IN s_vtweg
              AND  spart IN s_spart
              AND  vbtyp IN s_vbtyp.
    ENDFORM.   
    *&      Form  TERMINO_REPERIMENTO_DATI_DOCUM
    FORM termino_reperimento_dati_docum.
      IF NOT port IS INITIAL. "APAB 26/01/04
        REFRESH l_tab_vbak. CLEAR l_tab_vbak.
        SELECT vbeln
               erdat ernam                "APAB 26/01/04
               vkorg vtweg spart kunnr
               vkbur vkgrp vbtyp auart augru
               INTO CORRESPONDING FIELDS OF TABLE l_tab_vbak
               FROM vbak
               WHERE vbeln IN s_vbeln "EQ tab_vkdfs-vbeln Ceriati
               AND   ernam IN s_ernam "APAB 26/01/04
               AND   kunnr IN s_kunnr
               AND   vkorg IN s_vkorg
               AND   vtweg IN s_vtweg
               AND   spart IN s_spart.
        CHECK sy-subrc EQ 0.
        LOOP AT l_tab_vbak WHERE vkbur IN s_vkbur AND
                                 vkgrp IN s_vkgrp AND
                                 auart IN s_auart AND
                                 augru IN s_augru.
          REFRESH l_tab_vbap. CLEAR l_tab_vbap.
          SELECT vbeln posnr pstyv werks kondm matnr netwr waerk kwmeng
                 netpr prodh taxm1 knumh                "APAB 26/01/04
                 INTO CORRESPONDING FIELDS OF TABLE l_tab_vbap
                 FROM vbap
                 WHERE vbeln EQ l_tab_vbak-vbeln "tab_vkdfs-vbeln.Ceriati
                   AND pstyv IN s_pstyp. "Ceriati
          CHECK sy-subrc EQ 0.
    APAB 26/01/04 start - find order reason
          CLEAR l_tab_vbak-bezei.
          SELECT SINGLE bezei INTO l_tab_vbak-bezei FROM tvaut
                              WHERE spras EQ sy-langu
                              AND   augru EQ l_tab_vbak-augru.
    find client description
          CLEAR : l_tab_vbak-name1,l_tab_vbak-land1.
          SELECT SINGLE name1 land1 INTO (l_tab_vbak-name1,l_tab_vbak-land1)
                                                                   FROM kna1
                                              WHERE kunnr = l_tab_vbak-kunnr.
    Ceriati imposte
          SELECT SINGLE taxkd INTO tab_documenti-taxm1 FROM knvi
                                     WHERE kunnr = l_tab_vbak-kunnr
                                     AND  aland = 'IT'
                                     AND  tatyp = 'MWST'.
          LOOP AT l_tab_vbap WHERE werks IN s_werks AND
                                   kondm IN s_kondm AND
                                   matnr IN s_matnr.
            IF l_tab_vbak-auart = 'Z1OI' AND ( l_tab_vbap-pstyv = 'TAX' OR
                                               l_tab_vbap-pstyv = 'TAD' ).
              SELECT SINGLE * FROM vbup WHERE vbeln = l_tab_vbap-vbeln
                                        AND   posnr = l_tab_vbap-posnr.
              CHECK vbup-fksaa NE 'C'.
            ENDIF.
            CLEAR vbep.
            CLEAR: qta_uscita_t, qta_cons_t.
            REFRESH l_tab_vbfa.
            SELECT vbelv posnv posnv vbeln posnn vbtyp_n rfmng
            INTO CORRESPONDING FIELDS OF TABLE l_tab_vbfa
               FROM vbfa
               WHERE vbelv EQ l_tab_vbap-vbeln  AND
                     posnv EQ l_tab_vbap-posnr AND
                     vbtyp_n EQ 'J'.
            LOOP AT l_tab_vbfa.
              qta_cons_t = l_tab_vbfa-rfmng + qta_cons_t.
            ENDLOOP.
            REFRESH l_tab_vbfa.
            SELECT vbelv posnv posnv vbeln posnn vbtyp_n rfmng bwart
            INTO CORRESPONDING FIELDS OF TABLE l_tab_vbfa
               FROM vbfa
               WHERE vbelv EQ l_tab_vbap-vbeln
                 AND posnv EQ l_tab_vbap-posnr
                  AND BWART NE SPACE
                 AND ( vbtyp_n EQ 'R'
                  OR   vbtyp_n EQ 'h' ).
            LOOP AT l_tab_vbfa.
              IF l_tab_vbfa-vbtyp_n = 'h'.
                l_tab_vbfa-rfmng = l_tab_vbfa-rfmng * -1.
              ENDIF.
              qta_uscita_t = qta_uscita_t + l_tab_vbfa-rfmng.
            ENDLOOP.
            SELECT * FROM vbep WHERE vbeln EQ l_tab_vbap-vbeln AND
                  posnr EQ l_tab_vbap-posnr
                 AND edatu IN s_edatu
                  ORDER BY edatu.
              CHECK vbep-bmeng NE 0.
              MOVE vbep-bmeng TO tab_documenti-menge.
    CLEAR: qta_uscita,qta_cons.
              IF qta_cons_t = 0.
                CLEAR qta_cons.
                IF qta_uscita_t NE 0.
                  IF qta_uscita_t > vbep-bmeng.
                    qta_uscita = vbep-bmeng.
                    qta_uscita_t = qta_uscita_t - vbep-bmeng.
                  ELSE.
                    qta_uscita = qta_uscita_t.
                    CLEAR qta_uscita_t.
                  ENDIF.
                ENDIF.
              ELSE.
                IF qta_cons_t > vbep-bmeng.
                  qta_cons = vbep-bmeng.
                  qta_cons_t = qta_cons_t - vbep-bmeng.
                ELSE.
                  qta_cons = qta_cons_t.
                  CLEAR qta_cons_t.
                ENDIF.
                IF qta_uscita_t NE 0.
                  IF qta_uscita_t > vbep-bmeng.
                    qta_uscita = vbep-bmeng.
                    qta_uscita_t = qta_uscita_t - vbep-bmeng.
                  ELSE.
                    qta_uscita = qta_uscita_t.
                    CLEAR qta_uscita_t.
                  ENDIF.
                ENDIF.
              ENDIF.
              qta_cons = qta_cons - qta_uscita.
    CLEAR: tab_documenti-inco1, tab_documenti-vsart,
                     tab_documenti-bstkd, tab_documenti-bstdk.
              SELECT SINGLE inco1 vsart zterm bstkd bstdk
                                                INTO (tab_documenti-inco1,
                                                     tab_documenti-vsart,
                                                     tab_documenti-zterm,
                                                     tab_documenti-bstkd,
                                                     tab_documenti-bstdk)
                                                      FROM vbkd
                                           WHERE vbeln = l_tab_vbap-vbeln
                                           AND   posnr = l_tab_vbap-posnr.
    IF sy-subrc NE 0.
                SELECT SINGLE inco1 vsart zterm bstkd bstdk
                                                  INTO (tab_documenti-inco1,
                                                        tab_documenti-vsart,
                                                       tab_documenti-zterm,
                                                       tab_documenti-bstkd,
                                                       tab_documenti-bstdk)
                                                                  FROM vbkd
                                             WHERE vbeln = l_tab_vbap-vbeln
                                             AND   posnr = '000000'.
              ENDIF.
    CLEAR makt.
              SELECT SINGLE * FROM makt WHERE matnr = l_tab_vbap-matnr
                                          AND spras = sy-langu.
              IF sy-subrc = 0.
                tab_documenti-maktx = makt-maktx.
              ENDIF.
    IF qta_cons = l_tab_vbap-kwmeng.
                tab_documenti-qta_c = vbep-bmeng.
                tab_documenti-qta_a = l_tab_vbap-kwmeng - qta_cons
                                                        - qta_uscita.
                CLEAR qta_cons.
              ELSEIF
               qta_cons <= vbep-bmeng.
                tab_documenti-qta_c = qta_cons.
                tab_documenti-qta_a = vbep-bmeng - qta_cons - qta_uscita.
    ENDIF.
    l_tab_vbap-netwr = l_tab_vbap-netpr * ( tab_documenti-qta_a +
                                                     tab_documenti-qta_c ).
    MOVE: l_tab_vbak-vbeln TO tab_documenti-vbeln,
                    l_tab_vbak-vkorg TO tab_documenti-vkorg,
                    l_tab_vbak-vtweg TO tab_documenti-vtweg,
                    l_tab_vbak-spart TO tab_documenti-spart,
                    l_tab_vbak-kunnr TO tab_documenti-kunnr,
                    l_tab_vbak-vkbur TO tab_documenti-vkbur,
                    l_tab_vbak-vkgrp TO tab_documenti-vkgrp,
                    l_tab_vbak-vbtyp TO tab_documenti-vbtyp,
                    l_tab_vbak-auart TO tab_documenti-auart,
                    l_tab_vbak-augru TO tab_documenti-augru,
                    l_tab_vbak-bezei TO tab_documenti-bezei, "APAB 26/01/04
                    l_tab_vbak-erdat TO tab_documenti-erdat, "APAB 26/01/04
                    l_tab_vbak-ernam TO tab_documenti-ernam, "APAB 26/01/04
                    l_tab_vbak-name1 TO tab_documenti-name1, "APAB 26/01/04
                    l_tab_vbak-land1 TO tab_documenti-land1, "APAB 26/01/04
                    tab_vkdfs-fkdat  TO tab_documenti-fkdat.
              MOVE: l_tab_vbap-vbeln TO tab_documenti-vbeln,
                    l_tab_vbap-posnr TO tab_documenti-posnr,
                    l_tab_vbap-pstyv TO tab_documenti-pstyv,
                    l_tab_vbap-werks TO tab_documenti-werks,
                    l_tab_vbap-kondm TO tab_documenti-kondm,
                    l_tab_vbap-matnr TO tab_documenti-matnr,
                    l_tab_vbap-netwr TO tab_documenti-netwr,
                    l_tab_vbap-waerk TO tab_documenti-waerk,
                    l_tab_vbap-netpr TO tab_documenti-netw1, "APAB 26/01/04
                    l_tab_vbap-prodh TO tab_documenti-prodh.
    MOVE: vbep-edatu TO tab_documenti-fkdat.
    IF  NOT tab_documenti-qta_a IS INITIAL
              OR  NOT tab_documenti-qta_c IS INITIAL.
                APPEND tab_documenti.
              ENDIF.
    CLEAR tab_documenti.
            ENDSELECT.
          ENDLOOP.
        ENDLOOP.
        CLEAR tab_documenti.
    ENDIF.
    IF NOT boll IS INITIAL. "APAB 26/01/04
        LOOP AT tab_vkdfs WHERE vbtyp EQ 'J'.
          SELECT SINGLE * FROM vbuk WHERE vbeln EQ tab_vkdfs-vbeln.
          CHECK sy-subrc = 0.
          IF vbuk-wbstk = 'C'.
            PERFORM prendi_dati.
          ELSE.
            IF port EQ 'X'.
              PERFORM prendi_dati.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.

  • I recieve my reciepts from all of my Apple purchases via email to my email cllient "MS Outlook 2003" on a Windows 7 Home Premium platform. I cannot format the print appearance of HTML documents within Outlook and the print border cuts of the last digit?

    I use MS Outlook as my email client under Windows 7 Home Premium and when I receive a reciept from Apple for purchases made for my iPhone (Stores or iTunes) the HTML formatting cuts off the last digit of the price paid on my eReceipts (the only receipts I get). Outlook 2003 does not allow for HTML print formatting since they (HTMLs) are formatted from the source (Apple). Can you help me to get Apple to fix this or find a workaround?

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • My macbook has Itunes and I am trying to download some songs that I bought on my Ipad onto the macbook. It has worked in the past, but one song has been downloading for the last day. No more will download it seems stuck downloading.

    My macbook has Itunes and I am trying to download some songs that I bought on my Ipad onto the macbook. It has worked in the past, but one song has been downloading for the last day. No more will download it seems stuck downloading. I don't need the song. But I want the others to download.

    Hi there,
    You may find the information in the articles below helpful.
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/ht1725
    -Griff W. 

  • Changing the last digit of the lan ip?  Necessary due to FIOS VoD.

    Due to the way FIOS tv works, the actiontec router that is currently running in bridged mode must have 192.168.1.1 as the ip address in order for video on demand to work.
    Is it true that the last digit of the lan ip on the AEBS cannot be changed from 1 (x.x.x.1)? Are there any known workarounds?
    Thanks!

    That is true and there are no workarounds.

  • HT201252 If I do a restore can I recover apps, music, books download since the last backup?

    My iPad generation 3 will not turn on.  If I do a restore can I recover apps, music, books download since the last backup?

    Restore onto a new device? Yes, provided the backup is complete. If it was done using iTunes, with all synch options enabled, onto local storage and encrypted, the resultant device will be identical in content to the original, have done this with an iPad 1 to a 3 and the 3 to a 5.
    Onto the original device? Need to persuade it to turn on first else no restoring can be done.
    Using iCloud? No idea on degree of completeness. Don't like putting my stuff somewhere beyond my control so don't use it and don't know.

  • How to skip the last digit?

    Hi,
    I have to skip the last digit in a material no (MATNR) .
    Example:
    If the matnr is 12345A
    I need to take out the last digit which is 'A' and store the material no as '12345'.
    Please let me know how can we do this easily?
    Thanks,
    Uma.

    Like this.
    report zrich_0001 .
    data: len type i.
    data: matnr type mara-matnr.
    matnr = '12345A'.
    len =  strlen( matnr ) - 1 .
    clear matnr+len(1).
    write:/ matnr.
    Regards,
    Rich Heilman

  • Alv Grid download to xl sheet: Column position mismatching

    Hi All,
    As we know that while downloading the alv grid report data into xl sheet the date cloumn and might some other column positon get shifted to extreme right.
    My problem is with five columns in my grid report  that got shifted to extreme right while downloading to the xl sheet. They have the data type CURR and DEC. As both the types are basically packed.
    I tried to convert one of them into character, but had short dumpfor this conversion.I
    Please suggest me to resolve this issue. I shall be greatful to the valuable answer.
    Note: My internal table fields order and fields order in fieldcatalog are same.
    Thnaks in advance.

    Answer is to convert it to CHAR .
    Conversion error could you post..
    Might be the size was not enough to accomodate the DEC/CURR value .
    Or the  field was not able to recognise the negative/positive signs .
    Other option is to play with excel and  manually convert all fields to Text by formatting the column in excel.

  • ALV Grid Download to Excel - Columns in wrong order

    I'm using the object cl_gui_alv_grid to output an ALV grid to the screen.  I've populated the field catalogue as follows:
    wa_alvfieldcat-col_pos = 1.
    wa_alvfieldcat-just = 'L'.
    wa_alvfieldcat-reptext = 'Customer Name'.
    wa_alvfieldcat-scrtext_s = 'Customer'.
    wa_alvfieldcat-scrtext_m = 'Customer'.
    wa_alvfieldcat-scrtext_l = 'Customer Name'.
    wa_alvfieldcat-outputlen = 35.
    wa_alvfieldcat-tabname = 'GTBL_REPORT'.
    wa_alvfieldcat-fieldname = 'CUST_NO'.
    The screen shows the table correctly in the order I've specified using COL_POS.  But when I select the download function from the ALV grid it moves all the date fields to the end instead of using the order I wanted.
    Any ideas?

      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'ZCONTRACT_REPORT'
        CHANGING
          ct_fieldcat      = tbl_alvfieldcat.
    then
      LOOP AT tbl_alvfieldcat INTO wa_alvfieldcat.
        MOVE 'GTBL_REPORT' TO wa_alvfieldcat-tabname.
        CASE wa_alvfieldcat-fieldname.
          WHEN 'DATE_ORDER'.
            wa_alvfieldcat-col_pos = 4.
            wa_alvfieldcat-just = 'L'.
            wa_alvfieldcat-reptext = 'Date Order'.
            wa_alvfieldcat-scrtext_s = 'Date Order'.
            wa_alvfieldcat-scrtext_m = 'Date Order'.
            wa_alvfieldcat-scrtext_l = 'Date Order'.
            wa_alvfieldcat-outputlen = 10.

  • Alv grid download

    Dear experts,
        I my alv grid report, while i try to download the report in excel file some data is coming some other are missing.
    can anyone give me solution to solve this
    thanks in advance
    karthik

    Hi,
    Please check your Field catalog thoroughly.
    Regards,
    Amit

  • ALV grid - download option

    Hi all,
    I am using alv grid display, in which each row is displayed in a different color. when i tried to download the content into an excel file, it is giving a dump 'GETWE_NOT_ASSIGNED'. When I removed the color i am able to download it. I am using the functional module 'REUSE_ALV_GRID_DISPLAY'. please help me to find a solution

    be sure the field catalog is corresponding exactly to your data

  • ALV  Grid downloading problem

    Hi expert,
      I got problem while downloading ALV GRID ouput to any local file.  The  output contains two records.  but while downloading  no records will be downloaded. only field headings are downloaded.  What is the problem.
    Pls help me to do.
    Thanks
    Murugan Arumugam

    I would suggest you add an additional button to the ALV grid toolbar. When the user clicks on this button you call in your event handler method for USER_COMMAND the method CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD with the entire itab.
    Or
    Set the NO_OUT as 'X' in your fieldcatalog for the particular field.
    Reward points if useful

  • Row seperator in the ALV grid display after the various highest level prod.

    Hi,
      I have a requirement like user wants a row seperator against the various high level products (Each parent material)in ALV Grid display.We made this change but quantity and pricey fields  showing the zero's in the blank line.i know that if we use NO-ZERO
    in the ALV field catalog , we can remove the zero's from blank line. But other  zerou2019s will remove from rest of the line items. User want's the zero's in other line items, but not in the blank line.
    We can convert packed fileds into character format, but this will effect to the summing the quantity, price coumns.
    If any body have idea on above mentioned.
    Regards,
    SK.

    Hi Suresh,
    There is no short cut for this requirement. You have to do following steps.
    1. Change the data type of column to char.
    2. Programatically  find the totals.
    Reagards,
    Anversha

  • Header row in ALV Grid, based on the data in the table

    Hi All,
    I have a requirement wherein, based on the data in the table used for ALV, i need to add rows as sort of header in the ALV display.
    For e.g. my table has
    Appl No.  Item  Material  Desc.           Cost                 -> Column Heading
    1             10     400        Excavation    10.00               -> Data
    1             20     400        Footing         10.00
    2             10     400        Excavation    10.00
    2             20     400        Footing         10.00
    For every new Appl No., i need to add a row, or sort of header specifying the appl no. details. means
    Appl No.  Item  Material  Desc.           Cost
    Appli. No. 1                   Date: 01/01/1009                   -> my requirement
    1             10     400        Excavation    10.00
    1             20     400        Footing         10.00
    Appli. No. 2                   Date: 02/01/1009
    2             10     400        Excavation    10.00
    2             20     400        Footing         10.00
    Is this possible in ALV my any means? Currently i m using normal ALV Grid
    Regards,
    Janaki

    Hi..
         Try like this... I think u have Application number and date in ur table ... First get the total table data into internal table.. and to add the row
         *Declare the var1 as 0 and var2.
    loop at internal table
         *var1 = var1 +1
    when application number =var1
             concatenate : 'Appli. No.' (table- appli no field) 'Date:'  (table-date field) into var2.
    perform display(some name)
         *endloop.
         *form display...
              alv display part.. first give that var2 like eg.. wa_alv-field= 'var2'.
    end form.
        Hope this will help u .....
    Regards,
    Abaper

  • Why can't I redownload my music over icloud, eventhough most of my songs downloaded just the last few won't.

    I got a new iPhone 5s and I was re-downloading my songs, most of them worked but the last 100 didn't. I don't know the problem please help, it just keeps coming up ad can not download at this time. I tried again at several other times no change. Any idea what I should do?

    If you have restored your device (which sounds like what you have done) and your music was not backed up and has been deleted off your PC, then there is no way of recovering it. The iTunes store only allows the download of purchased music once. However, if you live in the US you can access iTunes in the Cloud beta, which allows you to re-download your purchased music within iTunes. This service will launch later in the year for those not in the US.
    You must make sure you back-up all your purchased media. The new iTunes in the Cloud service will alleviate the need to do this, but its still limited to the US-only at the moment.

Maybe you are looking for