‎2009 Jul 12 4:45 AM
Hi,
I want set initial/default value in a column when create a table by Tcode se11.
please help me.
thanks.
‎2009 Jul 12 5:43 AM
Hi,
You can do this using the Events in table maintenance generator,
When you save an entry in table using SM30 or any other transaction, the default values get saved in the table along with the other entries...for instance you can disable the fields for input on SM30 for the fields where you want to default values...so that user cant enter values in table entries creation.
To access events: SE11->Table maintenance generator->
On the table maintenance screen->Menu->Details->Modifications->Events.
Events: 01- Before save(Do F4 help for more events available)
Routine: <give form name where you add code to default value on screen field>
For more information on events you can search SDN
Hope this helps you
Regards
Shiva
‎2009 Jul 13 6:39 AM
hi
At first create a domain there you set default in values tab .. and later assign this domain in table field
anand kumar
Edited by: anand kumar on Jul 13, 2009 7:40 AM
‎2009 Jul 13 8:55 AM
Hi,
this is very simple....when yu create table in SE11 then when you create data element set the initial value in domain.....just add a Zdomain and set the value in there.
save and activate the domain.then save nad activate the tabel.
Pooja
‎2009 Jul 13 9:45 AM
Hi,
If you want to to assign values to your field from a list of fixed values then, create a domain and in its fixed value specify the value and then attach it to your database table field.. Now, you will be able to choose from this list only..
But, if you want that particular field to hold some default value then, you can do this with the help of events.. Specify your default value there.. Please look from the list of events which suites your requirement..