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

Adding date & time to record before inserting into table

Former Member
0 Likes
617

Hi,

I created one table ZTABLE of type C and created table maintenance generator to insert records.

while inserting record into table fill date time automatically.

Example: ZTABLE has 3 fields.

BUKRS, ZDATE, ZTIME.

when user enters BUKRS and click on save in table mantenance generator, then 1 record should be inserted into table

with date and time

Waiting for your valuable suggestions

Regards,

Kiran

Moderator message: you could have found this yourself, so next time, please (re)search before asking.

Edited by: Thomas Zloch on Aug 20, 2010 3:47 PM

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
584

You can use [Extended Table Maintenance Events|http://help.sap.com/saphelp_46c/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm] - [Event 01|http://help.sap.com/saphelp_46c/helpdata/en/91/ca9f0ba9d111d1a5690000e82deaaa/frameset.htm] "Before saving the data in the database" - purpose : fill hidden fields

There are samples and guides in wiki like [Extended Table Maintenance Events |http://wiki.sdn.sap.com/wiki/display/ABAP/ExtendedTableMaintenanceEvents] (and [many others|http://wiki.sdn.sap.com/wiki/dosearchsite.action?searchQuery.queryString=tablemaintenanceevent&searchQuery.spaceKey=conf_global])

Regards,

Raymond

3 REPLIES 3
Read only

royolav_johansen
Explorer
0 Likes
584

When you are in the maintain table maint....

Just go to Environment->modification->events.

Here is a step by step link how you should do it.

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

Regards

Roy

Read only

RaymondGiuseppi
Active Contributor
0 Likes
585

You can use [Extended Table Maintenance Events|http://help.sap.com/saphelp_46c/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm] - [Event 01|http://help.sap.com/saphelp_46c/helpdata/en/91/ca9f0ba9d111d1a5690000e82deaaa/frameset.htm] "Before saving the data in the database" - purpose : fill hidden fields

There are samples and guides in wiki like [Extended Table Maintenance Events |http://wiki.sdn.sap.com/wiki/display/ABAP/ExtendedTableMaintenanceEvents] (and [many others|http://wiki.sdn.sap.com/wiki/dosearchsite.action?searchQuery.queryString=tablemaintenanceevent&searchQuery.spaceKey=conf_global])

Regards,

Raymond

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
584

Hi,

Just place table maintenance events sdn article exactly in google. The first link holds what you require.

Please search in SCN or Google before posting.