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

Table Maintainance Generator Basics

Former Member
0 Likes
909

Hi All

In transaction SM30 we need to give authorisation and function group while maintaining any table.. Can anybody please tell me why we need to give authorisation and function group?? specially function group.. what is its significance

And also why do we need to give two screens there..

Thanks in Advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
880

Hi,

The Function Group is the one under which all your generated objects for your table maintenance gr. is stored in.

Authorization is to restrict users for running the table maint. prog.

The two screens are those that you see in the SM30.

The initial Overview screen and the display/edit screen.

Just check them in SM30.

Open any table and go to <b>System->Status</b> and check the <b>Screen number</b>.

Regards,

Wenceslaus.

8 REPLIES 8
Read only

Former Member
0 Likes
881

Hi,

The Function Group is the one under which all your generated objects for your table maintenance gr. is stored in.

Authorization is to restrict users for running the table maint. prog.

The two screens are those that you see in the SM30.

The initial Overview screen and the display/edit screen.

Just check them in SM30.

Open any table and go to <b>System->Status</b> and check the <b>Screen number</b>.

Regards,

Wenceslaus.

Read only

Former Member
0 Likes
880

Hi rashmi,

1. specially function group.. what is its significance

When we generate table maintenance,

the system , based upon the table fields,

automatically,

generates

PROGRAM CODE, SCREEN FOR ENTERING DATA,

LOGIC FOR SAVING DATA, LOGIC FOR DISPLAYING DATA

ETC.

2. All this are BUNCHED under

a FUNCTION GROUP

(if you open that function group in se80, after

creatting table maintenacne,

u will see the program code, screens, gui status etc)

3. Hence, to BUNCH all these various objects,

SAP uses the concept of function group.

*----


4. And also why do we need to give two screens there

Its not necessary to have to screens.

5. ONE SCREEN MEANS:

only one screen with table control to enter data

TWO SCREEN means :

first screen : only primary key fields will appear

second screen : rest of the fields will appear to enter data

6. When the table consists of many fields,

its practically more convenient to have two screens,

so that all fields come vertically downwards.

(instead of scrolling horizontally in the table

control, in case of one screen concept)

regards,

amit m.

Read only

0 Likes
880

Thanks guys for your replies

Now plz tell me do we need to use that function group anywhere or it is solely for system's use??

And also does it mean.. always when we maintain any table , first we need to create one function group in se37 and then we will specify that FG in SM30??

Thanks in advance

Read only

0 Likes
880

Thanks guys for your replies

Now plz tell me do we need to use that function group anywhere or it is solely for system's use??

And also does it mean.. always when we maintain any table , first we need to create one function group in se37 and then we will specify that FG in SM30??

Thanks in advance

Read only

0 Likes
880

Hi again,

1. do we need to use that function group anywhere or it is solely for system's use??

Its solely for system use.

We should not try to manually

tamper with it.

2. And also does it mean.. always when we maintain any table , first we need to create one function group in se37

Yes, u are right.

(we can create a function group thru se80 also)

3.

then we will specify that FG in SM30

NO.

In sm30, we specifiy the TABLE NAME

(and not the function group name)

regards,

amit m.

Read only

0 Likes
880

Hi Rashmi,

You need not create a Function Group in SE37.

Just enter the function group name in Table Maintenance Gr.

And it will create the Fn. Group.

Ps: Reward points for helpful posts.

Regards,

Wenceslaus.

Read only

0 Likes
880

Hi,

The use of the FG is only this the Table Maintainance Generator part. Neednt be declared anywhere else.

yes u need to create a FG and the use it in Table maint. gen.

http://help.sap.com/saphelp_erp2005/helpdata/en/a7/513520407a11d1893b0000e8323c4f/frameset.htm - a link for basics on Table Maintenance.

Also, Check out this weblog on table maintenance:

/people/sudheer.cheedella/blog/2006/02/20/extracting-data-in-table-maintenance

Hope this helps you.

Regards,

Anjali

Read only

Former Member
0 Likes
880

HI

GOOD

FUNCTION GROUP=>

Creating a Function Group

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.

-

-


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 call a function module, the calling program uses the instance of a function group, based on its description in the Function Builder. The program cannot access the data in the function group directly, but only through the function module. The function modules and their parameters are the interface between the function group and the user.

The main difference between real object orientation and function groups is that although a program can work with the instances of several function groups at the same time, it cannot work with several instances of a single function group. Suppose a program wanted to use several independent counters, or process several orders at the same time. In this case, you would have to adapt the function group to include instance administration, for example, by using numbers to differentiate between the instances.

THANKS

MRUTYUN