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 Mentainance

Former Member
0 Likes
997

hi...........everyone

Is it neccessary to create Domain and Data element for Z table. how should i mentain Z table ? if yes, what is the T-code for Table Mentainance.

hi...........everyone

Is it neccessary to create Domain and Data element for Z table. how should i mentain Z table ? if yes, what is the T-code for Table Mentainance.

4 REPLIES 4
Read only

Former Member
0 Likes
814

no not neccessary .check in SE11>utilities>TMG.

do it in change mode.

Regards

Prabhu

Read only

Former Member
0 Likes
814

Hi Shuba,

Welcome to SDN!

It is not necessary. You can use the built in types also to define your fields.

For maintaining you table entries goto SE11-> give table name -> Utilities -> Table Maintainace Generator.

Once this is successfully done, you can maintain entries from transaction SM30.

Hope this helps!

Regards,

Saurabh

Read only

Former Member
0 Likes
814

Hai Subha Rao Welcome to SDN,

It is not necessary if you use standrd dataelements many more are there.

Otherwise you can choose predefined data types ther you give CHAR,CHAR2,..CHAR30.. any one if you want char data type.

Follow the given procedure to create a database table:

Creating Tables

Procedure

In the initial screen of the ABAP Dictionary, select object class Database table, enter the table name and choose Create.

The maintenance screen for the table is displayed.

Enter an explanatory short text in the field Short text.

You can for example find the table at a later time using this short text.

On the Delivery and Maintenance tab, enter the delivery class of the table.

On this tab, choose an entry from the dropdown box for the Data Browser/Table View Maintenance field. Choose Table maintenance allowed on this tab page if users with the corresponding authorization may change the data in the table using the Data Browser (Transaction SE16). For more information refer to the available options in Data Browser/Table View Maintenance.

On the Fields tab page, enter the table fields. Perform the following steps for each table field:

Enter a name for the table field in the column Fields. The field name may only contain letters, digits and underlining, and it must begin with a letter. A field name may not be longer than 16 characters.

Select the Key column if the field should be part of the table key.

Enter the name of a data element in field Field type. In this case the field takes the data type, length, decimal places and short text from this data element. If there is no suitable data element, you can go to the data element maintenance screen by entering a name and double-clicking.

With Data element/Direct type, you can directly enter the data type, field length, decimal places and short text. Press this key again if you want to enter data elements for further fields.



Only a limited functionality is provided for fields without data elements. No foreign keys or fixed values may be defined for such fields, and there is no F1 help

.

You must also define the reference field and reference table on tab page Currency/quantity fields for fields of types CURR (currency) and QUAN (quantity)

You also can include the fields of an existing structure in the table. Note that the field names in the structure may not be longer than 16 places in this case.

Maintain the technical settings for the table. The corresponding maintenance screen is displayed with Goto ® Technical settings.

The technical settings are a separate object and can be activated and transported separately from the table.

Maintain (if necessary) the foreign key relationships of the table to other tables.

The corresponding maintenance screen is displayed if you place the cursor on the check field and choose .

Create (if necessary) secondary indexes for the table.

To do this choose Goto ® Indexes.

Save the table.

A dialog box appears in which you have to assign the table a development class.

For tables with the Delivery Class G or E, you must also maintain a customer namespace (key block of the table) for the table entries. SAP cannot change table entries or import new entries in the customer namespace during upgrades. To navigate to the appropriate maintenance transaction, choose Define Customer Namespace on the Attributes tab.

Choose an enhancement category. For more information, see Structure Enhancements.

Choose .

Reward points if it helps you.

Regds,

Rama chary.Pammi

Read only

Former Member
0 Likes
814

hi Shuba,

u need not create a new data element and domain if ur requirement would b met jus by using the system defined data elemenst and domains.

Table Maintainence Generator has to be done in order to add new entries to ur ztable.

for that, in se11,enter ur ztable name n go inside.

1.now Click on Utilities--> table maintainence generator.

2.now in the technical details, give the authorisation group.

3.and give the function group name ie ZXXX.

4. Now give the maintainence type as Single step or Two step.

5. press Find Screen numbers.

6. This wil automatically create the Screen no's.

7. then press create.this wil ask for a package. enter ur package name and press enter.

8. Finally press the SAVE icon to the top.

Now the table maintainence is done for ur Ztable.

Function group has to be created in SE80 for ur ztable.

(STEPS FOR FUNCTION GROUP CREATION)

In SE80,

Choose the Function Group fro the drop down

Then Enter the Function Group Name (same as that of ur ztable name)and press enter.

It wil ask if u want to create the function group. then press enter.

Now give the Short descrition for ur Function group and save.

Then it wil ask for a package,enter the package name and save.

Now the function group is created.say ZXXX.

hope this helps u.

****reward points if useful.

All the best.