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

field validation in table maintenance generator

Former Member
0 Likes
615

Hi,

I have created a table maintenance generator for a custom table(Mandt, Matnr, material descr, menge, UOM,date)

I have written a code in event 05 for fetching the material description for a matnr automatically.

Here i need to validate the quantity (menge) if it is zero then i should get a message and it should not allow me to save unless i correct the quantity.

validation should be done for the quantities of multiple materials entered.

for validation i have writen the code in event 01 but it is saving the data after giving the I or W message. for Error message it is completely deleting all the materials enetered.

please help.

Hi,

I have created a table maintenance generator for a custom table(Mandt, Matnr, material descr, menge, UOM,date)

I have written a code in event 05 for fetching the material description for a matnr automatically.

Here i need to validate the quantity (menge) if it is zero then i should get a message and it should not allow me to save unless i correct the quantity.

validation should be done for the quantities of multiple materials entered.

for validation i have writen the code in event 01 but it is saving the data after giving the I or W message. for Error message it is completely deleting all the materials enetered.

please help.

3 REPLIES 3
Read only

Former Member
0 Likes
514

Hey,

Try to write the code under the same table event '05' instead of '01' .

It will help.

Thanks!

Read only

0 Likes
514

Hi,

U can write in the event 05 or 06 .....try it it will help..

Rgds

Kumar

Read only

former_member150968
Participant
0 Likes
514

Hi Abdul48,

Try to use some return statement after warning or info message like return; or exit.

Your problem should be solved by this.

Regards

Manish