Application Development 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: 

Types of Function Modules

Former Member
0 Kudos

Hi all ,

Can any one explain the Types of Function Modules.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Function modules are one element. There are no types. However sometimes an RFC enabled function module is referred to as RFC Function module, but really it is just a function module. Also BAPIs are function modules, but are usually referred to as just BAPI as opposed to BAPI Function module.

There is no different function module types , but calling the function module will be different.

check this function calls syntax

1. Calls a function module:

- CALL FUNCTION func.

2. Call a function module in a different mode (asynchronous Remote Function Call):

- CALL FUNCTION func STARTING NEW TASK taskname.

3. Call a function module in the update task:

- CALL FUNCTION func IN UPDATE TASK.

4. Call a function module in a remote system (Remote Function Call, RFC 😞

- CALL FUNCTION func DESTINATION dest.

5. Asynchronous call to a function module with transactional processing (transactional Remote Function Call):

- CALL FUNCTION func IN BACKGROUND TASK.

qRFC with output queue

6. Call a function module that can be activated in the context of enhancements:

- CALL CUSTOMER-FUNCTION func.

Regards

5 REPLIES 5

former_member404244
Active Contributor
0 Kudos

Hi,

There are three types of function modules

1>Normal

2>Remote enabled

3>Update

plz go through the below links

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm

Regards,

Nagaraj

Former Member
0 Kudos

1 .Normal

2. Remote enabled

3. ALV

Former Member
0 Kudos

Hi,

Function modules are one element. There are no types. However sometimes an RFC enabled function module is referred to as RFC Function module, but really it is just a function module. Also BAPIs are function modules, but are usually referred to as just BAPI as opposed to BAPI Function module.

There is no different function module types , but calling the function module will be different.

check this function calls syntax

1. Calls a function module:

- CALL FUNCTION func.

2. Call a function module in a different mode (asynchronous Remote Function Call):

- CALL FUNCTION func STARTING NEW TASK taskname.

3. Call a function module in the update task:

- CALL FUNCTION func IN UPDATE TASK.

4. Call a function module in a remote system (Remote Function Call, RFC 😞

- CALL FUNCTION func DESTINATION dest.

5. Asynchronous call to a function module with transactional processing (transactional Remote Function Call):

- CALL FUNCTION func IN BACKGROUND TASK.

qRFC with output queue

6. Call a function module that can be activated in the context of enhancements:

- CALL CUSTOMER-FUNCTION func.

Regards

Former Member
0 Kudos

Hi,

1) Normal Function Modules (sap standard)

2) Custom Function modules ( either Z or Y)

3) RFC Function Modules

4) BAPI

5) Custom BAPI

6) RFC BAPI

Regards,

Satish

varma_narayana
Active Contributor
0 Kudos

Hi Sachin.

Open any FM in SE37.

Select the Attributes Tab:

in The Processing Type you can see the Types of FMs

1.Normal FM - Can be called within the Same SAP System

CALL FUNCTION '<NAME>'

2. Remote Enable FM : Can be called from External (SAP or NON SAP) system.

CALL FUNCTION '<NAME>' DESTINATION '<RFC DESTINATION>'

3. Update Module: Only for Updating database tables . processed in Update work process.

CALL FUNCTION '<FM>' IN UPDATE TASK.

<b>reward if Helpful</b>