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 comment
10|10000 characters needed characters exceeded

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.

    Scott

    Add comment
    10|10000 characters needed characters exceeded