Skip to Content
0
Jan 24, 2012 at 10:04 AM

Update a table Z using SM30 events

797 Views

Hi experts,

I've been told to do the following:

I have a table ZYOPER that the user can modify through a SM30 (actually by another transaction that calls the SM30).

Now they want every time you update/create/delete a record in this table ZYOPER, save a log in another table ZYOPERLOG indicating the action completed and the data contained in these records.

I implemented the following events but it's not fine...

- 03 (new entry, field ZYOPERLG-action = 'INSERT')

- 05 (delete entry, field ZYOPERLG-action = 'DELETE')

- 02 (Modify the new table ZYOPERLOG)

The issue is that in the 02 event I have tables Total and Extract, which are all the records contained in ZYOPER even if they have been modified or not. Can I do it with import and export? Is it possible to declare a global internal table i_zyoperlog in order to keep the records updated/deleted/created ?

Thanks in advance...

Mary