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

Error message in BADI which disable input fields

Former Member
0 Likes
1,079

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,

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
828

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.

4 REPLIES 4
Read only

vinod_vemuru2
Active Contributor
0 Likes
829

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.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
828

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.

Read only

0 Likes
828

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

Read only

0 Likes
828

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.