Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function Module

Former Member
0 Likes
9,050

Sir,

Like to know about Function Module Types and how each are different from each other.

8 REPLIES 8
Read only

Former Member
0 Likes
8,768

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

Read only

Former Member
0 Likes
8,768

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

Read only

Former Member
0 Likes
8,768

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

Read only

0 Likes
8,768

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

Read only

Former Member
0 Likes
8,768
Read only

Former Member
0 Likes
8,768
Read only

Former Member
0 Likes
8,768

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.

Read only

Former Member
0 Likes
8,768

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.