2007 Feb 01 7:04 AM
Hi ,
I am having a custom table for which 2 new fields were added .
Now the data for the two fields shold be populated depending on conditions using table maintanence generator .
the two fields are : date and time.
for every existing and new record the date and time shold be populated once the action is taken plae using SM30.
can you please provide the sufficient info to achive the same .
which events to be used and how the code should be ...
thanks
2007 Feb 01 7:11 AM
2023 Feb 18 1:05 PM
2007 Feb 01 7:47 AM
Hi
try this weblog
/people/sudheer.cheedella/blog/2006/02/20/extracting-data-in-table-maintenance
Thanks
Shiva
2007 Feb 05 10:35 AM
Hi,
Use event 05 for filling your fields when a record is created, use event 21 for changes. As for coding in the called routines:
form edit_date.
move: sy-datum to your_table_name-change_date,
sy-uzeit to your_table_name-change_time.
endform.
hope this helps, kind regards, Kathrin!
2007 Feb 05 11:01 AM
As of my knowledge, u cant update the new fields to the exixting Ztable with the data. U have to create new table with all the fields agin and then add the data.
Cheers
2007 Feb 05 10:39 PM
I answered the exact same question a few minutes back in another thread. Hope this works.
For the others who have answered this question:
I tried referencing the table directly and whenever i enter multiple entries the validations where failing. I could not do a loop at table. My validations were supposed to be triggered only at the time of saving the entries and not at the time of entry. Anybody has a workaround besides what i have described in the post??