‎2008 Apr 25 2:38 PM
Sir,
Like to know about Function Module Types and how each are different from each other.
‎2008 Apr 25 2:42 PM
The types i know are:
1) Normal Function Modules which are blocks of reusable code with a specific functionality embedded in them, which can be called only within the SAP system in which it is defined.
2) RFC Function Moules which can be called from external environments also.
Regards,
Ravi
‎2008 Apr 25 2:52 PM
Hi Sandeep,
a functional module is the one which will take parameters and process those and give us output.means functional module is the one which will perform a function.
mainly there are three types of functional modules.
1)normal functional module
2)remote functional module
3)update functional module
but mostly we will use normal or remote functional modules only.
normal functional module:it is also known as local functional module.it is useful in the system where it is created.
remote functional module:this type of functional modules we are able to acccess from any other system which is defined as rfc destination(TCODE:SM59) for the main system,means the system which will have the functional module.
we will use this type of functional modules mainly in BAPI's.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 25, 2008 1:30 PM
‎2008 Apr 25 2:58 PM
Hi Sandeep,
There are 3 Types of FM:
1. Normal Function Module,
2. Remote Enable Function Modules(RFC).
3. UPDATE FUNCTION MODULE:
FUNCTION MODULE:
Function modules are procedures that are defined in function groups (special ABAP programs with type F) and can be called from any ABAP program. Function groups act as containers for function modules that logically belong together,Function modules allow you to encapsulate and reuse global functions in the R/3 System. They are stored in a central library,Unlike subroutines, you do not define function modules in the source code of your program.
REMOTE FUNCTION MODULE (RFC):
RFC (Remote Function Call) is an extension of CALL FUNCTION in a distributed environment. Existing function modules can be executed from within a remote system (R/2 or R/3) via an RFC Call. Adding a Destination clause to the CALL FUNCTION statement does this.
The destination parameter displays an entry in the RFCDES table (which is defined with t.code SM59). This entry contains all necessary parameters to conect to and log in the destination system. The RFC API on OS/2, Windows, Windows NT and all R/3 based UNIX platforms makes it possible to use the RFC functionality between an SAP System and a non SAP System.
UPDATE FUNCTION MODULE:
These function modules are used to update the database tables. Using the function module in updating the database table helps in updating the database without any irregularities.
Regards,
Sunil
‎2008 Apr 25 8:37 PM
Adding a bit, Update function modules are available as
Start Immediately - V1 ( Used for critical or primary changes)
Start delayed (No restart) - V2 (Preferred for statistical changes)
V1 take priority over V2. Locks are only inherited till V1 updates
‎2008 Apr 26 3:04 PM
hi check this...for any function module.
http://www.erpgenie.com/abap/functions.htm
http://www.sap-img.com/abap/function-list.htm
regards,
venkat.
‎2008 Apr 27 8:07 AM
Hi Sandeep,
There are three types of functional modules.
1)normal functional module
http://help.sap.com/saphelp_47x200/helpdata/en/41/7af4daa79e11d1950f0000e82de14a/frameset.htm
2)remote functional module
http://help.sap.com/saphelp_47x200/helpdata/en/22/0425f2488911d189490000e829fbbd/frameset.htm
3)update functional module
http://help.sap.com/saphelp_47x200/helpdata/en/41/7af4daa79e11d1950f0000e82de14a/frameset.htm
Also pls go through the below link
http://sap-img.com/abap-function.htm
Pls reward if useful.
Thanks,
Sirisha.
‎2008 Apr 27 11:51 AM
Hi,
function modules are ABAP routines that are administered in a central function library. They apply across applications and are available throughout the system. You must function modules to a function pool that is called a function group.
function group is a container of function modules.
function module is only one type but it is calling in different ways.
1. RFC call - Remote function call
function module defined in one system and is called from other system.
2. Normal function call
function module definition and call is from single system.
In RFC calls again there are synchronous RFC call and asynchronous RFC call.
When synchronous RFC is executed, the calling system waits for a response.
In the asynchronous RFC the calling system will not wait.
There is another RFC call called tRFC - transaction Remote function call. With a tRFC the function module is not called immediately but only when the commit work is executed.The system then executes all database operations in one go.
Reward.
‎2008 Apr 29 11:05 AM
Hi,
function modules are ABAP routines that are administered in a central function library. They apply across applications and are available throughout the system. You must function modules to a function pool that is called a function group.
function group is a container of function modules.
function modules are two types.
1. RFC call - Remote function call
Remote function module defined in one system and is called from other system, but a RFC destination is a must.
2. Normal function call
function module definition and call is from single system.
In RFC calls again there are synchronous RFC call and asynchronous RFC call.
When synchronous RFC is executed, the calling system waits for a response.
In the asynchronous RFC the calling system will not wait.
There is another RFC call called tRFC - transaction Remote function call. With a tRFC the function module is not called immediately but only when the commit work is executed.The system then executes all database operations in one go.
Reward.