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 giving runtime error in BADI

sanjay_deshpande4
Participant
0 Likes
1,050

 

HI All,

I am trying a error message in BADI- BADI_MATN1.

How ever it gives runtime error saiyng that

No - MESSAGE E... statements are allowed either in conversion exists

for output conversion (performed by function modules called

CONVERSION_EXIT_xxxxx_OUTPUT).

Kindly guide.

Thanks,

SD

4 REPLIES 4
Read only

Former Member
0 Likes
908

Hi,

Check implementations of the badi BADI_MATN1.

In transaction SE18 you should find it.

Menu -> implementation -> view

Regards.

David Cárceles.

Read only

0 Likes
908

HI David,

I know how to implement BADI.

My problem is error message in  badi BADI_MATN1.

Please go through my query again and kindly help me out.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
908

Well the message is "Error message not allowed" and you want "Send an Error message", not possible, so use an "Abort" message.


For reference look in BC - ABAP Dictionary online help for Domains, Input and Output Conversions.

Only A messages are meaningful in output conversion, but A, E and S messages can be triggered in input conversion (although S messages are not very meaningful here). E messages result in an error dialog. Exceptions are not intercepted in the call.

Error in a WRITE statement or a PBO are not meaningful, so break the transaction with Abort message to protect database consistencies and trigger some ROLLBACK.


Regards,
Raymond

Read only

Former Member
0 Likes
908

Hi,

Try using information message display like 'E' (error).

Thanks,

Ajinkya