Application Development 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: 

Table maintanence generator with events

shishupalreddy
Active Contributor
0 Kudos
148

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

6 REPLIES 6

0 Kudos
82

The content of this link is unavailable.

Cheers!

Former Member
0 Kudos
82

Hi

try this weblog

/people/sudheer.cheedella/blog/2006/02/20/extracting-data-in-table-maintenance

Thanks

Shiva

Former Member
0 Kudos
82

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!

Former Member
0 Kudos
82

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

Former Member
0 Kudos
82

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??