Skip to Content
author's profile photo
Former Member

How to pass an internal table to a Method?

I want to pass an itab to a class_constrtuctor. Is it possible?

-Bala

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    Aug 06, 2004 at 01:09 PM

    Might be similiar to what I am trying to do Method that returns a table?

    I'm struggling to fine to it though. I'll look tomorrow I think. Good luck with your attempts.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Aug 06, 2004 at 01:27 PM

    Hi Bala,

    Class_Constructor methods can have neither parameters nor exceptions. They are called by runtime environment automatically when the class is first loaded.

    Regards,

    Sükrü

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Aug 06, 2004 at 01:36 PM

    I will re-phrase the question?

    How to pass an internal table to a Method?

    Sorry for the confusion.

    Thanks,

    Bala

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Aug 06, 2004 at 01:44 PM

    Hi,

    I also gave the answer in Craig's question. You can define a table type as the type of your import parameter passed. If it is a local class, you can define your table type at your top include. If the class is a global one created by SE24, you can define the table type in DDIC.

    Regards,

    Sükrü

    Add comment
    10|10000 characters needed characters exceeded