"Working days" and factory calendar in ABAP
There are some functions and classes available to work with factory calendar. Some real life scenarios, however, could be more tricky than just finding next working day. Say you need to know which date would be a 5th working day of any given month. Even if requirement has fixed number, it might not be very helpful, as factory calendars can be very different from basic calendar. Let's take the most simple example - 01.03.2017. 5th day of the months is Sunday, which makes 07.03.2017 the 5th working day. Holiday season, or any other business related reason, can push 5th working day to even later dates. That means, we really need to count working days to get the proper result. Unfortunately, SAP systems do not have ready made functions to get just that (even though, such functions might be a part of some specific applications/module, but let's assume we have none or using SAP BW system, with only generic ABAP/4 functions available). In our case we need to start f...