Not able to download all the rows to excel sheet from alv grid display

Hi experts,
I am not able to download all the rows which are displayed in alv grid display for some material numbers.
for some materials i am able to download, i used two ways to download 1) from icon(local file) on grid 2) menu list->export.
i checked in debugging till selecting the spread sheet pop up window, i am able to see all the data in internal table.
Can you suggest me what will be the problem....
thanks in advance,

hi sandeep,
sorry for didnt specify clearly.
note: EX: "asaasdada  in this sentence i said  " this symbol is special character not the text.
building final internal table code
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
    EXPORTING
      capid                 = p_capid
      datuv                 = sy-datum
      ehndl                 = '1'
      mktls                 = 'X'
      mehrs                 = 'X'
      mmory                 = '1'
      mtnrv                 = p_matnr
      stlal                 = '1'
      stpst                 = 0
      svwvo                 = 'X'
      werks                 = p_werks
      vrsvo                 = 'X'
    TABLES
      stb                   = i_stb
    EXCEPTIONS
      alt_not_found         = 1
      call_invalid          = 2
      material_not_found    = 3
      missing_authorization = 4
      no_bom_found          = 5
      no_plant_data         = 6
      no_suitable_bom_found = 7
      conversion_error      = 8
      OTHERS                = 9.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  i_stb1[] = i_stb[].
  IF NOT i_stb1[] IS INITIAL.
    SORT i_stb1 BY idnrk.
    DELETE ADJACENT DUPLICATES FROM i_stb1 COMPARING idnrk.
    SELECT bmatn ematn FROM ampl INTO TABLE i_ampl
      FOR ALL ENTRIES IN i_stb1
      WHERE bmatn = i_stb1-idnrk AND
            datuv LE sy-datum AND                          
            datub GE sy-datum.                              
    SELECT
    matnr
    bwkey
    verpr
    stprs
    bwprh
    FROM mbew
    INTO TABLE i_mbew
    FOR ALL ENTRIES IN i_stb1
    WHERE
        matnr EQ i_stb1-idnrk AND
        bwkey EQ i_stb1-werks.
    IF NOT i_stb1[] IS INITIAL.
      SELECT matnr werks beskz
             dzeit webaz plifz                              
             ekgrp                                         
      INTO TABLE i_marc
      FROM marc
      FOR ALL ENTRIES IN i_stb1
      WHERE matnr = i_stb1-idnrk
      AND werks = i_stb1-werks.
      SORT i_marc BY matnr werks.
    ENDIF.
    CLEAR i_ekpo.
    CLEAR i_vend.
    IF NOT i_stb1[] IS INITIAL.
      SELECT ebeln ebelp matnr werks loekz aedat
             netpr peinh                                   
      INTO TABLE i_ekpo
      FROM ekpo
            FOR ALL ENTRIES IN i_stb1
            WHERE matnr = i_stb1-idnrk
            AND werks = i_stb1-werks.
      SORT i_ekpo BY matnr ASCENDING
                     aedat DESCENDING
                     ebeln DESCENDING
                     ebelp DESCENDING.
      IF NOT i_ekpo IS INITIAL.
        SELECT k~ebeln k~lifnr l~name1
        INTO TABLE i_vend
        FROM ekko AS k INNER JOIN lfa1 AS l
        ON k~lifnr EQ l~lifnr
        FOR ALL ENTRIES IN i_ekpo
        WHERE ebeln = i_ekpo-ebeln.
        SORT i_vend BY ebeln.
      ENDIF.
    ENDIF.
  ENDIF.
  i_ampl1[] = i_ampl[].
  IF NOT i_ampl1[] IS INITIAL.
    SORT i_ampl1 BY ematn.
    DELETE ADJACENT DUPLICATES FROM i_ampl1 COMPARING ematn.
    SELECT matnr mfrpn mfrnr FROM mara INTO TABLE i_mara
      FOR ALL ENTRIES IN i_ampl1
       WHERE matnr = i_ampl1-ematn.
  ENDIF.
  SORT i_ampl BY bmatn.
  IF NOT i_stb[] IS INITIAL.
    SELECT stlty stlnr stlkn stpoz idnrk potx1 potx2
    INTO TABLE i_stpo
    FROM stpo
    FOR ALL ENTRIES IN i_stb
    WHERE stlty = i_stb-stlty
      AND stlnr = i_stb-stlnr
      AND stlkn = i_stb-stlkn
      AND stpoz = i_stb-stpoz
      AND idnrk = i_stb-idnrk.
    SORT i_stpo BY stlty stlnr stlkn stpoz idnrk.
  ENDIF.
  LOOP AT i_stb INTO wa_stb.
    READ TABLE i_marc INTO wa_marc
    WITH KEY     matnr = wa_stb-idnrk
                 werks = wa_stb-werks
                 BINARY SEARCH.
    IF sy-subrc = 0.
      wa_outtab-beskz = wa_marc-beskz.
      wa_outtab-dzeit = wa_marc-dzeit.                      
      wa_outtab-webaz = wa_marc-webaz.                     
      wa_outtab-plifz = wa_marc-plifz.                     
      wa_outtab-ekgrp = wa_marc-ekgrp.                     
    ENDIF.
    READ TABLE i_ekpo INTO wa_ekpo
        WITH KEY matnr = wa_stb-idnrk.
    IF sy-subrc = 0.
      wa_outtab-netpr = wa_ekpo-netpr.                     
      wa_outtab-peinh = wa_ekpo-peinh.                     
      READ TABLE i_vend INTO wa_vend
      WITH KEY ebeln = wa_ekpo-ebeln
               BINARY SEARCH.
      IF sy-subrc = 0.
        wa_outtab-lifnr = wa_vend-lifnr.
        wa_outtab-name_sup = wa_vend-name1.
      ENDIF.
    ENDIF.
    READ TABLE i_stpo INTO wa_stpo
    WITH KEY stlty = wa_stb-stlty
             stlnr = wa_stb-stlnr
             stlkn = wa_stb-stlkn
             stpoz = wa_stb-stpoz
             idnrk = wa_stb-idnrk
             BINARY SEARCH.
    IF sy-subrc = 0.
      wa_outtab-potx1 = wa_stpo-potx1.
      wa_outtab-potx2 = wa_stpo-potx2.
    ENDIF.
    READ TABLE i_mbew INTO wa_mbew
    WITH KEY
    matnr = wa_stb-idnrk
    bwkey = wa_stb-werks.
    IF sy-subrc IS INITIAL.
      MOVE:
      wa_mbew-verpr TO wa_outtab-verpr,
      wa_mbew-stprs TO wa_outtab-stprs,
      wa_mbew-bwprh TO wa_outtab-bwprh.
    ENDIF.
    wa_outtab-matnr = p_matnr.
    wa_outtab-posnr = wa_stb-posnr.
    wa_outtab-stufe = wa_stb-stufe.
    wa_outtab-idnrk = wa_stb-idnrk.
    wa_outtab-ojtxb = wa_stb-ojtxp.
    wa_outtab-menge = wa_stb-menge.
    wa_outtab-meins = wa_stb-meins.
    MOVE: wa_stb-zzitem_draw_no TO wa_outtab-zzitem_draw_no.
    IF wa_stb-upskz = 'X'.
      SELECT * FROM stpu INTO TABLE i_stpu
               WHERE  stlty = wa_stb-stlty AND
                      stlnr = wa_stb-stlnr AND
                      stlkn = wa_stb-stlkn AND
                      stpoz = wa_stb-stpoz.
    ENDIF.
    LOOP AT i_stpu INTO wa_stpu.
      wa_outtab-upmng = wa_stpu-upmng.
      wa_outtab-ebort = wa_stpu-ebort.
      wa_outtab-uposz = wa_stpu-uposz.
      CONCATENATE v_ebort wa_stpu-ebort      INTO v_ebort
      SEPARATED BY space.
    ENDLOOP.
    MOVE strlen( v_ebort ) TO v_len.
    MOVE: 0 TO x,
      128 TO y.
    DATA : lt_tab TYPE TABLE OF swastrtab.
    DATA : ls_tab LIKE LINE OF lt_tab.
    DATA : lv_ebort TYPE string.
    CLEAR lv_ebort. CLEAR lt_tab.
    MOVE v_ebort TO lv_ebort.
    CALL FUNCTION 'SWA_STRING_SPLIT'
      EXPORTING
        input_string                 = lv_ebort
        max_component_length         = 128
      TABLES
        string_components            = lt_tab
      EXCEPTIONS
        max_component_length_invalid = 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.
    IF lt_tab[] IS NOT INITIAL.
      LOOP AT lt_tab INTO ls_tab.
        CLEAR lv_ebort.
        MOVE: ls_tab-str TO lv_ebort.
        CONDENSE lv_ebort.
        MOVE lv_ebort TO wa_outtab-ebort.
        APPEND wa_outtab TO i_outtab.
        CLEAR:
        wa_outtab-matnr,
        wa_outtab-posnr,
        wa_outtab-zzitem_draw_no,
        wa_outtab-ojtxb,
        wa_outtab-menge,
        wa_outtab-meins,
        wa_outtab-uposz,
        wa_outtab-upmng,
        wa_outtab-verpr,
        wa_outtab-stprs,
        wa_outtab-bwprh,
        wa_outtab-lifnr,
        wa_outtab-name_sup,
        wa_outtab-potx1,
        wa_outtab-potx2,
        wa_outtab-netpr,
        wa_outtab-peinh.
