2010 Jun 17 6:22 AM
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.
2010 Jun 17 9:20 AM
Hey,
Try to write the code under the same table event '05' instead of '01' .
It will help.
Thanks!
2010 Jun 17 1:14 PM
Hi,
U can write in the event 05 or 06 .....try it it will help..
Rgds
Kumar
2010 Jun 21 5:56 AM
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