‎2008 Jan 31 8:13 AM
‎2008 Jan 31 8:15 AM
Hi Kusuma,
1. Goto SE37->Goto->Function Group->Create Group.
2. Give the function group name and short text.
3. Click SAVE button.
4. press local object
5. Now goto SE38
6. Open your group name
Ex: my group is : ZABC
In SE38 I give ‘SAPLZABC*.
7. Press F6
8. Activate it.
Plzz reward if it is useful
Mahi.
‎2008 Jan 31 8:15 AM
Hi Kusuma,
1. Goto SE37->Goto->Function Group->Create Group.
2. Give the function group name and short text.
3. Click SAVE button.
4. press local object
5. Now goto SE38
6. Open your group name
Ex: my group is : ZABC
In SE38 I give ‘SAPLZABC*.
7. Press F6
8. Activate it.
Plzz reward if it is useful
Mahi.
‎2008 Jan 31 8:15 AM
Hi KUSUMA,
Hi,
Function Groups
Function groups are containers for function modules. You cannot execute a function group. When you call a 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). For further information, refer to Organization of External Procedure Calls.
The following diagram shows the structure of a function group: The name of a function group, fgrpcan 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 , the main program and include programs are generated automatically.
The main program SAPLfgrp contains nothing but the INCLUDE statements for the following include programs:
キ LfgrpTOP. This contains the FUNCTION-POOL statement (equivalent for a function group of the REPORT or PROGRAMstatement) and global data declarations for the entire function group.
キ LfgrpUXX. This contains further INCLUDEstatements for the include programs LfgrpU01, LfgrpU02,... These includes contain the actual function modules.
キ The include programs LfgrpF01, LfgrpF02,... can contain the coding of subroutines that can be called with internal subroutine calls from all function modules of the group.
The creation of these INCLUDE programs is supported from the ABAP Workbench by forward navigation (for example creation of a subroutine include by double clicking on the name of a subroutine in a PERFORM statement within a function module).
You cannot declare a COMMON PART in a function group. Function groups have their own table work areas (TABLES). Function groups encapsulate data. In this respect, they are a precursor of ABAP Objects (see From Function Groups to Objects ).
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.
Function groups, like executable programs and module pools, can contain screens (selection screens and lists) as components. 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.
In SAP, it is a function group - instead of function - that is loaded into active memory.
Function ( or function module ) is the one that you call from the program to do things.
A function group contains functionally related function modules, global variables and procedures .
To display / edit function module you use SE37,
To display / edit function group you use SE80 .
Reward if found helpfull,
Cheers,
Chaitanya.
‎2008 Jan 31 12:23 PM
Hi
goto SE37
In Se37,
Goto> Function Groups-> Create Groups.
Before Creating Function Module u need to create Function group.
After Creating FG, U activated FG using Se80 Transaction.
In FG,
We have two includes,
1) TOP include
whatever declarations done in TOP include that will be
available alll the Fms in that FG.
2) Uxx include.
For Every FM u create it will create one include.
Before R/3 Release 4.0, the nearest equivalent of objects in ABAP were function modules and function groups. Suppose we have a function group for processing orders. The attributes of an order correspond to the global data of the function group, while the individual function modules represent actions that manipulate that data (methods). This means that the actual order data is encapsulated in the function group, and is never directly addressed, but instead only through the function modules. In this way, the function modules can ensure that the data is consistent.
When you run an ABAP program, the system starts a new internal session. The internal session has a memory area that contains the ABAP program and its associated data. When you call a function module, an instance of its function group
plus its data, is loaded into the memory area of the internal session. An ABAP program can load several instances by calling function modules from different function groups.
If it is helpful rewards points.
Regards
Pratap.M
‎2008 Feb 01 11:53 AM
hii,
in order to create a function group go rthrough the following steps .
1. Goto SE37->Goto->Function Group->Create Group.
2. Give the function group name and short text.
3. Click SAVE button.
4. press local object
5. Now goto SE38
6. Open your group name
Ex: my group is : Zddd
In SE38 I give SAPLZABC*.
7. Press F6
8. Activate it.
Plzz reward if it is useful
‎2008 Feb 04 9:20 PM
Function group
A function module is a subroutine with the corresponding function that is centrally
stored in the Function Library of the SAP system. Each function module has an
interface for importing or exporting parameters. The main purpose of function
modules is their reusability. Hence, they belong to the so called reuse components.
Function modules are organized into function groups. Each function group is a
collection of function modules that have similar functions and/or process the same
data.
A function group can contain the same components as an executable program. These
include:
Data objects These are global in relation to the function group, that is, they are visible to and
changeable by all function modules within the group.
Subroutines
These can be called from all function modules in the group.
Screens
These can be called from all function modules in the group.
The properties of a function module include, among other things, the short description
and the function group it belongs to.
As is the case with subroutines, a function module can contain local type and data
object definitions. These can only be seen within the function module.
The interface of a function module can contain the following elements:
• Import parameters: They can receive the values or variables of the calling
program when the function module is called. The optional parameters do not
have to be supplied with data during the call.
• Export parameters: The calling program accepts the output of the function
module through the assignment of a “receiving variable.” Export parameters are
always optional.
• Changing parameters: It is possible to pass the variables of the calling program
that are changed by the function module to the changing parameters.
• Exceptions: They can be triggered by the function module in certain error
situations and provide information on the respective processing error in the
function module. Exceptions should be treated by the calling program.
In general, the interface parameters are assigned to types from the ABAP Dictionary.
If a program calls a function module, the entire corresponding function group is
loaded and the function module is executed. The function group remains loaded in
the working memory until the calling program is closed. Calling another function
module of this group is thus processed without repeat loading and with the same
global data of the function group.
Thus, if a function module that writes values to the global data of the function group is
called, other function modules in the same function group can access this data when
they are called in the same program run.
Apart from the global data of its function group a function module can also access its
own, locally defined data objects as well as its interface parameters. The latter are
used to accept data or return it to the calling program.
Searching for Function Modules
Theapplication-related search through the Application Hierarchy should be
used whenever you want to search for function modules within one/several
application components.
• You use the free search via the Repository Information System if you search for
function modules independent of application components.
• Theprogram-related search should be used if the function module you are
searching for is called within an existing program.
Once you find a function module, you should first find out whether it has been released
(attributes of the function modules), because you only have the right to support and
upward compatibility when you use released function modules. We recommend only
using released function modules.
You can use the documentation of the function module to find out about its
functionality and obtain further information.
‎2008 Feb 05 6:19 AM
go to SE37
Choose Goto -> Function groups -> Create group.
Specify the function group name and a short text.
Choose Save.
Function group names are freely definable up to a maximum length of 26 alphanumeric characters. Remember to observe the normal naming conventions for the first character (A-X for SAP development, Y and Z for customers).
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.
or
in se80 transaction also we can create function group