Hi,
Function Module on the Last working Date of a month and Last day of th emonth based on the company code and period.