Application Development and Automation 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: 
Read only

Passing Internal table as parameter to a Method

Former Member
0 Likes
664

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
Read only

guillaume-hrc
Active Contributor
0 Likes
493

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

Cheers,

Read only

Former Member
0 Likes
493

use table type parameter for casting.

Methods m1

importing it_tab type (tabletype).

...

Endmethod.

Read only

Former Member
0 Likes
493

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

Read only

Former Member
0 Likes
493

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