Error message on confition fail in fucntion module

Dear Friends
I have requirement in function module where i need to set a condition on difference of start date and endate should not be more the 7 days.
If it is more than 7 days then give some error message.
Moderator message : FAQ. Spec-dumping not allowed. Thread locked.
Edited by: Vinod Kumar on Jul 12, 2011 11:19 AM

Hi you  can use :
val = date2 - date1.
where val can be integer ...
then some MESSAGE statement.
You should take a look into SAP help docu.
Daniel.

Similar Messages

Maybe you are looking for