Yes Shrikant,Your correct.. i may need to put the condition to check the values before calling the FM.
But the same FM is working with value 0 for some other scenario and raising the Exception date_invalid.
Thanks for your reply.. i will put the condition to check the date value.
Regards,
Saravanan Madhappan