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

Table Maintenance Generator

Hi Experts,

I am new to ABAP.

I want to put validations to ZTABLE field ZUSER1.

I want to validate it with USR02 field BNAME.

End users is given with a transaction where they can enter new values to this table, if they enter a value not present in USR02 they should be prompted to enter correct user names.

I want to go by TMG way, by creating events.

Cld you suggest on the steps and what code do I need to enter in the FORM part.

Say I want to prompt user with following message :

'Please enter valid name'



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 03, 2008 at 03:22 PM


    you don't need to code anything for this. Just go to SE11 and for this field add a check table (USR01 - this is the main table for user master). After this (re)generate the table maintenance.

    hope this helps


    Add a comment
    10|10000 characters needed characters exceeded

    • "would this work if user is given a different transaction to insert data ?"

      just check what is that transaction is doing:

      -if it calls SM30 with this Z... table, than it is OK (if it calls FM CALL_MAINTENANCE_VIEW ==> same story)

      -if it calls a Z... program, than you have to modify that Z... program

      "I heard in that case you need to use TMG, where you code in ur event."

      this is an option as well, however it requires some coding.

      Again: if the Z... table is maintained through SM30 and generated table maintenance view, than the easiest solution is to go for the check table (my first reply in this thread)

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.