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

Tables parameters

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2006 at 02:06 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 06, 2006 at 01:58 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2006 at 02:02 PM

    Hi,

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

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2006 at 02:04 PM

    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

    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.