*        wa_outtab-idnrk.
      ENDLOOP.
    ELSE.
      APPEND wa_outtab TO i_outtab.
    ENDIF.
    CLEAR v_ebort.
    CLEAR: wa_stpu.
    REFRESH: i_stpu.
    LOOP AT i_ampl INTO wa_ampl WHERE bmatn = wa_stb-idnrk.
    READ TABLE i_mara INTO wa_mara WITH TABLE KEY matnr = wa_ampl-ematn.
      IF sy-subrc = 0.
        LOOP AT i_outtab INTO wa_outtab
        WHERE
        idnrk = wa_stb-idnrk AND
        flag NE 'X'.
          wa_outtab-mfrpn = wa_mara-mfrpn.
          wa_outtab-mfrnr = wa_mara-mfrnr.
          SELECT SINGLE name1 FROM lfa1 INTO wa_outtab-name1 WHERE lifnr = wa_mara-mfrnr.
          MOVE 'X' TO wa_outtab-flag.
          MODIFY i_outtab FROM wa_outtab
          TRANSPORTING mfrpn mfrnr name1 flag.
          EXIT.
        ENDLOOP.
        IF sy-subrc <> 0.
          CLEAR:
          wa_outtab-matnr,
          wa_outtab-posnr,
          wa_outtab-zzitem_draw_no,
          wa_outtab-ojtxb,
          wa_outtab-ebort,
