Error Message - No storage space available for extending an internal table

i have written this code where i think there is a performance issue as well.
Error - You have attempted to extend an internal table but the required space was not available.
  IF GT_OUTTAB IS NOT INITIAL.
    SELECT  ZRMVIEW~ARBPL
            ZRMVIEW~GSTRS
            ZRMVIEW~GSUZS
            ZRMVIEW~GLUZS
            ZRMVIEW~GLTRS
            ZRMVIEW~VERID
            ZCRHDV1~KTEXT1
            INNER JOIN CRHD_V1 AS ZCRHDV1
            ON ZRMVIEWMANDT = ZCRHDV1MANDT
            AND ZRMVIEWWERKS1 = ZCRHDV1WERKS
           FOR ALL ENTRIES IN  GT_OUTTAB
          WHERE AUFNR = GT_OUTTAB-BID.
    ENDSELECT.
    ENDIF.
    IF SY-SUBRC EQ 0.
      LOOP AT GT_OUTTAB .
        READ TABLE GT_PRV_OUTAB WITH KEY WERK = GT_OUTTAB-WERK.
        MOVE-CORRESPONDING GT_PRV_OUTAB TO GT_OUTTAB.
        APPEND GT_OUTTAB.
      ENDLOOP.
    ENDIF.
GT_OUTTAB contains the structure for the table COCH.
And to read this select statement it takes lot of time.
please provide me proper inputs for the same.
thanks,

Hi Shanky S
LOOP AT GT_OUTTAB .
READ TABLE GT_PRV_OUTAB WITH KEY WERK = GT_OUTTAB-WERK.
MOVE-CORRESPONDING GT_PRV_OUTAB TO GT_OUTTAB.
APPEND GT_OUTTAB.
ENDLOOP.
You are looping at gt_outtab and appending it within the same loop.  Since everytime a new entry is appended into the gt_outtab int table and thus it'll lead to an infinite loop.
Try something like by creating an itab of similar structure as gt_outtab:
LOOP AT gt_outtab into wa_outtab (work area).
  MOVE-CORRESPONDING wa_outtab into wa_outtab1.
  APPEND wa_outtab1 to gt_outtab1.
ENDLOOP.
LOOP AT GT_OUTTAB .
  READ TABLE GT_PRV_OUTAB WITH KEY WERK = GT_OUTTAB-WERK.
  MOVE-CORRESPONDING GT_PRV_OUTAB TO GT_OUTTAB1.
  APPEND GT_OUTTAB1.
ENDLOOP.
Now use gt_outtab1 in your code going furthur.
Hope this helps.
Harsh

