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

Internal table space problem..

naveen_inuganti2
Active Contributor
0 Likes
737

Hi.. all...

i developed one report with one internal table.....

here...., when I am debugging, when the cursor is coming to the select stmt after the fetch cursor, it is giving me the error

...

the internal table ITAB could not be enlarged forther....

Memory localtion: 'Session memory'

you ettempted to extend the data structure fir the management of the ememory blocks for table ITAB.However, the 1658888 bytes required for this were no longer availble in the specified memory area.

the amount of memory requested is no longer availble.

What can i do for this...

( here Itab declared as OCCURS 0)

thanks,

Naveen.

1 ACCEPTED SOLUTION
Read only

valter_oliveira
Active Contributor
0 Likes
679

Hello.

Don't use OCCURS n statement. It's an obsolete one. Instead, use:


DATA: itab TYPE STANDARD/SORTED/HASHED TABLE OF some_type,
      wa TYPE some_type.

Also, in your program, if you don't need some other tables/variables in the flow, free the alocated memory for those using FREE: var, other_itab.

Regards,

Valter Oliveira.

5 REPLIES 5
Read only

Former Member
0 Likes
679

Hi,

Insteda of decalring ITAB OCCURS 0,

decalre with any NON ZERO value.

Ex: itab occurs 100. ( As this will extend the memory with 100 rec)

Revert back if any issues.

regrads,

Naveen

Read only

valter_oliveira
Active Contributor
0 Likes
680

Hello.

Don't use OCCURS n statement. It's an obsolete one. Instead, use:


DATA: itab TYPE STANDARD/SORTED/HASHED TABLE OF some_type,
      wa TYPE some_type.

Also, in your program, if you don't need some other tables/variables in the flow, free the alocated memory for those using FREE: var, other_itab.

Regards,

Valter Oliveira.

Read only

Former Member
0 Likes
679

HI,

Declare itab as:

data:itab type table of <type>.

Read only

Former Member
0 Likes
679

hi,

declare the table like this

DATA:BEGIN OF fs_material,

matno(6) TYPE c,

mat(20) TYPE c,

plant TYPE i,

quantity TYPE i,

END OF fs_material.

DATA: t_material LIKE TABLE OF fs_material.

Regards,

priya

Read only

vinod_vemuru2
Active Contributor
0 Likes
679

Hi Naveen,

This might be because of problem with internal memory availability. Check ur code, If u r not using any internal table i.e declared globally then use FREE statement to release the memory so that it can be used for ur itab.

FREE itabtemp. "itab temp is not being used further from this

point of time.

Reduce global declarations as far as possible.

Thanks,

Vinod.