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

Tables parameters

Former Member
0 Likes
1,055

Hi all,

Does anyone know what the difference is between passing a table to a function module as a "changing" parameter and passing it as a "tables" parameter?

Thanks

Magnus

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,008

HI Magnus,

<b>CHANGING parameters:</b> These must be supplied with data when you call the function module, unless they are flagged as optional. They can be changed in the function module. The changed values are then returned to the calling program.

<b>Tables parameters:</b> You use these to pass internal tables. They are treated like CHANGING parameters. However, you can also pass internal tables with other parameters if you specify the parameter type appropriately.

For your information:

After CHANGING or TABLES, you must supply values to all of the non-optional CHANGING or tables parameters. When the function module has finished running, the changed values are passed back to the actual parameters. You can supply values to optional CHANGING or tables parameters if you wish.

Regards

Sudheer

HI Magnus,

<b>CHANGING parameters:</b> These must be supplied with data when you call the function module, unless they are flagged as optional. They can be changed in the function module. The changed values are then returned to the calling program.

<b>Tables parameters:</b> You use these to pass internal tables. They are treated like CHANGING parameters. However, you can also pass internal tables with other parameters if you specify the parameter type appropriately.

For your information:

After CHANGING or TABLES, you must supply values to all of the non-optional CHANGING or tables parameters. When the function module has finished running, the changed values are passed back to the actual parameters. You can supply values to optional CHANGING or tables parameters if you wish.

Regards

Sudheer

6 REPLIES 6
Read only

naimesh_patel
Active Contributor
0 Likes
1,008

Hello,

In changing you can not pass the table, but in Table parameters you can pass the internal table.

One more thing, in changing you can change the value of that variable at the run time. In the export and Import it is not possible to change it. In table parameter, you can also change the contents.

Regards,

Naimesh

Read only

Former Member
0 Likes
1,008

Hi,

Changing parameter can only handle parameters of structure type or single variables and not of table types(occurs n).

Regards

Read only

Former Member
0 Likes
1,008

Hi

I don't believe there are meaningful differences except you have to use a dictionary type table in CHANGING paramenter to obtain a table parameter.

Max

Read only

Former Member
0 Likes
1,009

HI Magnus,

<b>CHANGING parameters:</b> These must be supplied with data when you call the function module, unless they are flagged as optional. They can be changed in the function module. The changed values are then returned to the calling program.

<b>Tables parameters:</b> You use these to pass internal tables. They are treated like CHANGING parameters. However, you can also pass internal tables with other parameters if you specify the parameter type appropriately.

For your information:

After CHANGING or TABLES, you must supply values to all of the non-optional CHANGING or tables parameters. When the function module has finished running, the changed values are passed back to the actual parameters. You can supply values to optional CHANGING or tables parameters if you wish.

Regards

Sudheer

Read only

0 Likes
1,008

Hi!

Thanks all for your replies. But I have tried passing an internal table both as a changing and tables parameter and both ways seem to work.

Magnus

Read only

0 Likes
1,008

Hello Magnus,

Changing parameter can accept the internal table with out header line (declared by type or type table), but can't accept the table with header line.

And TABLE can handle both.

Regards,

Naimesh