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

Passing Internal table as parameter to a Method

Hi,

Can somebody tell me how to pass an Internal table as a parameter to a method?

Thanks in advance,

Best Regards,

Manish

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Oct 04, 2005 at 01:35 PM

    I think you must pass the <i>body</i> of the table (I mean itab[] instead of itab).

    Cheers,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2005 at 01:36 PM

    use table type parameter for casting.

    Methods m1

    importing it_tab type (tabletype).

    ...

    Endmethod.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2005 at 01:45 PM

    hai,

    you should create a table type for a sturture you want to pass the internal table in data dictionary sell

    and you shouls declare teh internal table with type ref to and then pass it.

    if nay doubts pls come back

    cheers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2005 at 01:52 PM

    data: itab1 type string occurs 0 with header line.

    ....

    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD

    exporting

    FILENAME = 'C:\ftext.txt'

    • APPEND = 'X'

    changing

    DATA_TAB = <b>itab1[].</b>

    Svetlin

    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.