Application Development and Automation 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: 
Read only

make fields mandatory

Former Member
0 Likes
675

<b>hi

how we have to make fields as " mandatory fields",in a database tables for Ztables entry, like to make address and telephone fields to make mandatory.like the way we have lifnr and kunnr are mandatory while entering the data.</b>

6 REPLIES 6
Read only

Former Member
0 Likes
636

Hi

Which program are you using to fill that ZTABLE?

The input/ouput fields of the screen have to be mandatories, but which screen? It depends on which program you need to use

Max

Read only

suresh_datti
Active Contributor
0 Likes
636

mke it a key field on the Ztable in SE11..

~Suresh

Read only

Former Member
0 Likes
636

As I understood from your post that you want to make address and telephone no as mandatory field.

I suggest you create a Table Mataintenance for the table and modify the generated code to make these fields mandatory. Make the table attributes as 'Maintenance with restriction' so that no one can create an entry directly in the table.

Bye

Chandrasekar

Read only

Former Member
0 Likes
636

You can not do that in the table itself.

It has to come from hte view or the GUI.

So go to your z table in se11.

Goto Utilitles > Table Maintenenace Generator.

Create a Maint View for your table, by specifiying a Funtion group, package, a screen number.

Now say create and save it.

Now, from the same screen, go to the menu, Environment >Modification > Maintenenace Screen.

Confirm the screen no u wantn to modify.,

Go to the layut of the screen.

Now if you double click on hte field u want to make mandatory.

In the properties, you will see a tab called Program. In this, yo will see an option "Input" which is currently set to "Possible".

Change thsi to "Requird".

Save and activate.

Reward suitable points.

Hope this helps

Read only

Former Member
0 Likes
636

hi naveen,

i had d same problem once.....

the fields in the Ztables cannot be marked as mandatory directly in d databse

U hav this provision in other DB systems such as Access but not in Oracle

The fields can be made mandatory on screens while entering the data by following the procedures mentioned above....

Hope this answers the query....

Regards,

Vs

Read only

0 Likes
636

hi,

if u are entering data from screen.

then use

OBLIGATORY

statement.

rgds

anver