Skip to Content
author's profile photo Former Member
Former Member

internal table

difference b/w occurs 0 and occurs 1.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 11:17 AM

    Hi Srinath,

    In the declaration of internal table we use this syntax occurs 0 ....

    this occurs is used for Reserve memory for internal table if you enter 0 some 256 bytes will alocate , if 1 some memory is alocate. there is nothing matter by using 0 and 1 if memory is not sufficeient Sap automatically alocate another 256 bytes of memory so don't worry about that.

    Plzzz Reward if help,

    Mahi.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 11:22 AM

    occurs o-> 256 bytes

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 30, 2007 at 11:23 AM

    Hi,

    Occurs 1 means initialy the memory allocated is only for 1 record and for the secong record it will again allocate memory. it wil be usefull when we know the number of records to be appended.

    But where as occurs 0 means it allocate memory with ful space(8kb) to Internal table

    Thanks,

    Ananth

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 12:47 PM

    Hi Srinath,

    occurs 0 and occurs 1 ,

    are the old methods of declaring an internal tables. They are useful now also.

    This declaration is with pre-considering the memory allocation.

    If you are using REFRESH on the internal table declared this way.....then memory allocations may not persist.

    Most of the time in programs after declaration programers use REFRESH statement. And so wether you declare it as occurs 0 or occurs 1 , both hardly differ.

    Regds,

    Gaurav

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 12:56 PM

    Be AWARE that this is obsolete.

    tables with header-lines are obsolete as well and in OOP scenarion even forbidden.

    So better dont get used to it too much.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.