2006 Oct 10 6:18 PM
Hi
I am designing a Ztable where i have 20 fields.
Among them i want to make all fields mandatory.That means when the user will enter records to this table he should fill every fields otherwise system will give the error the filed is required and record will not save.
What is the procedure for that.
Any can help me.
Regs
Manas Ranjan Panda
2006 Oct 10 6:26 PM
Hi,
If you using the table maintenance for maintaining the records..Then you can goto SE51 for the screen you generated and make all the fields as required in the attributes..
If you are not populating through SM30..Then in your update program you have to check if the field is populated or not..
Thanks,
Naren
Hi
I am designing a Ztable where i have 20 fields.
Among them i want to make all fields mandatory.That means when the user will enter records to this table he should fill every fields otherwise system will give the error the filed is required and record will not save.
What is the procedure for that.
Any can help me.
Regs
Manas Ranjan Panda
2006 Oct 10 6:22 PM
Check the <b>Key</b> check box for all the fields for this table.
If the user needs to enter values, create a table maintanence generator.
But if the initial values are updated through modify/update/insert command and initial will be get upload.
Reagrds,
Prakash.
2006 Oct 10 6:26 PM
Hi,
If you using the table maintenance for maintaining the records..Then you can goto SE51 for the screen you generated and make all the fields as required in the attributes..
If you are not populating through SM30..Then in your update program you have to check if the field is populated or not..
Thanks,
Naren
2006 Oct 10 6:29 PM
Hi
But how does the user fill your ZTABLE?
By SM30 or your Z-program?
Max
2006 Oct 10 6:34 PM
If you don't wish to make all fields key, then you can make them required using the Screen Painter.
After you have generated table maintenance, go back into Table Maintenance Generator screen. Double-click on the words Overview Screen. Click the green arrow to accept the Information message about setting the compare flag. Screen Painter opens. Switch to the Element tab. From the Element tabs, switch to the Special attr. tab. In the Input column, set each I/O field to Required. Save and Activate.
Now when the table is maintained using SM30 all fields are required.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |