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: 

FI Validation Exit: how to disable system standard message "Correct the..."

Former Member
0 Kudos

Hi,

I had setup a FI validation exit. In the source code of this validation, I raise an error message, if any. For example:

LOOP AT t_messages_return.

MESSAGE ID t_messages_return-id TYPE t_messages_return-type

NUMBER t_messages_return-number

WITH t_messages_return-message_v1

t_messages_return-message_v2

t_messages_return-message_v3

t_messages_return-message_v4.

ENDLOOP.

The validation is working fine, and it's not allowing user to continue document posts while error exists. The problem is that between my custom message error display and system come back to input screen, there's a popup raised by standard code:

"Correct the error reported before on the next screen".

User doesn't want this message being displayed, since it's an Information Message (like i000). Is there any way to disable this message ? It's raised by standard code just after my custom message code...

Thanks

Rodrigo

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Andreas, thanks for your reply. But making the messages type S, altough really avoids the information message to appear, allows user to move to next screen without correcting what's causing the error. Unfortunatly I need to keep user on the current screen as error message does, but without displaying the standard information message.

3 REPLIES 3

andreas_mann3
Active Contributor
0 Kudos

Hi,

use message type "S" only

A.

Former Member
0 Kudos

Hi Andreas, thanks for your reply. But making the messages type S, altough really avoids the information message to appear, allows user to move to next screen without correcting what's causing the error. Unfortunatly I need to keep user on the current screen as error message does, but without displaying the standard information message.

0 Kudos

Is the user exit used in defining validation step in Tx:GGB0?

It's not good practice to issue error message in validation user exits, because document postig transactions are used in BDC sessions by SAP standard FI programs.

Instead of raising error in user exit, set B_RESULT = B_FALSE and issue generic message in message part of validation.

Check the validation definition in GGB0, message you are gettinin might be defined in the validation, removing it might not show the message.

Regards

Sridhar