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

Table field validation in table maintenance

Former Member
0 Likes
502

Hi all,

I have the following requirement.

I created a Z table with 3 fields Zfield1, Zfield2, Zfield3 and key as Zfield1 and Zfield3.

If Zfield1 is filled, then I need to make the rest of the fields as mandatory.

How to do this? Can we use the table maintenance event 05-Creating a new entry for this?

A sample code would be appreciated.

Thanks Alka

1 ACCEPTED SOLUTION
Read only

piyush_mathur
Active Participant
0 Likes
462

Yes Dear, You have to write the code under Events in table mainetnance generator. Write code Under ''Before Saving' event.

First chk your first columns,if its not filled then populate the error message.

Thanks

Piyush

2 REPLIES 2
Read only

piyush_mathur
Active Participant
0 Likes
463

Yes Dear, You have to write the code under Events in table mainetnance generator. Write code Under ''Before Saving' event.

First chk your first columns,if its not filled then populate the error message.

Thanks

Piyush

Read only

Former Member
0 Likes
462

hi alka,

go to the table in SE11 -> click on tab utilities -> table maintenance generator -> click on environment -> modification -> events .

mention here the event 01 - before saving the data in database.

write there the code

FORM

put a check on ur field

error MESSAGE

LEAVE TO SCREEN screen number.

ENDFORM.