‎2010 Mar 17 6:01 PM
Hi,
I have implemented a BADI for screen validations and in case of error, I am using
message 'THIS IS ERROR' type 'E'.BADI & validations part is working fine, the issue is in case of error, it's disabling all the input fields. I want the fields to be ready for input again after error, so user can fix the input and execute it again.
I have used message type 'S' also and then EXIT, but it would not work. Its just coming out of that condition, not program.
Thanks,
‎2010 Mar 17 6:14 PM
Hi,
It seems like the place you are issuing the error message is not correct. What is the BADI and the method u r using? Is it called in the PAI of the screen? EXIT won't serve the purpose.
Many BADI's have options to log the messages to the application log.(eg: ME21N, BADI ME_PROCESS_PO_CUST).
Thanks,
Vinod.
‎2010 Mar 17 6:14 PM
Hi,
It seems like the place you are issuing the error message is not correct. What is the BADI and the method u r using? Is it called in the PAI of the screen? EXIT won't serve the purpose.
Many BADI's have options to log the messages to the application log.(eg: ME21N, BADI ME_PROCESS_PO_CUST).
Thanks,
Vinod.
‎2010 Mar 17 6:40 PM
Hi,
first of all i think that badi is not suitable for validation, i think its called in the PBO.
read the component documentation, it should have been clearly stated.
‎2010 Mar 17 7:22 PM
The BADI name is BADI_MATERIAL_CHECK & the method which I am using is CHECK_DATA_RETAIL. Its being called at the time when we save the Article in MM41 transaction.
Whats ur input on this.
Keshav.T:
If BADI is not the suitable place, then where should I validate it? I could not find User exit for this. Pls tell me other possible solutions.
Edited by: WDAbap on Mar 17, 2010 8:27 PM
‎2010 Mar 17 7:49 PM
Hi,
I donot have a system right now, ill check and let you know
can you please check whats written in the component (method )documentation.