Application Development 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: 

class builder question

Former Member
0 Kudos

perhaps i am to blind to see it, but how can i define a parameter of a method as an internal tabel in the class builder.

the only possible type definitions are: type, like and typr ref to.

1 REPLY 1

Former Member
0 Kudos

You don't differentiate in method interface between internal tables and other variable types. There is no equivalent in a method to a function's TABLES interface. Instead, the parameter type should be a reference to a table type.

In my opinion, this is best done by defining the table type in the Dictionary. If you've not done this before, go to SE11, select radio button Data type, enter the type name and click create. When prompted choose table type. Essentially a Dictionary table type is a definition of an internal table that can be used in ABAP logic.

Alternatively, you can also define table types locally within your class, however such types can only be used privately, not in the interface of a public method.

Scott