*          wa_outtab-idnrk,
          wa_outtab-menge,
          wa_outtab-meins,
          wa_outtab-uposz,
          wa_outtab-upmng,
          wa_outtab-verpr,
          wa_outtab-stprs,
          wa_outtab-bwprh,
          wa_outtab-lifnr,                                 
          wa_outtab-name_sup,                              
          wa_outtab-potx1,                                 
          wa_outtab-potx2,                                 
          wa_outtab-netpr,                                 
          wa_outtab-peinh.                                 
          wa_outtab-mfrpn = wa_mara-mfrpn.
          wa_outtab-mfrnr = wa_mara-mfrnr.
          SELECT SINGLE name1 FROM lfa1 INTO wa_outtab-name1 WHERE lifnr = wa_mara-mfrnr.
          APPEND wa_outtab TO i_outtab.
        ENDIF.
      ENDIF.
      REFRESH i_stpu.
      CLEAR i_stpu.
    ENDLOOP.    CLEAR: wa_matnr1, wa_mfrnr, wa_outtab.
  ENDLOOP.
Edited by: srinivasareddy j on Mar 9, 2011 7:16 AM
Edited by: srinivasareddy j on Mar 9, 2011 7:20 AM

Similar Messages

  • Not able to export all the rows into excel

    Hi All,
    I'm not able to export all the records in discoverer report to excel sheet.
    There are actually 27000 records in discoverer report, when i export them to excel sheet i can see only 16000 records.
    I'm using discoverer plus.
    Any suggestions...please share with me.
    Thanks in advance,

    Hi,
    Do you have parameters on the worksheet? if so then are you selecting same as when you ran it?
    What version are you using ? Plus? Viewer? Desktop?
    You can export the worksheet into CSV instead of XLS and see what you get.
    Also check other formats to see if this missing lines happen in all export methods or just the XLS.

  • Not able to download all the stubs using the WSDL provided for Contact.

    Hi All,
    I am using wsdl2java to download stubs from the wsdl for contact using axis.
    But i am not able to download all the files from the wsdl.
    I am not able to see ListofContactData.java file in the stubs created,but i a can see in the that in wsdl.
    Anybody can help me in this issue.
    Thanks & Regards
    Amith B N

    Hi Guys..
    please post the solution clearly. I have the same problem and have to complete the development in short span..
    Please mates.. Hope u ppl will help on time.. if possible.. send me the document.
    refer my build.xml which i used for Version 1.0 in the below link.
    Re: wsdl v2.0 vs V1.0
    My mail id : [email protected]
    Regards
    Balaji Tr.

  • Why am I not able to download all the messages from the email server, only few are downloaded, the rest are not? Things were fine until last week.

    I've tried all the suggestions including deleting the inbox.msf etc. I have also tried uninstalling and reinstalling Thunderbird, but none of them seem to work.

    Is it hanging on the same message each time? If so go to your email providers web mail site and log into your account there. Read and delete the problem message and see if the remaining messages download.

  • Download to excel sheet from ALV Grid report

    Hi,
    I need to download 3 lakhs of data to excel sheet but the constraint is that excel is having max limit of 65000 line items.
    So i need to know the way in which i can create more than one sheet in excel while downloading so that each sheet can hold upto 65000 line items.
    i need to create atleast 6 sheets in excel while downloading from report.
    please help.

    Hi,
    While downloading the data, it will prompt you save the list in file - Uncoverted, Spreadsheet, Rich text format, HTML format, Copy to Clipboard.
    Why don't you try using Uncoverted format and give extension as .txt file.
    So that you can download all 3 lacs of records.
    Even if you use any FM, it will indirectly use excel for downloading and it will have restriction of having 65000 records only.
    Thanks,
    Sriram Ponna.

  • I am able to download all the album I bought from itune store. The album contains 13 songs but 4 of them would not load up into my ipod. How can I fix that?

    I am not able to download all the album I bought from itune store. The album contains 13 songs but 4 of them would not load up into my ipod. An error code will pop up notified me that "my Ipod cannot convert some of the file" How can I fix that?

    Hi there mayway3000,
    You may find the troubleshooting steps in the article below helpful.
    iPod does not play content purchased from the iTunes Store
    http://support.apple.com/kb/TS1510
    -Griff W.

  • Not able to download all of my music onto my ipod 5 after 8.2 update

    After updating my 5th gen ipod touch to 8.2 software I am not able to download all of my music from my itunes library.
    I have updated the software twice now and have restored and gone back to factory settings and have started over from scratch.
    Before doing this my ipod wouldn't download any music. After doing this, it has downloaded some but not all music.
    For instance, out of 100 songs on a playlist, only 90 will download. My apps and photos seem okey, just not the music.

    Dotted circles next to songs, won't...: Apple Support Communities
    What does the gray dotted circle in...: Apple Support Communities
    what does the dotted circle mean?: Apple Support Communities

  • I have updated my ipad yestarday sicne then i am not able to open any application on my ipad2. some of the application able to open in the page and not able to open all the applications in the second page. Does any one got this type of issue? any sugg?

    i have updated my ipad yestarday sicne then i am not able to open any application on my ipad2. some of the application able to open in the page and not able to open all the applications in the second page. Does any one got this type of issue? any suggestions?

    This problem has been reported a few times. The solution is to install any new App say a free one. This seems to fix whatever has gone wrong.

  • Not able to see all the records thru RSA3.

    Hello All,
    I am checking 0VALUATION_TEXT extractor on R/3 using RSA3 Tcode.
    It is showing only 3 records.
    When I am loading this Text Master data through InfoPackage, the records were loaded from R/3 to PSA itself is 6.
    Why I am not able to see all the records in RSA3.
    Kindly Help me out in this.
    Thanks,
    Geetha

    Hi Geetha,
    Check the data, It seems loded data was 3 records for 2 languages.
    In RSA3 it is showing 3 records for EN language.
    Assign points if it helps...
    Regards,
    ARK

  • Well im not able to updated all the events I had in the imovie, HELP

    Well im not able to updated all the events I had in the imovie, HELP

    I have started preparing a small Database application
    using JDBC with Swing.
    I want to dispaly all the Table names which are
    present in the Access Data Source. When i used the
    Standard query for this "Select * from Tab" as in
    SQL, an eror saying that "not able to resolve symbol
    'Tab' ".
    Can anybody please help me out to display the table
    names?That query
    Select * from tabwould work only for Oracle, as far as I know. There is no system table called Tab in Access.
    ***Annie***

  • Users not able to see all the default reports in FDM under analysis

    All,
    Users in FDM are not able to see all the default reports which will be available under Analysis. I have checked the MenuNavigation and MenuNavigationItems under object maintainence in FDM which have "ALL" as the provisioning level. I am not sure where the issue is as the users still not able to see the reports. Please advise if there is something that can be done in workbench.
    Regards

    You can set security on Report folders in workbench.  You would go to the report tab in workbench, and right click on a Folder (Cannot do it on the individual report, it has to be on the folder), and you can assign security levels to the report folder.  There are some in here that default to the admin level but you can override it.
    Regards
    JTF

  • Not able to get all the results if i use "get-spdeletedsite" command

    Hi everyone,
    I am not able to get all the results when I use the below powershell command.
    get-spdeletedsite -limit all
    It is giving me only one site, but infact we have more than 100 deleted sites.
    If I use the normal command like below it is giving the below output
    get-spdeletedsite
    Can any one tell me, how can I get all the deleted sites ?
    Best Regards
    Anil Alladi

    Hi  Anil,
    For the Limit parameter of Get-SPDeletedSite cmdlet, when we specify its value to ALL, it  will return all site collections for the given scope.
    For your scenario, the script “Get-SPDeletedSite –Limit ALL” will return all deleted site collections in your SharePoint environment.
    If you want to get all deleted site, you can export the result to csv as below:
    Get-SPDeletedSite | export-csv out.csv -notypeinformation
    Reference:
    http://technet.microsoft.com/en-us/library/hh286316(v=office.15).aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Not able to see all the SAP tables from CR 2008

    Hi All,
    1)I am not able to see all the SAP database tables(DEV server) from Database expert menu in CR 2008. Only tables those start with alphabet letters upto A & B are visible. I checked the database connection>right click>options> found no filters as well.
    We are using the CR 2008 trial version with SAP ECC.
    2) When i am trying with Production Server of SAP ECC, I am not able to logon to the SAP from CR 2008. It is giving error message
    as : LOGON FAILED : User USER1 has no RFC AUTHORIZATION for function group SYST
    Please help me to resolve these. Thanks in advance.

    Thank you very much ingo.
    You helped me a lot.
    One more question, when I am trying for SAP database connections say for ex: 10.57.410.70, again and again some times the connection is getting saved in my connections with as new versions/variants like
    10.57.410.70_1 or so. How to overcome this.
    Thanks in advance ingo
    Badari

  • I get an error message saying "system overload, the audio engine was not able to process all the required data in time (10011)

    i get an error message saying "system overload, the audio engine was not able to process all the required data in time (10011)

    The thing is, that error message has been appearing when playing/recording a track that was running perfectly a few minutes ago and nothing has changed!
    That can mean, that your project is too ambitious for your Mac. Are you using many complicated automations on that track?
    4GB memory is not much, when doing audio processing. GarageBand will need all memory it can get, or will be forced to continually swap pages to your disk, to free RAM, and that can cause this error.
    When this error occurs, it is best to restart the computer. This will free your RAM. Close all other applications that are competing for memory, i.e. other multimedia applications, and Safari.
    Also, make sure, that you have plenty of free disk space. Don't let the free disk space drop below 20G.
    Where is your project located? On an external drive or your internal drive? If it is on an external drive, connect this drive directly, not daisy-chained, or move the project to your internal drive.
    I got up to eat, came back and tried to continue but GarageBand shuts down and displays that message every time I try to run the song. I've also recently run songs with several more tracks than this one and they worked perfectly. Any tips?
    Are your other projects, that worked perfectly, still working?

  • A few years ago I bought music from Itunes.  Recently I deactivated all computers in order to add a new computer.  Most of the music I purchased came through, but I am still missing about 30% of it.  How can I download all the music I have purchased from

    A few years ago I bought music from Itunes.  Recently I deactivated all computers in order to add a new computer.  Most of the music I purchased came through, but I am still missing about 30% of it.  How can I download all the music I have purchased from Itunes?

    Might have luck with that here >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Previous purchases may be unavailable if they have been refunded or are no longer on the iTunes Store.
    Make sure and use the same Apple ID that was used for the original purchases.

