10-17-2006 10:33 AM
10-17-2006 10:35 AM
HI Sireesha,
What is a function group?
A function group is a collection of logically related modules that share global data with each other. All the modules in the group are included in the same main program. When an ABAP/4 program contains a CALL FUNCTION statement, the system loads the entire function group in with the program code at runtime. Every function module belongs to a function group.
Reward point if this helps.
Manish
10-17-2006 10:35 AM
HI Sireesha,
What is a function group?
A function group is a collection of logically related modules that share global data with each other. All the modules in the group are included in the same main program. When an ABAP/4 program contains a CALL FUNCTION statement, the system loads the entire function group in with the program code at runtime. Every function module belongs to a function group.
Reward point if this helps.
Manish
10-17-2006 10:36 AM
Function group is basically equivalent to a folder containing a group of function modules with similar functionality or defined area.
Regards
Anurag
10-17-2006 10:38 AM
FUNCTION GROUP is a container for all the related function modules, each and every function module comes under one function group.
10-17-2006 10:38 AM
Sireesha,
function group is where no. of function modules are written logically.
which will be having a main program where all the includes are defined.
you can have a single function group for various FMs.
and the variables can be declared globally in can use in any function modules.
-Anu
10-17-2006 10:43 AM
10-17-2006 10:46 AM
Function groups are containers for function modules. You cannot execute a function group. When you call an function module, the system loads the whole of its function group into the internal session of the calling program (if it has not already been loaded).
The name of a function group can be up to 26 characters long. This is used by the system to create the components of the group (main program and corresponding include programs). When you create a function group or
function module in the Function Builder [Ext.] , the main program and include programs are generated automatically.
When you create a new function group, the system automatically creates a main program containing two includes. Like any other programs and includes, you can display them in the Repository Browser.
The name of the main program is assigned by the system. This is made up of the prefix SAPL followed by the function group name. For example, the main program for function group SXXX is called SAPLSXXX.
The names of the include files begin with L followed by the name of the function group, and conclude with UXX ( or TOP for the TOP include). The TOP include contains global data declarations that are used by all of the function modules in the function group. The other include file within the main program is used to hold the function modules within the group.
You cannot declare a COMMON PART in a function group. Function groups have their own table work areas (TABLES). Function groups encapsulate data.
All of the function modules in a function group can access the global data of the group. For this
reason, you should place all function modules that use the same data in a single function group.
For example, if you have a set of function modules that all use the same internal table, you could
place them in a function group containing the table definition in its global data.
Like executable programs (type 1) and module pools (type M), function groups can contain screens, selection screens, and lists. User input is processed either in dialog modules or in the corresponding event blocks in the main program of the function group. There are special include programs in which you can write this code. In this way, you can use function groups to
encapsulate single screens or screen sequences.
I hope it helps.
Best Regards,
Vibha
*Please mark all the helpful answers