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

Update table while saving!!

Former Member
0 Likes
633

Hi all,

I have created a table maintenance generator for the table and whenever user saves the entry, we need to update the table with new entry and modify the existing record...

which include shall i use for this?

Regards

Gunjan

3 REPLIES 3
Read only

former_member404244
Active Contributor
0 Likes
612

Hi,

as u have maintained the table maintainence generator,now goto SM30->GIVE THE TABLE NAME AND PRESS ON EDIT BUTTON..NOW ADD UR ENTRIES AND PRESS SAVE..The data will be saved.

also check the below link

The below link is for table maintainenece generator events

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-87652872...

Regards,

Nagaraj

Read only

George_Lioumis
Active Participant
0 Likes
612

Hi.

From the Table Maintenance Generator, in change mode, go to Environment->Modification->Events, click new entries, and in the first column set the code 02 (After saving the data in the database) and then set a form name in the mid-column. Press ENTER, and then click on the row's right-most column to create a new include in which you will write your code.

Regards,

George

Read only

Former Member
0 Likes
612

Hi Gunjan,

From what I understand, you dont need to do anything for what you want to achieve. Once you generate the table maintenance and maintain entries from SM30, it will handle updating new entries (insert) and update old entries (modify) autmaticlaly when you press SAVE.

Cheers,

Aditya