Can anyone explain to me how to use CalcDateBOC in Codeunit 7600. I'm going crazy over this code.
I need to calculate last working day in a specific month.
For example, if month is '12' then the last working date output will be 30.12.2016.
THANKS!
Use CheckDateStatus function in codeunit 7600 to check the non working day.
find the first day of next month and calculate 1d back to check non working day..
CalcDateBOC is pretty limited for anything but adding/subtracting a number of days. So I suggest you first calculate the first day of the next month using a normal CALCDATE('<-CM+1M>',..). Then use CalcDateBOC to subtract one day from the former result.
Use CheckDateStatus function in codeunit 7600 to check the non working day.
find the first day of next month and calculate 1d back to check non working day..
Answers
find the first day of next month and calculate 1d back to check non working day..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav