2007 Jul 15 5:04 PM
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....
2007 Jul 15 6:19 PM
declare it in this way ... it works
data : it_data like mara occurs 0 with header line.
Regards,
Santosh
2007 Jul 15 5:08 PM
hi,
declare it in this way to avoid the error...
data : it_data like standard table of mara occurs 0 with header line.
2007 Jul 15 6:15 PM
<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?
2007 Jul 15 5:20 PM
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.
2007 Jul 15 6:18 PM
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....
2007 Jul 15 6:21 PM
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
2007 Jul 15 6:19 PM
declare it in this way ... it works
data : it_data like mara occurs 0 with header line.
Regards,
Santosh
2007 Jul 15 6:37 PM
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
2007 Jul 15 8:03 PM
<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