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

FIll Default Values into Table

Former Member
0 Likes
662

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

5 REPLIES 5
Read only

uppu_narayan
Active Participant
0 Likes
625

Hi Pratheek,

       you can use the events of table maintenance generator....Try with the following event "creating a new entry" in TMG.

regards,

narayan

Read only

Former Member
0 Likes
625

This message was moderated.

Read only

Former Member
0 Likes
625

This message was moderated.

Read only

Former Member
0 Likes
625

Hi

You can use System fields :

Current time: SY-UZEIT

Curren User : SY-UNAME.

Add these fields to table and use therm.

Regards,

PRudhvi

Read only

Former Member
0 Likes
625

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.