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: 

table as changing parameter at FM

Former Member
0 Kudos

Hi!

I want to create a Function Module. As changing value I want to declare

a table. How is that possible ? Passing a paramter as table is obselete .

reagards

sas

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Erdem,

Create a Table Type for the structure of your table from SE11.

(In SE11 ... use the Data type section for table type creation)

Then declare the CHANGING parameter by referencing this table type. this will allow the CHANGING parameter to accept an internal table.

When passing the internal table to the CHANGING parameter in your program (when calling the FM), pass the body of the table i.e. = itab[].

Cheers,

Aditya

3 REPLIES 3

Former Member
0 Kudos

in changing parameter we cann't use tables.

for this purpose u can use tables tab for input / output.

Former Member
0 Kudos

Hi Erdem,

Create a Table Type for the structure of your table from SE11.

(In SE11 ... use the Data type section for table type creation)

Then declare the CHANGING parameter by referencing this table type. this will allow the CHANGING parameter to accept an internal table.

When passing the internal table to the CHANGING parameter in your program (when calling the FM), pass the body of the table i.e. = itab[].

Cheers,

Aditya

Vijay
Active Contributor
0 Kudos

hi

you can pass table as changing parameter using table type.

1.goto se11 select data type radiobutton.

2.enter any name and press create.

3.select table type radiobutton in pop up window.

4.create your table type of type structure you want to be.

5. now in changing parameter of your fm create table of type this table type.

regards

vijay

reward points if helpful