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

Making fields in a table mandatory

Former Member
0 Likes
3,589

Hi,

I have a table for which I have created a maintainence generator to enter values through SM30.

I need to make a few fields in my table as mandatory to enter without making them the keys.

Please tell how should I do that.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,126

Hi,

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.

Regards,

Raj.

Hi,

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.

Regards,

Raj.

3 REPLIES 3
Read only

Former Member
0 Likes
2,126

Create TMG and from table maintenece generator screen goto

Environment -> Modification -> Maintenece Screen and make that field mandatory.

Read only

Former Member
0 Likes
2,127

Hi,

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.

Regards,

Raj.

Read only

Former Member
0 Likes
2,126

in table maintenance genarator, we are having events, in events u can wrote the code, one of the event trigger before going to save, in that u can write a check like it should be mandatory.

then it solve ur problem