Application Development 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: 

Not able to throw error message thru Badi NOTIF_EVENT_SAVE in IW52 tcode ??

Former Member
0 Kudos

Hi.. I need to perform a validation under the TECH tab present for a 'ZF' type notification in the IW52 transaction. The validation part of the code has to be executed when the SAVE button is clicked by the user.

I found a custom include in the BADI implementation of NOTIF_EVENT_SAVE and did my coding there.

But my problem is.. when the validation fails, i need to throw an error message.

I am using the type 'E' while throwing the message but the message is getting displayed in the screen as an Information message only.

How to fix this......

1 ACCEPTED SOLUTION

former_member223537
Active Contributor
0 Kudos

Hi,

I hope you have implemented the BADI in SE19 & included the error message in the method "CHANGE_DATA_AT_SAVE".

Best regards,

Prashant

7 REPLIES 7

former_member223537
Active Contributor
0 Kudos

Hi,

I hope you have implemented the BADI in SE19 & included the error message in the method "CHANGE_DATA_AT_SAVE".

Best regards,

Prashant

0 Kudos

Yeah Prashant..

Thats what i have done..!!..

Can you tell me how to solve this problem.. ..

Regards.

Former Member
0 Kudos

hi bro ...

may be u have given message in START-OF-SELECTION

Try out with message type 'S'.

Try out the same code with type 'S'.....once i had the same issue but in sum different senario...

REGARDS

Edited by: Mohit Kumar on Feb 4, 2009 1:12 PM

former_member223537
Active Contributor
0 Kudos

Hi,

Please pass the error message type, error message no & text in the following EXPORTING fields inside the method :

EV_SUBRC

EV_MSGID

EV_MSGTYPE

EV_MSGNO

EV_MSGV1

EV_MSGV2

EV_MSGV3

EV_MSGV4

Best regards,

Prashant

0 Kudos

Not able to raise error message. Pls resolve

0 Kudos

Hi Anya,

I am facing the same prob. Infact it sometimes leads to a short dump too.

Prashanth,

i have passsed all the required parameters you have suggested.

Kindly suggest suitable steps to raise the error message.

alex_cook
Active Participant
0 Kudos

Howdy,

According to OSS note 978331, the intended behaviour of the BADI is to convert message type 'E' to information message:

Cheers

Alex