2010 Sep 14 5:06 PM
Hello,
I'm doing a check in the "Ship-to-party" field at VA01-VA02 transactions.
Under some conditions, the value that the user inputs is not right so they want me to show an error message like "The ship to party is not valid for this kind of sales order" and block all the fields of the transaction except this one (KUWEV-KUNNR). If the user wants to proceed, has to change the value of ship-to-party for a good one.
First of all, I'm not sure if this user exit is the place to do this, but I've done it because the consultant told me and I haven't found an alternative. Now the problem is that when I show an error message, it prompts in a popup and then it closes the transaction... is there a way to avoid this and get the behaviour that I told you before?
Hello,
I'm doing a check in the "Ship-to-party" field at VA01-VA02 transactions.
Under some conditions, the value that the user inputs is not right so they want me to show an error message like "The ship to party is not valid for this kind of sales order" and block all the fields of the transaction except this one (KUWEV-KUNNR). If the user wants to proceed, has to change the value of ship-to-party for a good one.
First of all, I'm not sure if this user exit is the place to do this, but I've done it because the consultant told me and I haven't found an alternative. Now the problem is that when I show an error message, it prompts in a popup and then it closes the transaction... is there a way to avoid this and get the behaviour that I told you before?
2010 Sep 16 11:13 AM
Please try this Error meesage:
MESSAGE ID '00' TYPE 'E' NUMBER '435' WITH 'Please fill vaild' ' Ship-to-party.Press enter to continue'.
Remove the popup error message.Try to send some sample code and exit that your using.
Based on that I can suggest some validations.
I hope this may helpfull.
Thank you,
Thanks,
AMS
2010 Sep 16 3:44 PM
Hi AMS,
Thank you, but you didn't understand the issue. When I use an error message like yours in this USER EXIT routine, the behavior is not the usual for error messages. Instead of show the usual error message, it shows the message in a popup lika a type "X" message and then the transaction crashes.
Anyway I found a workaround to solve my problem. If the ship-to-party is not valid, I show a warning messages (this one doesn't crash the transaction) and then I clear the field value and I make it mandatory in the user exit. With this workaround the user doesn't see an error message, but he can't continue if he don't fill this field with a valid value.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |