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

class builder question

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

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

    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.


    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.