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

Default value for a table field?

Former Member
0 Likes
678

Hi,

I have a table which contains the fields USER_NAME and DATE_CHANGED_AT.

here's what i want to do:

When we use se16 to enter data into the table, i want these fields to have default values .

user_name should contain the currently logged in user.

date_changed_at should contain todays date.

The aim is to eventually have these fields contain the person who last changed the row and the date when it was changed.

It doesnt matter if se16 doesnt contain it and we have a way of defaulting these values thru the table creation process.

something similar to the mandt field. When we create the table data, MANDT field is pre-populated.

Any thoughts?

Regards

Vandana

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
579

Entering data using SE16 is not a good practice .

YOu have to use table maintenance generator to maintable the table entries.

This also provides with options to write your own code to meet requirements like this.

Regards,

Ravi

Entering data using SE16 is not a good practice .

YOu have to use table maintenance generator to maintable the table entries.

This also provides with options to write your own code to meet requirements like this.

Regards,

Ravi

3 REPLIES 3
Read only

Former Member
0 Likes
580

Entering data using SE16 is not a good practice .

YOu have to use table maintenance generator to maintable the table entries.

This also provides with options to write your own code to meet requirements like this.

Regards,

Ravi

Read only

0 Likes
579

Hi Ravi,

I agree that it is not a good practice...

but is there no direct way to do this..

Regards

Vandana

Read only

0 Likes
579

No.

Regards,

Ravi