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

regarding Function Module

Former Member
0 Likes
321

hello everyone,

plz tell me, how many types of FUNCTION MODULES are there in abap.

2 REPLIES 2
Read only

Former Member
0 Likes
300

Hi,

Normal Function Module,

Remote Enable Function Modules(RFC).

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.

BAPI:

BAPI (Business Application Programming Interface) is an API method of a business object which intern is a RFC enabled Function Module.

Business Objects are the Objects which has business sence associated to it. Ex. Sales Orders, Purchase Orders etc.

The Properties of BAPI are:

Every BAPI name should start with letters 'BAPI'.

It is an API method of a Business Object.

it does not contain a internal COMMIT statement in the Function Module.

It does not contain "CALL TRANSACTION" statements.

BAPI do not raise 'EXCEPTIONS'.

seshu.

Read only

Former Member
0 Likes
300

Hi,

Ther are 2 types of function modules.

1. Normal Function Module

2. Remote-Enabled function module (RFC)

We can access this function module by remotely also. Means from another client or from another system.

Regards