I put an external break point in one of the Function module the planning function was calling and it worked. I wanted to debug this because one of the field for few records is getting populated and for other records coming blank.
It seems that when I click on save, this field is not getting written in spite of it being in the aggregation level.