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: 

Passing Internal table as parameter to a Method

Former Member
0 Kudos

Hi,

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

Thanks in advance,

Best Regards,

Manish

4 REPLIES 4

guillaume-hrc
Active Contributor
0 Kudos

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

Cheers,

Former Member
0 Kudos

use table type parameter for casting.

Methods m1

importing it_tab type (tabletype).

...

Endmethod.

Former Member
0 Kudos

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

Former Member
0 Kudos

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