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: 

MV45AFZZ extra validations

luscruz
Participant
0 Kudos

Hi all,

I'm trying to set some more validations on USEREXIT_SAVE_DOCUMENT_PREPARE.

If some of these validations are not true, is it possible to not allow to save?

Thanks,

Luis Cruz

1 ACCEPTED SOLUTION

Jelena
Active Contributor
0 Kudos

Dude... You got to be kidding me. Have you at least tried it? The error message will be displayed, then the users can go back and change anything they want and then do Save again. In the worst case add

fcode = 'ENT1'.

before the error message.

6 REPLIES 6

Former Member
0 Kudos

Hi,

Yes.

We can stop the transaction without saving.

0 Kudos

Hi bala,

Can you tell me how?

Thanks,

Luis Cruz

Jelena
Active Contributor
0 Kudos

MESSAGE ... TYPE 'E', obviously.

0 Kudos

But in that case it exits the transaction, and all data are lost.

I need a solution that allow the user to change data, after the error message.

Jelena
Active Contributor
0 Kudos

Dude... You got to be kidding me. Have you at least tried it? The error message will be displayed, then the users can go back and change anything they want and then do Save again. In the worst case add

fcode = 'ENT1'.

before the error message.

0 Kudos

Thanks, that worked.

Only " message ... type 'E' " was terminating the program