Application Development 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: 

Adding field to Existing table maintanence generator of the custom table

Former Member
0 Kudos

The requirement is to add the new field to the custom table & to the existing table maintanence generator of the custom table . Please advice on the approach.

Thanks.

1 ACCEPTED SOLUTION

Shivaji16
Active Participant
0 Kudos

Hello Vinaya,

Before adding any new field to a custom table, check the where used list of the table. Check for the dependencies if it would impact any other places of this change. Once this is cleared, then follow these steps.

1. In SE11 transaction, go in the change mode and add the new field in the table.

2. Activate the table.

3. Select from the menu, Utilities-> table maintenance generator.

4. Delete the existing table maintenance and re-create with the same function group, same package ( development class ) and activate.

5. Try addign a new record in the table and check if the new field is reflected in the table or not.

- Shivaji

3 REPLIES 3

Shivaji16
Active Participant
0 Kudos

Hello Vinaya,

Before adding any new field to a custom table, check the where used list of the table. Check for the dependencies if it would impact any other places of this change. Once this is cleared, then follow these steps.

1. In SE11 transaction, go in the change mode and add the new field in the table.

2. Activate the table.

3. Select from the menu, Utilities-> table maintenance generator.

4. Delete the existing table maintenance and re-create with the same function group, same package ( development class ) and activate.

5. Try addign a new record in the table and check if the new field is reflected in the table or not.

- Shivaji

Former Member
0 Kudos

Hi Vinaya,

to do this you need to delete the existing table maintenence generator and the create a new one.

Before deleting existing one , please understand the existing logic in this, so that you can implement the same in new one.

Check the pbo and pai events for logic.Also , check the values that are being populated in database table.

Hope its help you,

Former Member
0 Kudos

Hello Vinaya,

Before you go for the table modification or table maintenace generator please do check the below points.

1) The table is already having some data in it or not? If the data exists and take care while inserting the field and activating because the data may get delete in the process. Also you can use Database utilities (SE14) for activating the table which will keep the data safe.

2) Before deleteing/ Modifing the Table maintenance generator, do check if there are any modifications done for the screen or if any modification events are implemented. if exist then take a note/backup of the same and then proceed with the deletion/modification of old table maintenance generator and create a new one.

Hope this helps you.

Regards

Sachinkumar Mehta