2013 May 17 5:54 AM
Hi All,
I have a Table and I have created TMG for the same.
In the Table I have 2 Fields CreateBY and CreatedAT along with some other fields.
When I create entries into table Using TMG I want those 2 fields to be filled with current user and current system time.How can i do it?
Thanks and Regards,
Pratheek
Moderator Message: Please search for the available information before posting
Message was edited by: Kesavadas Thekkillath
Message was edited by: Kesavadas Thekkillath
2013 May 17 5:56 AM
Hi Pratheek,
you can use the events of table maintenance generator....Try with the following event "creating a new entry" in TMG.
regards,
narayan
2013 May 17 5:58 AM
2013 May 17 6:02 AM
2013 May 17 6:02 AM
Hi
You can use System fields :
Current time: SY-UZEIT
Curren User : SY-UNAME.
Add these fields to table and use therm.
Regards,
PRudhvi
2013 May 17 6:50 AM
Hi Pratheek,
Before saving the records in to table along with the some values
assign the values for the work area as
wa_f1 = 'XYZ' .(Your Fields)
wa_f2 = 'ABC' .(Your Fields)
wa_createdby = SY-UNAME .(Current User Name)
wa_createdat = SY-DATUM. (Current Date)
Append wa to itab.
Note : The fields F1 & F2 are for your reference the fields whatever it may be
Thanks
G.Kranthi.