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

parameter of FM

what is the parameter of function module

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Oct 26, 2006 at 11:35 AM

    Parameters is the interface through which we communicate with an FM.

    They are four type of parameters:

    Exporting, Importing, Changing and tables

    Export parameters are the values that are exported to the calling program.

    Importing parameters are the values that are supplied to the fm by the calling program.

    Changing parameters are values that are passed by the calling program and passed back to it after some modification in the fm.

    Tables parameters are like changing parameters only. The extra thing is that we can pass multiple lines of data to them.

    Regards,

    ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 11:55 AM

    Function modules can have the following interface parameters:

    • Import parameters. These must be supplied with data when you call the function module, unless they are flagged as optional. You cannot change them in the function module.

    • Export parameters. These pass data from the function module back to the calling program. Export parameters are always optional. You do not have to receive them in your program.

    • Changing parameters. 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.

    • Tables parameters. 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.

    You can specify the types of the interface parameters, either by referring to ABAP Dictionary types or elementary ABAP types. When you call a function module, you must ensure that the actual parameter and the interface parameters are compatible.

    Interface parameters are, by default, passed by value. However, they can also be passed by reference. Tables parameters can only be passed by reference. You can assign default values to optional importing and changing parameters. If an optional parameter is not passed in a function module call, it either has an initial value, or is set to the default value.

    Exceptions are used to handle errors that occur in function modules. The calling program checks whether any errors have occurred and then takes action accordingly.

    If you want to know about remote function modules, please have a look at below link.

    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE2/BCFESDE2.pdf

    I hope it helps.

    Abhay, small request for you. You have posted so many queries. If you are getting satisfactory answers then please mark all the useful answers.

    Best Regards,

    Vibha

    *Please mark all the helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 12:02 PM

    can u plz give ur email id . i send u some site url which helps u in ur training.

    chetan

    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.