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

What is the function module for finding the difference between two dates?

Former Member
0 Likes
810

Hi Sir,

Am using this logic

  • DIFF BETWEEN SALES ORDER DATE AND PO DATE

V_DATE = W_VBAK-AUDAT - W_EKKO-BEDAT.

W_OUTPUT-F_DATE = V_DATE.

But difference showing 00000.

plz tell me how to do this.

thanks and regards

syed

Moderator message: date calculation questions = FAQ, please search before posting, all points have been deducted, don't say you didn't know about it.

locked by: Thomas Zloch on Sep 7, 2010 2:29 PM

8 REPLIES 8
Read only

Former Member
0 Likes
783

Hi,

HR_HK_DIFF_BT_2_DATES

DAYS_BETWEEN_TWO_DATES

Prabhudas

Read only

Former Member
0 Likes
783

how are v_date and w_output-f_date described? Integers or numc, right, since we have number of days...

Read only

Former Member
0 Likes
783

Sorry basic date questions are not allowed. Please search in SCN.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
783

Please donot ask or answer these type of questions.

Do you need a fm for this ???

Edited by: Keshav.T on Sep 7, 2010 5:17 PM

Read only

Former Member
0 Likes
783

Hi Taj,

There is a nice of function modules related to date calculation on SCN.

Just search with this text in Google "Function modules for date calculation + SAP"

You will get the list on SCN & save it for your future reference insteading of Posting here everytime.

Regards

Abhii

Read only

0 Likes
783

Sorry Sir,

Just now am learning how to use sdn.

sorry for that.

regards

syed

Read only

0 Likes
783

Hi Taj,

Dont take me wrong, basic Date calculation posts are not allowed.

You can refer the list already available for all your future date related queries.

Regards

Abhii

Read only

0 Likes
783

You have been warned multiple times against breaking the rules of this forum. I had also issued you a FINAL warning here: . Add to that, Ive also sent you a personal mail asking you to read the Rules of Enagement and abide it. And yet you chose to ignore it. Hence you have left me no choice but to send your user-id for deletion.

pk