Skip to Content
0
Former Member
Apr 21, 2010 at 10:15 AM

Validation should be processed only by entering or change of the field.

38 Views

Hi,

I should create validation in FI, which should check whether the entered VAT date takes place in already closed period. If takes place in already closed period than an error message is risen.

I wrote the code shown below. The prerequisite is the vatdate to be different than u201900.00.0000u2019. The call up point is 3.

The validation works fine during the posting of a document, but not for change of a document.

The system checks the validation for each change of the document, nevertheless that this change is not related to the VAT DATE. In this case if an old document, already reported with vat date in closed period, is changed, the system will rise error message.

Is there any possibility to write in the code that this validation should be processed only by entering or change of the vat date?

Thanks in advance!

Stefka

Edited by: Stefka Nasheva on Apr 21, 2010 2:01 PM