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

How to declare Private section for ABAP Class

HI , Can any one suggest me on how to declare a <b>private section</b> for an user defined class. The reason is i want to create an internal table with user defined fields.

I tried declaring with type groups with in the private section, but i <b>couldn't activate</b> the changes.

Can you please help me on this issue.

TIA

Swaroop

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 06, 2005 at 12:05 AM

    Hi Swaroop,

    Do you mean you want to create an internal table as a private attribute of a user-defined class?

    If so, you can create a class using se80, declare the internal table (specifying the appropriate table type) with visibility "Private".

    If I understood incorrectly, please clarify.

    Regards,

    Rohini.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 06, 2005 at 01:07 PM

    hi swaroop,

    when u talk in terms of ABAP Objects, so classes can be either Local or Global. Local Class u have to declare in your report itself, and global class u can edit using SE24 transaction.

    so first clear it that u like to declare a global or local class.

    and if it's global class, then u just have to set VISIBILITY attribute of that class as private. so i think simply by doing this it will work.

    So hope its clear to you.

    Regards,

    kamaljeet

    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.