2009 Jul 22 1:49 PM
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
Hi,
The Occurs clause defines how many table entries are maintained in ABAP Memory.
Insted of OCCURS 0 try using OCCURS 10.
Thanks,
Sri.
2009 Jul 22 1:52 PM
2009 Jul 22 1:58 PM
2009 Jul 22 2:00 PM
2009 Jul 22 2:32 PM
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
2009 Jul 23 7:38 AM
Hi,
The Occurs clause defines how many table entries are maintained in ABAP Memory.
Insted of OCCURS 0 try using OCCURS 10.
Thanks,
Sri.
2009 Jul 22 2:13 PM
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.
2009 Jul 22 4:57 PM
Hi,
Try to debug...
or can you post the code where you are getting the error?
thnx
Rahul
2009 Jul 22 7:41 PM
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
2009 Jul 22 10:13 PM
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
2009 Jul 23 6:35 AM
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
2009 Jul 23 6:44 AM
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
2009 Jul 23 6:50 AM
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
2009 Jul 23 7:30 AM
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
2009 Jul 23 7:43 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |