sorry that i open another discussion for this Thema but I have an optimization for the Programm as following:
the department wants to coding the following matter:
if the date of vbak-fbuda is (for example 01.01.2014 ) and the vbak-erdat is (for expample today 05.10.2015) than it must compare the message 'Change Revenue account'
if the date of vbkd-fbuda is (for example 20.09.2015) and the vbak-erdat is (also today 05.10.2015) the message don't must compare.
I hope you coul'd help me
At the monten my coding is the followin in the
USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT
sy-ucomm = 'Save'.
if vbkd-fbuda LE vbak-erdat.
message 'Please Change Revenue account'Type 'I'.
Many thand in advance