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

FM for Difference between two dates

Former Member
0 Likes
4,490

Hi,

Could anybody assist me, My requirement is to determine delay of delivery date is equal to (goods receipt posting date u2013 planned delivery date) based on the Factory calender as well as Pulic holidays i.e it should not consider both.Is there any function module to find out the date diffrence. The difference should be '+' or '-' OR 'ZERO'

Thanks in advance.

Regards.

I.Reddy Prasad.

8 REPLIES 8
Read only

Former Member
0 Likes
1,624

Hi,

SD_DATETIME_DIFFERENCE

SD_CALC_DURATION_FROM_DATETIME

SD_DATETIME_DIFFERENCE

try these FMs

Read only

Former Member
0 Likes
1,624

hi,

If you have determined the delivery date ... you can calculate the date difference as shown below.

 
v_date =  v_date1 - v_date2.

Regards,

Santosh

Read only

Former Member
0 Likes
1,624

HI,

Try this fn module.

*Claculate number of days between two dates

'DAYS_BETWEEN_TWO_DATES

Hope it helps you.

<REMOVED BY MODERATOR>

Regards,

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 7:10 PM

Read only

p291102
Active Contributor
0 Likes
1,624

Try this FM

HR_SGPBS_YRS_MTHS_DAYS

Read only

Former Member
1,624

Sankar,

Your above said FM works.

Thanks,

Ashis

Read only

Former Member
0 Likes
1,624

Hi,

Regards

Adil

Read only

Former Member
0 Likes
1,624

Hi

Use this Funtion Module : L_MC_TIME_DIFFERENCE : Find the time difference between two date/time

It will helpful to you.

<REMOVED BY MODERATOR>

With Regards

Nikunj Shah

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 7:10 PM

Read only

0 Likes
1,624

Try FM :

DATE_CONVERT_TO_FACTORYDATE