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

Internal table declaration

Hi,

I have a declaration like this :

data : begin of itab occurs 0,

a type i,

b type i,

end of itab.

data : itab2 type itab.

My doubt is whether itab2 would be a internal table or just a structure.

Regards,

Vishu.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 04:24 PM

    sorry typo.........

    it refer to a structure not to an internal table

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 04:26 PM

    Itab2 will not be internal table, it is just a structure.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2007 at 04:31 PM

    Hi,

    ITAB2 is neither structure or internal table.

    Please try this.

    data: begin of itab occurs 0,
            a type i,
            b type i,
          end of itab.
    
    data: itab2 like itab.      "ITAB2 is structure
    
    or 
    
    types: begin of itab,
             a type i,
             b type i,
           end of itab.
     
    data: itab2 type table of itab.     "ITAB2 is an internal table
    data: wa_itab2 like line of itab2.  "WA_ITAB2 is a structure   
    

    Regards,

    Ferry Lianto

    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.