Similar Messages

  • Error-No more storage space available for extending an internal table.

    Hi Experts,
                    i am facing problem in a program . its showing runtime error.
    Short text
        No more storage space available for extending an internal table.
    its showing error at   
    IF sy-subrc NE 0.
            REFRESH p_wip_tab.
          ELSE.
            i_wip_tab-pspnr = i_internal_and_external-pspnr_prps.
            LOOP AT p_wip_tab.
              MOVE-CORRESPONDING p_wip_tab TO i_wip_tab.
    ==> APPEND i_wip_tab.
            ENDLOOP.
          ENDIF.
    DATA: l_billable_tab LIKE p_billable_tab OCCURS 0 WITH HEADER LINE,
          p_wip_tab      LIKE zpswip OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF i_wip_tab OCCURS 0,
            pspnr              LIKE prps-pspnr.
            INCLUDE STRUCTURE zpswip.
    DATA:   pernr_name         LIKE pa0002-vorna,
          END OF i_wip_tab.
    How i can resolve this problem if anybody knows it then please reply me as soon as possible.
    Thanks

    Hello.
    Probably you fill the internal table with too much data and it cannot hold that much.
    You can either redesign the program so that it processes the data in batches of, say 100000 records, or contact your BASIS team and ask for their help. They could possible assign more memory to the running applications.
    Reward if helpful.
    Regards,
    George

  • Short dump -No more storage space available for extending an internal table

    Hi All,
    While running one program I get the short dump saying
    "No more storage space available for extending an internal table "IT_862".
    Error Analysis given in the dump log :
    The internal table "IT_862" could not be enlarged further.
    To extend the internal table, 14656 bytes of storage space was
    needed, but none was available. At this point, the table "IT_862" has
    8528862 entries.
    Source Code Extract :
    003360     loop at t_line.
    003370       clear t_output.
    003380
    003390   *   Increment Line counter
    003400       add 1 to l_line_cnt.
    003410
    003420       t_output-object = t_stxh-tdobject.
    003430       t_output-id     = t_stxh-tdid.
    003440       t_output-spras  = t_stxh-tdspras.
    003450       t_output-name   = t_stxh-tdname.
    003460       t_output-line   = l_line_cnt.
    003470       t_output-format = t_line-tdformat.
    003480       t_output-text   = t_line-tdline.
         *>       append toutput.   " ERROR POINT*
    Can you please suggest what can be the possible solution for the above error.
    Thanks in advance.
    Sanjeet

    Hi
    Check out this thread:
    Re: No storage space available for extending the internal table
    Make sure you are not having an infinite loop.
    Hope this helps
    Regards,
    Jayanthi.K

  • No storage space available for extending an internal table.

    Hi All,
    I am using Function Module :  VC_I_GET_CONFIGURATION in FI related Sales Order Report to get
    configuration data for fields Model/Engine and Line no.
    when the program executed in Production environment, It is giving Runtime Error TSV_TNEW_PAGE_ALLOC_FAILED.
    ShrtText : No storage space available for extending an internal table.  
    The termination occurred in the ABAP program "SAPLIBINF" in "SELECT_INSTANCES_01" . its all happening
    in the above FM.
    Is there any possibility to get configuration data (Model/Engine and Line no)  with out using FM.
    please advise me on how you would like to proceed related to this issue.
    Thanks & Regards
    Satish Reddy

    Hi Satish,
    Please go through the below links and see if you can use this to address your issue,
    http://wiki.sdn.sap.com/wiki/display/ABAP/ReplacementofVC_I_GET_CONFIGURATIONforperfomance+tunning
    VC_I_GET_CONFIGURATION and paging memory
    Regards,
    Chen
    Edited by: Chen K V on May 26, 2011 2:34 PM

  • Getting Dump "No more storage space available for extending an internal table" ??

    Hi All,
    In Web Ui while i was click save, it taking too much of time for saving at all lost it throwing dump such as "No more storage space available for extending an internal table". Recently Basis side did some activities for storing day to day transaction in back up server, after this activities i am getting this problem. i opening that Bsp component it throwing some information message such as component not integrated, i didn't see that message properly but i clicked continue button. After that basis activity only i got that information message once.
    i dont know what is the issue. Can anyone give solution for this issue
    Thanks,
    Anbu

    Ask your basis guys to clean up the system memory. This is happening because no memory is left.
    ~Kavindra

  • Dump --  No more storage space available for extending an internal table

    In Our system we are getting this dump
    No more storage space available for extending an internal table
    and because of it no user is able to login into the system.
    We have Some classes in the system and we have defined shared memories to all classes according to regions.
    So for a particular class means users of a region are not able to logon to systems and we are getting these dumps in the system.
    So please suggest first how to clear the shared memory & how to conclude what activity in system made the shared memory full.
    Regards,
    Shivam Mittal

    My OS is HP-UNIX..
    And we do not access on OS level,So please suggest the way to clear it from SAP level.
    In dump it is also mentioned:
    The internal table "\AREA=<Name>\INSTANCE=$DEFAULT_INSTANCE$\VER
    SID=2\OBJ={O:1.2*\CLASS=<CLASS>\DATA=GT_BUFFER[1]-DATA" could
      not be further extended. To enable
    error handling, the table had to be delete before this log was written.
    As a result, the table is displayed further down or, if you branch to
    the ABAP Debugger, with 0 rows.
    At the time of the termination, the following data was determined for
    the relevant internal table:
    Memory location: "\AREA=<Name>\INST=$DEFAULT_INSTANCE$\CLNT=100"
    Row width: 156
    Number of rows: 0
    Allocated rows: 63
    Newly requested rows: 1216 (in 19 blocks)
    Please also suggest what is the internel table name that is causing the issue.
    Regards,
    Shivam Mittal

  • BW..No more storage space available for extending an internal Table

    Hi;
    In function module - RSAR_TRFC_DATA_RECEIVED
    During Data loading from ERP to BW client am getting an error  in SM58 in ERP as ""No more storage space available for extending an internal Table "".
    There is a dump in BW system   TSV_TNEW_PAGE_ALLOC_FAILED
    "".I checked all the parameters for roll area,paging , etc..everything is fine. Also tried with  packet size smaller ..still i am getting this error ..
    Thanks & regards
    seethy

    hi thanks for the response....
    Memory parameters are fine
         em/initial_size_MB               2048     EM/TOTAL_SIZE_MB               21679     em/global_area_MB               256     Ztta/roll_area                       6500000     
         ztta/roll_first               1     
         ztta/roll_extension                  2000000000          
         rdisp/ROLL_MAXFS               32768     
         rdisp/PG_MAXFS               32768     
         rdisp/ROLL_SHM               16384     
         rdisp/PG_SHM               16384
         abap/heap_area_dia          2000000000     
         abap/heap_area_nondia      2000000000     
         abap/heap_area_total          4000000000
    i have checked with Less data selection. still error occurs     
    regards
    seethy

  • Short dump - No more storage space available for extending an internal tabl

    Hi All,
    I have requirement in which my program generates a text file on my presentation server. Here my problem is, this requirement can not be executed in back ground, it should be done in foreground only. When I execute in foreground, if the data records comes to some 38 lacks then I am getting a short dump saying 'No more storage space available for extending an internal table'.
    And in dump analysis under WHAT HAPPENED section it is giving as
    ' What happened?                                                                                |
    |    You attempted to extend an internal table, but the required space was                         |
    |    not available.
    Please suggest me, what I have to do in this case?
    Thanks in advance.
    Thanks,
    Sudha Mettu

    Hi SuDash,
    Allocation of the memory spaces will be done by BASIS people.
    you can contact them..
    Regards!

  • TSV_TNEW_PAGE_ALLOC_FAILED -  No more storage space available for extending

    Hi
    Im SAP-BW Consultant. I need some code in the transfer rules. But while im loading data , im getting "No more storage space available for extending an internal table.
    Pls check my code and modify it so that i can load the data of 5,000,00 records
    TYPES: BEGIN OF tys_TG_1,
                         /BIC/ZIUTILICH           TYPE /BIC/OIZIUTILICH,
                       /BIC/ZIRGRCH           TYPE  /BIC/OIZIRGRCH,
                       /BIC/ZPRODUCT           TYPE /BIC/OIZPRODUCT,
    END   OF tys_TG_1.
    TYPES:  tyt_TG_1        TYPE STANDARD TABLE OF tys_TG_1
                                                     WITH NON-UNIQUE DEFAULT KEY.
    data: e_s_result type tys_TG_1.
    data: e_t_result type tyt_TG_1.
    DATA : ITAB1 TYPE STANDARD TABLE OF  /BIC/AZDSO_HYD00.
    DATA : WA_ITAB TYPE /BIC/AZDSO_HYD00.
    loop at RESULT_PACKAGE into e_s_result.
         Select /BIC/ZIUTILICH /BIC/ZIRGRCH /BIC/ZPRODUCT                                               FROM       /BIC/AZDSO_HYD00 INTO
                                    (e_s_result-/BIC/ZIUTILICH,
                                    e_s_result-/BIC/ZIRGRCH,
                                     e_s_result-/BIC/ZPRODUCT)
                                 WHERE
                                 COMP_CODE = e_s_result-COMP_CODE AND
                                 PROFIT_CTR = e_s_result-PROFIT_CTR .
              append e_s_result to e_t_result.
         endselect.
             clear e_s_result.
    ENDLOOP.
    refresh RESULT_PACKAGE.
    move e_t_result[] to RESULT_PACKAGE[].
    So im getting TSV_TNEW_PAGE_ALLOC_FAILED -  No more storage space available for extending an internal table..
    I think there is a problem in the code. pls look it and modify it.
    Regards
    kumar

    Hello Kumar,
    The amount of data you can store in an internal table is limited by the width of the table together with the available memory on your machine. If you try to put too much data in your table you'll always get that problem.
    As I see it you have a table RESULT_PACKAGE with some fields and based on the entries in that table you select one row out of another table.
    You can easily use
    Select
    /BIC/ZIUTILICH /BIC/ZIRGRCH
    /BIC/ZPRODUCT FROM
    /BIC/AZDSO_HYD00
    INTO TABLE e_t_result
    FOR ALL ENTRIES in RESULT_PACKAGE
    COMP_CODE = RESULT_PACKAGE-COMP_CODE AND
    PROFIT_CTR = RESULT_PACKAGE-PROFIT_CTR .
    That still doesn't solve your memory problem hence you should try to process the data in packages, because you obviously don't have enough memory to process all data at once.
    You can add the following:
    Select
    /BIC/ZIUTILICH /BIC/ZIRGRCH
    /BIC/ZPRODUCT FROM
    /BIC/AZDSO_HYD00
    INTO TABLE e_t_result
    PACKAGE SIZE xxxx
    FOR ALL ENTRIES in RESULT_PACKAGE
    COMP_CODE = RESULT_PACKAGE-COMP_CODE AND
    PROFIT_CTR = RESULT_PACKAGE-PROFIT_CTR .
    PROCESS your data here
    ENDSELECT.
    You might also want to discuss the issue with your basis team if there is a way to get more memory if there is no way to do that process.
    Hope that helps,
    Michael

  • F.05 : No more storage space is available for extending  an internal table

    Hi,
    While executing F.05(FCV), I am getting ABAP Run time Error which is as below
    Short Text: No more storage space is available for extending  an internal table
    Pls, Give me solution and get more points. It is very urgent
    Thanks in advance
    Akash

    call your sap basis guys
    i don't need any points

  • BEx error: No roll storage space available

    Hi,
    While running a Bex query, i goth the following message and the query run was terminated "No roll storage space of length 96 available for OCCURS area".Can you please let me know what this roll storage space referes to and how this can be corrected?
    Also I get some other space related issues like "Client Out of memory" sometimes and the query execution is terminated.
    Is there any OSS notes detailing these issues(I was searching the OSS, but all my search terms didn't pick up a relavent match)
    Thanks
    Aravind

    Check this thread:
    /message/5547566#5547566 [original link is broken]
    STORAGE_PARAMETERS_WRONG_SET (EM-Memory exhausted) error in NW04
    Re: Bex error:No roll storage space of length 5670 available for OCCURS area.
    Thnaks...
    Shambhu

  • Runtime error - No PXA storage space available at the moment

    hi all...
    plz clarify MY DOUBT...
    i am unable to post the snap i got in my system..
    what happened??
    the current abap/4 program had to be terminated b'z there was no space available to load it.
    the current program had to be terminated because a capacity limit has been reached
    error analysis
    unable to load program
    the pxa was too small to hold all currently active programs for all users
    trigger location of runtime error
    program   SAPLWB2B_SCREEN_HANDLING
    include    LW2B_SCREEN_HANDLINGUG7
    row 130
    module type     function
    i am the only person working in my pc...i have got installed ecc 6.0 in my machine for training myself...
    plz tell me the sequence of steps to over come this...i have increased the virtula memory in my local drives also..
    thanks  alot
    Aavula(gopi2goal)

    Hello,
    you have to change a parameter of the SAP system to increase the memory used for caching the programs. The parameter is abap/buffersize. Go to transaction RZ10, modify the instance profile for the parameter and restart the system. You can check the size of many memory parameters in transaction ST02.
    Kind regard, Hinrich

  • After downloading Yosemite iPhoto is blocked.  Update error message reads: Update not available for this ID either because it was bought by a different user...

    After downloading Yosemite iPhoto is blocked.  Directed to update.  Update error message: Update not available for this ID either because it was bought by a different user.....  This could be because my iPhone is now linked to the Mac and it is recognising that ID.

    My previous post should read...Could this be because my iPhone is now linked to the Mac and is recognising that ID?

  • Why an Error Message "Valid size not available for this Creation" in Elements 10 Photo Collage

    I have several image editing programs, but I bought Elements 10 specifically to do things the others wouldn't.  I wish to make a photo collage but all I get when I try, after following the instructions in the "help" and "Elements 10 for Dummies" is an error message stating "Valid Size not available for this Creation."  A meaningless phrase anyway because nowhere does it request a "valid size." Please will someone tell me the magiac words to make my lovely collage automaticaslly, or shall I revert to doing it manually on one of my other excellant image editing programs?

    http://helpx.adobe.com/photoshop-elements/kb/error-valid-size-available-creation.html
    If nothing there helps, see post 4 in this thread:
    http://forums.adobe.com/message/4248143#4248143#4248143

  • Statistics setup for 2LIS_11 and no storage space available internal table

    Hi, I am running statistical setup for 2LIS_11_VAITM. It ran for 10 hours and failed with an ABAP run time error. The error is "no storage space available for extending an internal table". For 11 application, the selection options is sales org, company code and sales document. We have tried twice, and already drilled down to the level of sales org and company code, but still with error.
    The only option is sales documents.
    The volume of the data is 16 million records around in VBAP table which needs to be in the setup table.
    What is the criteria to categorize the sales document.
    Can we use order types? We have 200 values in the order types. And I am not sure the document ranges in each order type is clearly defined and not overlapping each other, so that we could load those in the setup table.
    Please advise!! Or if you have other suggestions!
    Thanks!

    Hi
    It could be because of main memory problem... so Restrict your selections and do the statistical setup
    by the way how many comp codes you have? restrict with comp codes or doc ranges
    Thanks,

Maybe you are looking for

  • How to pop up a Modal dialog on the top.

    Hi ALL, I want to pop up a dialog from background thread, and make it on the top level, any suggestion please. First: JFrame.show(), and then start a background thread to monitor some event. when the event happen, it will start to pop up a warning me

  • 10.8.4 crashes on Time Machine

    Good afternoon all, My mid-2011 iMac has crashed a number of times since upgrading to 10.8.4.  Different apps are reported to cause the crash (e.g. Chrome, Calander, screen saver), it seems whatever the app that had focus at the time of the crash is

  • No Video when using the "Send To Soundtrack Pro Audio File" Command

    Hello FCP Users, After reading and rereading the FCP and STP manuals and scouring the boards; I still can not figure out how to view my video clip while I'm editing/sweetening audio in STP. I have even used the DVD tutorial in an attempt to figure it

  • Oracle 10.2.0.4 Index on timestamp column not used when SYSTIMESTAMP Used.

    Hi, I have a table A with a column B timestamp(6). The tables contains around 300000 rows.. I have created index 'idx' on the column B. When i compare column 'B' with systimestamp, it does not use the index, whereas if i compare 'B' with sysdate it u

  • Render video with Nvidia Gefore GTX 860m graphics card

    Is there a way to render video with my Nvidia Gefore GTX 860m graphics card in Premire Pro CS6? It's not on the list, and the option is grayed out.