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

How to restrict the number of Records into the Table?

Is there any way that I can restrict the number of records can be entered into the table?

For example I have created a table TAB1 with size category 0( zero).

User dont want to enter more than 100 values, How to restrict the number entries? Whether Basis can do it?

Regards,

Prathap

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Mar 16, 2009 at 06:41 AM

    Hi Prathap,

    You can write a code in table maintenance events to restrict the number of Records added into the Table to constant.

    Solution:

    Se11 -


    > enter table name (TAB1) -

    > F6 -

    > Utlities -

    > Table maint. generator -

    > Envirnment -

    > modification -

    > events -

    > write here the form routine name.

    Double click on routine name. You will get into include section of the code. Write here code like:

    IF current_rec_num > 100.

    messgae error 'Entry restriceted to 100'

    ENDIF.

    Somewhat this way you can achieve your target.

    Regards,

    Sachin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 15, 2009 at 07:52 AM

    if u have table maintainenece generated for it, then u can use table maintenance events to count existing records and display error message when count exceeds.

    кu03B1ятu03B9к

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 15, 2009 at 09:26 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2009 at 10:52 AM

    Hi,

    it is possible by technical settings.

    Best Regards

    Ravi

    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.