0% found this document useful (0 votes)
47 views1 page

Function Modules: Normal F.M Remote Enabled F.M Syntax Call Function 'Fm1' Destination 'Sys - 200'. Update F.M

This document discusses function modules in ABAP. It explains that function modules are globally available sub-programs that can handle exceptions and be called across different servers. It describes the three types of function modules - normal, remote enabled, and update - and the components that make up a function module including import, export, changing, tables, exceptions, and source code. Finally, it explains that a function-pool statement declares a program for defining function modules and loads them into a new program group at runtime.

Uploaded by

vkbvpalem
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views1 page

Function Modules: Normal F.M Remote Enabled F.M Syntax Call Function 'Fm1' Destination 'Sys - 200'. Update F.M

This document discusses function modules in ABAP. It explains that function modules are globally available sub-programs that can handle exceptions and be called across different servers. It describes the three types of function modules - normal, remote enabled, and update - and the components that make up a function module including import, export, changing, tables, exceptions, and source code. Finally, it explains that a function-pool statement declares a program for defining function modules and loads them into a new program group at runtime.

Uploaded by

vkbvpalem
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

FUNCTION MODULES

These are globally available sub-programs. These can handle exceptions. These can be called across different servers. We can create F.Ms and F.GROUPS in function-builder [T.CODE-SE37]. We can create F.Ms with in a function group. There are 3 types of F.Ms : NORMAL F.M: These can be called within the server and across the client. REMOTE ENABLED F.M: These can be called across the servers. SYNTAX:
CALL FUNCTION 'FM1' DESTINATION 'SYS_200'. UPDATE F.M:

These can be called to update the D.B tables.


Components of F.M :

IMPORT: To define the I/p parameters for F.M. EXPORT: To define the O/p parameters for F.M. CHANGING: To define as both i/p and o/p parameters for F.M. TABLES: To define tables, here I tabs will be created with default W.A with

same name. EXCEPTIONS: To define user defines errors. SOURCE-CODE: The logic of the F.M can be written here with the help of above parameters.

FUNCTION-POOL
The statement FUNCTION-POOL declares a program in which you can define function modules. At runtime, function pool programs are loaded in to a new program group with their own user dialogs and their own shared data areas in the internal session of the calling program. For this reason, function groups (type F programs) must always begin with a FUNCTION-POOL statement.

You might also like