10-26-2006 12:31 PM
10-26-2006 12:35 PM
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
10-26-2006 12:55 PM
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
10-26-2006 1:02 PM
can u plz give ur email id . i send u some site url which helps u in ur training.
chetan