Showing results for 
Search instead for 
Did you mean: 

How to declare Private section for ABAP Class

Former Member
0 Kudos

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.



Accepted Solutions (0)

Answers (2)

Answers (2)

Active Contributor
0 Kudos

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.



Former Member
0 Kudos

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.