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

OCCURS clause

Former Member
0 Likes
634

WE know that the OCCURS clause in the internal table statement creates the internal <b>table object</b>

In the following statement is this possible:-

TYPES <mt> TYPE| LIKE <linetype> OCCURS<n> .

If not what else?

WE know that the OCCURS clause in the internal table statement creates the internal <b>table object</b>

In the following statement is this possible:-

TYPES <mt> TYPE| LIKE <linetype> OCCURS<n> .

If not what else?

2 REPLIES 2
Read only

Former Member
0 Likes
598

see this syntax:

data<f> <type/like><d>[oocurs n][with header line].

data<f> like <type> occurs <n>[with header line].

if its helpful plz reward me.

Read only

Former Member
0 Likes
598

Hi abaper learner,

The OCCURs Clause is used for declaring the SIZE of the Internal Table..

For EG:

Data: begin of itab occurs 0, means this will create an internal table with 8KB of memory.

But if you are specifrying

data:begin of itab occurs 10, this will create an internal table with 10 rows(according to the structure of the internal table)...

<b>Kindly Reward points if you found the reply helpful.</b>

Cheers,

CHAITANYA.

<b></b>