cancel
Showing results for 
Search instead for 
Did you mean: 

Factory Calendar

Former Member
0 Kudos

Hi All,

We need to use the Date and Time functions in BRF+ like DT_DURATION_DIFF_DAYS , DT_ADD_DAY etc. However, we also need to consider the Factory calendar in these functions (i.e. to obtain the next Business day).

I could not find the options of specifying the factory calendar in any of these functions? Could any one please guide whether BRF+ offers this functionalitty and if not how it can achieved ?

Any inputs will be appreciated.

Regards,
Devang

View Entire Topic
Former Member
0 Kudos

Hi Devang

You need to specify an application exit class (details ) and implement the GET_CALENDAR method.

Specifically, you will need to add this code to the CLASS_CONSTRUCTOR method of the application exit class to activate the GET_CALENDAR method call:

METHOD class_constructor.
  if_fdt_application_settings~gv_get_calendar = abap_true.
ENDMETHOD.

and then this code to the GET_CALENDAR method of the same class:

METHOD if_fdt_application_settings~get_calendar.
  EV_FCALID = 'ZZ'.  "Replace ZZ with your own factory calendar id (from table TFACD)
ENDMETHOD.

Regards

Glen

0 Kudos

This is very useful.