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

SM30 program for log

ronaldo_aparecido
Contributor
0 Likes
1,795

I need to make a program that gets the log of all changes, deletions and insertions in an sm30 because here in our company the flag option doesn't work does anyone know how I can do this for tables?

1 ACCEPTED SOLUTION
Read only

kaushalya
Active Participant
0 Likes
1,705

Hi Ronaldo,

In order to store the change log history, you can write a custom event in the Table Maintenance View to log the change history after saving the table entries:

Please refer documentation about Extended Table Maintenance Events: Event 02: After Saving the Data in the Database

Read the full documentation: https://help.sap.com/saphelp_470/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm

Thanks & Stay Safe

~Kaushalya

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
1,705

Is the "flag option" the table logging option in the technical settings of the table? Why does your company refuse to enable it if they need it?

If you really don't have the choice, use the "after save" dialog event (02) to write the changes to a custom table. You can find examples in the forum, search:

SM30 event 02 TOTAL site:sap.com
Read only

former_member598787
Participant
0 Likes
1,705

if for your tables Log data changes flag is checked(in technical settings), then you can check standard SAP Log I guess

Read only

kaushalya
Active Participant
0 Likes
1,706

Hi Ronaldo,

In order to store the change log history, you can write a custom event in the Table Maintenance View to log the change history after saving the table entries:

Please refer documentation about Extended Table Maintenance Events: Event 02: After Saving the Data in the Database

Read the full documentation: https://help.sap.com/saphelp_470/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm

Thanks & Stay Safe

~Kaushalya