on 10-29-2013 9:25 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.