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

'TABLES' type parameters in FM interfaces???


Have you ever heard that in FM interfaces 'TABLES' type parameters has some disadvantages and shouldn't be used unless neccessary, and instead, importing or exporting type paramaters referenced to table types should be used?


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2004 at 10:43 AM

    Hi Serdar,

    interesting question. I've only heard that you should not use it in form routines ... extract from the online help for the statement form in Enterprise Release:

    <b>Addition 1

    ... TABLES itab1 ... itabn


    Instead of the TABLES addition, you should use the USING or CHANGING addition wherever possible. You can only use tables with table type STANDARD in the TABLES addition. The internal tables you specify are always passed to the FORM along with their header line. If you pass a table without header line as a TABLES parameter, the system automatically generates a header line for it. This is only valid within the FORM . You should not use any global commands (such as HIDE) on the header line. For details about specifying the type of a TABLES parameter, see specifying types. TABLES parameters are always passed by reference. </b>

    May be some guys from SAP can tell us, if this is true for a FM as well.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I am not from SAP, but the same holds true for function modules as well.

      Every tables parameter is passed with a header and incase the header is not present the system automatically creates it.

      Even with function modules it is always advisable to go for import and export parameters, rather than tables parameters.


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.