01-30-2008 10:54 AM
Hi FRIENDS,
Can any on eplease twll me about "occurs" where we used in defining internal table.
Thanks in advance,
chandu.
01-30-2008 10:57 AM
hi chandu
Occurs addition will give default memory space.
If u donot add that then defined object behaves like a workarea instead of int table.
Reward if useful
01-30-2008 10:58 AM
hi,
Before Release 3.0, internal tables all had header lines and a flat-structured line type. There were no independent table types. You could only create a table object using the OCCURS addition in the DATA statement, followed by a declaration of a flat structure:
DATA: BEGIN OF <itab> OCCURS <n>,
...
<fi> ...,
...
END OF <itab>.
This statement declared an internal table <itab> with the line type defined following the OCCURS addition. Furthermore, all internal tables had header lines.
The number <n> in the OCCURS addition had the same meaning as in the INITIAL SIZE addition from Release 4.0. Entering 0 had the same effect as omitting the INITIAL SIZE addition. In this case, the initial size of the table is determined by the system.
Hope this is helpful, Do reward.
01-30-2008 10:59 AM
The number <n> in the OCCURS addition had the same meaning as in the INITIAL SIZE addition from Release 4.0. Entering 0 had the same effect as omitting the INITIAL SIZE addition. In this case, the initial size of the table is determined by the system
01-30-2008 2:18 PM
Hi,
The initial memory requirement defined during the creation of the internal table with the addition INITIAL SIZE or the obsolete addition OCCURS is determined and assigned to the data object n. The data type i is expected for the data object.
Regards,
Renjith Michael.