Application Development 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: 

differnece between date

Former Member
0 Kudos

Dear all .

I have two date field with value 30-10-2006 and 04-11-2006 . I want the number of days betwwen these two dates .

say for these dates mentioned above difference is 5 days .

is there any function module which will help me .

4 REPLIES 4

gopi_narendra
Active Contributor
0 Kudos

Use the function module FI_PSO_DAYS_MONTHS_YEARS_GET

Function module FI_PSO_DAYS_MONTHS_YEARS_GET

Import parameters Value

I_DATE_FROM 10.10.2005

I_DATE_TO 10.10.2006

Export parameters Value

E_DAYS 365

E_MONTHS 13

E_YEARS 2

Regards

- Gopi

dani_mn
Active Contributor
0 Kudos

HI,

try the following FM. with output format '02'.

<b>HR_HK_DIFF_BT_2_DATES</b>

Regards,

santhosh_patil
Contributor
0 Kudos

Hi....

Try with direct difference...

like no. of days = date1 -date2.

OR

try with FM..

FIMA_DAYS_BETWEEN_TWO_DATES

DAYS_BETWEEN_TWO_DATES

-


santhosh

Former Member
0 Kudos

Use Fm HR_SEN_CALE_DAYS_DURATION

IMPORTING

VALUE(ID_BEGDA) TYPE BEGDA 01.01.2005

VALUE(ID_ENDDA) TYPE ENDDA 02.03.2005

EXPORTING

ES_DURATION 0,0000 0,0000 61,0000

It will have values like:

CALYY CALMM <b>CALDD</b>

0,0000 0,0000 <b>61,0000</b>

I hope it helps.

Best Regards,

Vibha

*Please mark all the helpful answers