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: 

Display error mesage but program should not terminate.

jayesh_mudaliar
Explorer
0 Kudos

Hello everyone,

I have a requirement in which i have to restrict an entry by an error msg (in BADI) but the user can resume editing afterwards. It should not terminate the transaction.

Regards Jay.

4 REPLIES 4

ashok_mohan
Participant
0 Kudos

Tr displaying the message with type 'E'. You can edit the field afterwards.

MESSAGE 'Custom Message' TYPE 'E'.

raymond_giuseppi
Active Contributor
0 Kudos

Look for a BAdI executed during PAI, before commit start, preferably a 'check' method with allow to return an error message or an exception. Your question is very general?

Regards,
Raymond

Former Member
0 Kudos

If you are using MESSAGE to display error try using display like 'E'.

For e.g. MESSAGE 'Test' TYPE 'S' DISPLAY LIKE 'E'.

Sandra_Rossi
Active Contributor
0 Kudos

Which BAdI definition are you using? The logic to code is BAdI-dependent.