Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reg. dates

Former Member
0 Likes
320

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

1 REPLY 1
Read only

Former Member
0 Likes
288

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