Skip to Content
author's profile photo Former Member
Former Member

Make new field table with default value

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2008 at 08:09 PM

    Hi,

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2008 at 07:46 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2008 at 06:44 AM

    no this is not possible.

    You can assign F4/search help for a field.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 20, 2008 at 11:07 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2008 at 09:28 PM

    its not possible

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 20, 2008 at 10:00 AM

    >

    > 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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 12:03 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.