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

Problem in table events

Former Member
0 Likes
318

Hi Friends,

actually my client requriment is need to update the system time(sy-datum) and user name (sy-uname) automatically when ever the user enters the new record by using the sm30(with out enter the sy-name and sy-datum information). after click on save button,

the record should be update with the sy-datum and sy-uanme.

in this case, i have created the one custom table and maininted the table maintance genarator.

also i have created the table events(5. Creating Entry).

The above case is working fine.

Now my user required one more future,

when ever user delete the sy-datum or user name values in the exising record, that time he needs the sy-datum and sy-uname automatic updation in the table(zsample)

Can you please tell me the event name in table event.

can you please guide me how to pass the sy-datum and sy-uname to the custom table fields(zsample-date and zsample-time).

Thanks

Charan.

Moderator message - Duplicate post locked

Edited by: Rob Burbank on Oct 29, 2009 9:23 AM

1 REPLY 1
Read only

former_member182371
Active Contributor
0 Likes
280

Hi,

this is another option (different from the table events approach):

http://wiki.sdn.sap.com/wiki/display/stage/ABAP-DataChangeTrackerforCustom+Tables

http://sample-code-abap.blogspot.com/2008/02/applying-change-document-technique-on.html

Best regards.

Edited by: Pablo Casamayor on Oct 29, 2009 1:24 PM