2010 Jun 21 12:53 PM
Hi,
I have written below code in table maintenance events '01' - 'Before saving the data in the database' in one of my table.
LOOP AT total.
IF <action> EQ 'U'.
wa_zins_log-mandt = sy-mandt.
wa_zins_log-execution_date = sy-datum.
wa_zins_log-execution_time = sy-uzeit.
wa_zins_log-userid = sy-uname.
wa_zins_log-modification_ind = 'M'.
wa_zins_log-program_id = 'ZINS_RTO'.
wa_zins_log-program_name = 'ZINS_RTO'.
wa_zins_log-field_name = ''.
wa_zins_log-old_val = ''
wa_zins_log-new_val = total+3(4).
wa_zins_log-serial_no = '1'.
INSERT zins_log FROM wa_zins_log.
CLEAR wa_zins_log.
ENDIF.
ENDLOOP. in above code, I have to populate field_name, old_val from system. Field name should be the changed field of the table and old_val should be fieldvalue before change.
How to do this?
Regards,
Santosh
2010 Jun 21 1:38 PM
Hi,
Use the Event 25 for this.
With Regards,
Sumodh.P
2010 Jun 21 1:38 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |