06-27-2007 7:16 AM
06-27-2007 7:20 AM
Function modules are procedures that are defined in special ABAP programs only, so-called function groups, but can be called from all ABAP programs. Function groups act as containers for function modules that logically belong together. Function modules allow you to encapsulate and reuse global functions in the SAP System.
Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder.
For example FM and how to create function module, refer the foll. link.
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
sathiya Ramasmay
06-27-2007 7:47 AM
06-27-2007 7:21 AM
Hi,
Function Modules are Global ABAP programs created by SAP for reusable purpose. They have IMPORT, EXPORT and TABLE parameters, and EXCEPTIONS to through when error occurs.
You can create them from TCode SE37.
Thanks,
Anitha
06-27-2007 7:25 AM
Hi,
FMs are reusable modularization units.FMs are encapsulated in function groups and function groups may have global variables that can be globally used by all FMs inside it.
Function groups act as containers for function modules that logically belong together. Function modules allow you to encapsulate and reuse global functions in the SAP System
There are following number of function modules in SAP ECC 5.0
SD - 97
MM - 356
FI- 2479
CO - 880
PM-327
BW - 63
<b>Reward points</b>
Regards