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: 

Make new field table with default value

Former Member
0 Kudos
150

It is possible, add a new field to a table in the dictionary and give it a default style PL / SQL

num_emple VARCHAR2 (15) DEFAULT 'Pedro' 

And when you insert a new record, the field has num_emple values' Pedro '

Excuse my English, Thank you.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
98

Hi,

I don't think so that it is possible...

8 REPLIES 8

former_member156446
Active Contributor
0 Kudos
98

if you can search the forum for Append structure.. I guess that will be your answer.

Former Member
0 Kudos
99

Hi,

I don't think so that it is possible...

Former Member
0 Kudos
98

its not possible

Former Member
0 Kudos
98

no this is not possible.

You can assign F4/search help for a field.

christine_evans
Active Contributor
0 Kudos
98

>

> It is possible, add a new field to a table in the dictionary and give it a default style PL / SQL

num_emple VARCHAR2 (15) DEFAULT 'Pedro' 

> And when you insert a new record, the field has num_emple values' Pedro '

> Excuse my English, Thank you.

You might be able to do something like this with conversion exits.

naveen_inuganti2
Active Contributor
0 Kudos
98

Hi..

Most of the things can be possible at dictionary level and this too..

Let you know, before that, check below steps once..,

1. Add that new field to your table. with value range as your default value

and in one local progran write the syntax like following.,to update the new field in previous records.,

data: itab like yourtable occurs 0 with header line.
data: wa like line of itab.
select * from yourtable into corresponding fields of table itab.
loop at itab into wa.
 wa-newfield = 'TEST'.
 modify yourtablel from wa.
endloop.

2. And then modify the code from where your ztable is updating with this new field also, by giving the hard coded input as you want.

If this does not meets your reuirement, let me now reason why you are not able to use this procedure.

Because there you have to go for table control event level settings... get back to you.

Thanks,

Naveen.I

Former Member
0 Kudos
98

Thank you all, I also believe that it is not possible.

0 Kudos
98

Sierra wrote: > Thank you all, I also believe that it is not possible.

But its possible, Dont comprimize with your reuirement., as we are working with forth generation language. As I already said most of the things can be possible here.

Anyway you already closed this thread.

All the best in your task,

Thanks,

Naveen.I