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

Field automaticaly populated

Hi,

I have a simple table with the fields:

(k) PC (char4)

(k) PCID (int4)

TIME (tims6)

PC and PCID are the keys of this table. I created a maintenance view because the table is manually populated. PCID field is not visible for the user, but it should be automatically completed with an number before saving the data in the database.

My problem is that I don’t know how to do this. I searched and it seems that I should use an include and call it with the events 01 or 21 in SE54. Could someone give me an example?

Many thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 03:32 AM

    Hi Pablo,

    If you want to do anything with a maintenance view like this, then you should use view events..

    Rgds,

    Prash.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 25, 2005 at 09:43 PM

    Hi Pablo

    You should use the event 21 to fill hidden field PCID.

    In the table of event you choose 21 and insert the name of routine, then push the CODE ICON.

    The system ask you where the routine has to be inserted: choose a new include (I prefer so).

    In this include you insert the code (of your routine) to fill the hidden fields.

    For example:

    In the table insert:

    Event : 21

    Form Name: FILL_HIDDEN_FIELDS

    In the include insert

    FORM FILL_HIDDEN_FIELDS.

    TABLE-PCID = VALUE.

    ENDFORM.

    Max

    Message was edited by: max bianchi

    Add a comment
    10|10000 characters needed characters exceeded

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.