Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 17, 2008 at 01:46 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.