Application Development 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: 

The work area "IT_ITAB" is not long enough

Former Member
0 Kudos
3,681

I created a interna table IT_ITAB with OCCURS 0, But it's giving error as

<i><b>The work area "IT_ITAB" is not long enough</b></i>.

So pls send the correct syntax to solve the error....

1 ACCEPTED SOLUTION

Former Member
0 Kudos
550

declare it in this way ... it works

data : it_data like mara occurs 0 with header line.

Regards,

Santosh

8 REPLIES 8

Former Member
0 Kudos
550

hi,

declare it in this way to avoid the error...

data : it_data like standard table of  mara occurs 0 with header line.

0 Kudos
550

<i><b>data : it_data like standard table of mara occurs 0 with header line.</b></i>

Above syntax is not working...its giving error as "OCCURS 0 is not expected".

I have one more dought...In the report I am providing some of the fields from my own database table.

1. Can I provide the fields when using the WITH HEADER LINE concept.?

2.Can I avoid BEGIN OF after "DATA :"?

3.Pls tell me the exact use of STANDARD key word.

4.What is the memory sys assigning dynamically when using OCCURS 0?

5.What is the syntax to increase the memory?

Former Member
0 Kudos
550

Hi Suresh,

you can define type & then declare the internal table of that type

For Ex.,

types : begin of t_tab,

field1,

field 2,

end of t_tab.

data: it_tab type standard table of t_tab occues 0.

Hope it helps.

Reward helpful answers.

Regards,

Siddhesh sanghvi.

0 Kudos
550

Hi Sangvi,

Now Iam in starting stage....So I want to work with the normal Internal Table concept......Later I will try to work with TYPES...Because I don't kno much abt TYPES....

0 Kudos
550

Hi Sangvi,

WORK AREA holds only one record at a time....then why its creating problem with the memory

1. Is it because of No. of COLUMNS in the table

Former Member
0 Kudos
551

declare it in this way ... it works

data : it_data like mara occurs 0 with header line.

Regards,

Santosh

0 Kudos
550

Dear Santosh,

Now its working.....But can u pls tell me how to create a report with out the HEADER LINE concept....because I want the output as only some of the fields from the table.....

And this type of programming consumes much processing than the normal one.....

Regards

Suresh

0 Kudos
550

<i><b>data : it_data like standard table of mara occurs 0 with header line.</b></i>

Hi Suresh..

If u want internal table with header line..

then declare as :

data : it_data type standard table of mara initial size 0 with header line

<i> In this declaration occurs 0 addition is not supported </i>

Regards

Prax