Application Development and Automation 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: 
Read only

Regarding Function Group

Former Member
0 Likes
708

Hi,

I have one more doubt, what is the Purpose of function group? Why we are using function group in function

module and table maintenance?

Regards,

Ramya

5 REPLIES 5
Read only

Former Member
0 Likes
674
Read only

Former Member
0 Likes
674

Hi,

it is the set of logically related function modules that share the same program context at runtime.

A function group is the main program for the function modules it contains. Typically, functions that use the same data are assigned to the same function group.

Thanks.

Read only

Former Member
0 Likes
674

hi,

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.

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.

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
674

Hi Ramya,

Generally, the function modules that are inter-related to each other or they belong to the same work-stream are assigned to the same function group.

Function Group is responsible for holding them together.

Thanks & Regards,

Tarun Gambhir

Read only

Former Member
0 Likes
674

Hi

Function Group is defined to group FM ( Function Module ) related to similar or one functionality or module .

It is very muvh similar to like we have PACKAGE to store inter related information OBJECTS or development together .

Main technical point is with in a FG u can define global variables which all FM can access , so some time there are sitution when a global variable is initialised by another FM of the FG and further used by another FM with value assifn to it by previous.

for further details as told can go to help.sap.com or search on SDN .

Regards

Sachin

HNY 2009