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: 

Default Value for table field in a table

Former Member
0 Kudos
141

Hi,

I need to set a default value for a table field . ie when ever i create entry in a table i would like to have this field (assume INDICATOR) as X. This i would like to do with out doing any code changes in the creation program.

Can any one help me out in this.?

Thanks

K.Nirmala

Problem i have is:

I have added one new column in a existing table. I would like to have a default value for this column (is X) for all the entries in the table. This table entries will be created thru programs.Not SM30.

Is it possible to achive this with out doing any code change?

Thanks

Nirmala

Message was edited by:

Nirmala Reddy

3 REPLIES 3

Former Member
0 Kudos
71

Hi Nirmala,

Hope this will posible with the table events, where we need to write the peace of code to default the field. As of my knolodge there is no other process to default the field in the table maintenence.

Regards,

Sunil

Former Member
0 Kudos
71

You want to set default during table maintenance either thru SE16 or SM30? or you want it done during table entry update in program?

Former Member
0 Kudos
71

Please try it this way:

1. Goto SE54

2. Use menupath: Environment-> Events

3. Click <b>New Entries</b> from application toolbar.

4. Select 05 entry, while creating a new entry.

5. Define a routine and code to make the default value.

Hope this helps.

Kind Regards

Eswar