‎2005 Nov 16 7:48 AM
Hi,
Presently i am using function module
DAY_ATTRIBUTES_GET
where i am passing two date,
the first date pertains approval date
the next date is 3 days plus of approval date
but i need to check whether the days between two dates does not fall under holidays or freedays ,from this function module we can make out the holiday & freedays,
if the days fall under holiday or freedays we need not calcualte holidays & freedays insted we need to give 3 working days.
can some one help me with logic.
Thanks in Advance,
Irfan Hussain
‎2005 Nov 16 8:05 AM
HI IRFAN HUSSAIN
Here are some FM for operations on DATES.
you can find more.
GOTO <b>SE37.</b>
type <b>_DATE</b>
you will get list of FM for operation on DATES.
Here i am listing SOME.
<b>DATE_CHECK_PLAUSIBILITY </b>Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems.
<b>
DATE_COMPUTE_DAY</b> Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
<b>DATE_GET_WEEK</b> will return the week that a date is in.
<b>DATE_IN_FUTURE</b> Calculate a date N days in the future.
<b>DAY_ATTRIBUTES_GET</b> Return useful information about a day. Will tell you the day of the week as a word (Tuesday), the day of the week (2 would be Tuedsay), whether the day is a holiday, and more.(provided by Francois Henrotte)
While finding Whether a DATE is holiday or not.You need to know which calendar id to follow.There are lot of calendars defined in SAP.
CHEERS,
VIJAY RAHEJA