Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

dump while access internal table

JayantkumarS
Participant
0 Likes
1,598

Hi Experts,

I am facing an error while executing a program

"You attempted to extend an internal table, but the required space was"

how to solve this?

thanks in advance,

Jayant.

Edited by: shetty jayant kumar on Jul 22, 2009 2:49 PM

14 REPLIES 14
Read only

RahulKeshav
Active Contributor
0 Likes
1,480

Hi,

What is the declaration for the internal table?

thnx

Rahul

Read only

0 Likes
1,480

DATA: BEGIN OF tb_pval OCCURS 0,

end of tb_pval.

Read only

0 Likes
1,480

HI,

Can you post your code?

Regards,

Ankur Parab

Read only

0 Likes
1,480

Hi shetty jayant kumar,

>

> DATA: BEGIN OF tb_pval OCCURS 0,

> end of tb_pval.

you have to include all fields that are selected from DB-Table.

Regards

REA

Read only

0 Likes
1,480

Hi,

The Occurs clause defines how many table entries are maintained in ABAP Memory.

Insted of OCCURS 0 try using OCCURS 10.

Thanks,

Sri.

Read only

Former Member
0 Likes
1,480

Hi,

Check for the following.

You might be trying to populate your internal table with a really huge amount of data. To avoid this, optimize your fetch process (your select query) to fetch data that's required. Query based on the key fields and the indexes.

Read only

RahulKeshav
Active Contributor
0 Likes
1,480

Hi,

Try to debug...

or can you post the code where you are getting the error?

thnx

Rahul

Read only

Former Member
0 Likes
1,480

Hi,

U might be trying to push huge amount of data into internal table which exceeds the storage limit allocated to internal table.

I guess it can be avoided by selecting only required fileds in to internal table by

data: begin of <int_table> occurs 0,

end of <int_table>

Or

Process the data in chunks .

Thanka and Regards,

KC

Read only

Former Member
0 Likes
1,480

Hi Shetty,

First, I would like to suggest to change your data declaration

DATA: BEGIN OF tb_pval OCCURS 0, 
end of tb_pval.

to

TYPES: BEGIN OF ty_pval, 
               f1, 
               f2, 
               : 
           END OF ty_pval. 
DATA: tb_pval TYPE STANDARD TABLE OF ty_pval, 
           wa_pval type ty_pval.

Reason: The OCCURS clause is declared as obsolete since 4.7 (but it still can be used). In the "New Generation of ABAP", TYPES-concept is preferable.

Secondly, you have to declare fields in your structure (f1, f2, .....)

Third, declare a working structure wa_pval with exactly the same structure as your table tb_pval! Populate wa_pval and then update your internal table using your populated working structure. Don't use Header lines anymore!

append tb_vbal with wa_vbal.

These dumps occur not because of exceeding space, but most likely because there is a field discrepancy.

Have success,

Heinz

Read only

Former Member
0 Likes
1,480

Hello Shetty,

Sorry for my spelling mistake. The last line should be

append tb_pval with wa_pval.

Hopefully, this has not caused too much confusion.

Heinz

Read only

Former Member
0 Likes
1,480

Shetty,

I am causing more and more confusion. Isn't it?

Here is the syntactically correct line:

append wa_pval to tb_pval.

Sorry,

Heinz

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,480

Hi

Though OCCCRS is not suggestable in ECC,for time being

DATA: BEGIN OF tb_pval OCCURS 10,

end of tb_pval.

try that .

Regards,

Sreeram

Read only

Former Member
0 Likes
1,480

hi ,

define the type 1st for ur internal table

types : begin of t_table,

f1 type ekpo-ebeln, -


>just as an example

f2 type ekpo-ebelp,

....

....

end of t_table.

data : itab type table of t_table,

wa type t_table.

and then fetch the data using select

just check whether it helps u.......

thanks

shivraj

Edited by: ShivrajSinha on Jul 23, 2009 8:30 AM

Read only

Former Member
0 Likes
1,480

Hi,

Its good not to use occurs 0, it is obsolete, declare internal table like:

data:begin of wa,

var1(20),

end of wa.

data:itab like standard table of wa with header line.

"Memory allocation will be taken care automatically

Just Refer follwoing Link,

Thnaks & Regards,

ShreeMohan