Maybe you are looking for

  • FTP adpter setting for SFTP

    Hi All, I am trying to connect to an SFTP server on unix and pick up a file. I have done all the connection settings as per the documentation in oc4j-ra.xml and i have also made sure the hostname and port are correct. But when im trying to connect be

  • How To Copy MEDRUCK?

    Dear Abapers, Please tell me how to copy MEDRUCK program to print the Purchase Order. Please tell me step by step as I am new to ABAP. Also tell me how to make changes in MEDRUCK according to my company i.e. how & where to change the company logo, ad

  • Problem of number range object

    hi experts,    the user use PA40 to record events and create an employee, the user wants the system to warn if the total number of employee beyond limits.   so i found an exit 'PBAS0001' and implements it, if the total number beyonds limits, and popu

  • I have Mac Air Updated to Mavericks, since then unable to listen to UNI podcasts. I have updated to the latest version of iTunes.

    Hi All, I have recently upgraded to Mavericks and since then I am unable to connect to my Uni Podcast, it keeps asking to register my username and password, even when launched from the external website. I have reinstalled the latest version of iTunes

  • Best Books to Learn VideoConferencing?

    What are the best books to Learn Video Conferencing Theory and Practice nowadays? We use PolyCom systems, and the books I have found seem to be very general. What are experts using for references nowadays?