2007 Dec 11 8:01 AM
Hi all,
I have created an enhancement implementation at the End of the Function Module FI_DUPLICATE_INVOICE_CHECK. The func module checks for duplicate entries of a vendor invoice. The enhancement is to provide another check for duplication. When we enter the invoice using FB60, the code in the enhancement is executed and an appropriate error message is thrown. After receiving the error message if we press enter without changing any value, the function module is called again, but the code in the enhancement is not triggered, and thus the document escapes the check. Any idea why the enhancement in the function module is not processed after pressing enter at the error message.
Regds
Thiru
2007 Dec 11 8:26 AM
Hi!
Mostly it is normal. Without any changes don't need to popup an error message over and over again. This will disturb and annoy the users. Popup the error messages only once.
Of course, the error has to popup all time, if the user wants to save an incorrect document. But not for checking.
If this user exit not protects you from saving incorrect document, you have to find an another one.
Regards
Tamá
2007 Dec 11 8:54 AM
Hi Tamas,
Thanx for the reply. The problem is that the error message thrown by the enhancemenet disappears after the user hits enter, whereas the error messages thrown by the validations in the function module do not go away. ie., if the data fails the standard check he will have to correct it before moving on to the next screen, whereas if it fails the check in the enhancement, he can move to the next screen just by pressing Enter.
Why is the enhanement not triggered the second time (after pressing enter on the error screen) even though the function module is called and the standard checks are executed.
Regds
Thiru
Regds
Thiru
2007 Dec 11 11:00 AM
Hi thiruvengadam,
What type of Error message u throwed 'W' or 'E'?
Regards
Karthik D
2007 Dec 13 5:59 AM
'E' for Error.
Anyway now I throw a message type 'A' to force close the program and it is working. Still not sure why the 'E' did not work. Any ideas wud be useful.
2007 Dec 13 6:27 AM
Hi Thiru
I am sure it has something to do with the function code associated with the Enter button. I had faced a similar situation where the code was not working on save...i had to include the sy-ucomm condition so that my enhancement worked on saving as well.
Please check if thats the case with yours too.
Cheers
Shivika