How to determine if a date is a holiday?

Andrew2009

Well Known Member
I have a date and I want to check if it's a holiday or not. how do I do that please?

Thanks
JDE 9.1
 
Hi Andrew,

You can use B1700690 - F0007 Get Day of Week BSFN, you pass the branch plant and date, this bsfn check branch/plant calendar P00071, and return day of the week (for you is not relevant) and type of day. You check if this value of type of day ('W' Work, 'H' Holiday, 'V' Vacation, 'E' Weekend), etc.

I hope it help you.

Regards,
Alfre.
 
I have differents calendar types, is posible the filter ? the BSFN only accept two parameter (branch plant and date)
 
I have differents calendar types, is posible the filter ? the BSFN only accept two parameter (branch plant and date)

Try N000700 in I mode (I for Inquiry)
Then you can see the difference in WDCT and WDCK between them

But you'll have to split your date apart then check the day against the corresponding TD01 to 31 flags in a big nasty IF
 
Back
Top