‎2008 Jun 23 2:20 PM
Dear gurus,
can i call both Function Module and Function Group?
Regards
R.Rajendran
‎2008 Jun 23 2:27 PM
Function pools, more commonly known as "function groups", are libraries of functions developed in ABAP
FG can't be called
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.
FG are container for FMs
‎2008 Jun 23 2:27 PM
Function pools, more commonly known as "function groups", are libraries of functions developed in ABAP
FG can't be called
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.
FG are container for FMs
‎2008 Jun 23 2:27 PM
you can call a function group, but she will not answer, most probably.
‎2008 Jun 23 2:28 PM
Hello,
FUNCTION MODULE are collected in more general entity called FUNCTION GROUP.
It is just like a container for them. FUNCTION GROUP consists of its own global data and FUNCTION MODULES within it.
It is like different MODULES of screen are kept in one MODULE POOL.
When you call FUNCTION MODULE you refer to its FUNCTION GROUP anyway, therefore you can use its global data in its FUNCTION MODULES.
For more info refer to this link
http://help.sap.com/saphelp_45b/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
<removed_by_moderator>
Cheers
Marcin
Edited by: Julius Bussche on Jun 23, 2008 7:56 PM
‎2008 Jun 23 2:30 PM
‎2008 Jun 23 2:33 PM
Hi,
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 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.
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/content.htm
Regards
Adil
‎2008 Jun 23 7:55 PM
Hi,
For matter of understanding consider function group as a folder and
function module as a file.... The thing is you use a file present in the folder and not the folder because it consists of no application where as file in that folder serves you the purpose needed....
AS like as that FUNCTION GROUP contains multiple function modules which u can use wherever and whenever necessary... In general function group contains all the function modules related to a particular thing.. so as to identify and check all the related function group for further kind of such function modules...
Hope i made you clear...
if any doubts plz revert back..
<removed_by_moderator>
Regards
Narin Nandivada
Edited by: Julius Bussche on Jun 23, 2008 7:57 PM
‎2008 Jun 24 6:44 AM
Hi!!
Several function modules are stored in one function group.
When you call one function module. Its corresponding function group automatically gets loaded into your report program internal session.So if you call another function module in your report program you don't need to call this function group again.
Regards
Abhijeet Kulshreshtha
‎2008 Jun 24 6:59 AM
Hi Raj,
Function group is a collection of various function modules which are logically related together. In function group, data objects can be declared. These data objects act as global variables for the function modules in that function group. That is every function module can acces those variables.
Coming to your concept of calling function groups and function modules, when we call function module, it calls the function module and also the global data of that function group. Yes we can call function group, but we need to be specific about our function module in that group.
Hope this helps you.
Any queries, get back to me.
Regards,
Chandra Sekhar
‎2008 Jun 24 8:15 AM
Hi,
Funtion groups the container for Funtion Modules.It Also Contain Global Data Used by the Function Module,Screens
Subroutines.
Whenever you call a funtion module in your program,the whole function group is loaded into internal session of the your calling program.
So Here is no need of of calling the Funtion group Explicitly.
Again if you call another function module of that Funtion group in your same program the the function Group is not again loaded because it has already been loaded.
If Any Confusion Pls Get Back
Regards,
Sujit Pal