Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Userexit_check_vbkd

Hello,

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'.

endif.

Many thand in advance

Not what you were looking for? View more on this topic or Ask a question