Skip to Content
author's profile photo Former Member
Former Member

function module to calculate no of days between two date ranges

hi experts,

can some one please suggest a function module that can calculate no of days between specified date range.

for example : if i enter date range between 26.02.2011 to 20.05.2011, then it should calculate no of days between these dates.

Moderator message : Basic date questions not allowed. Read forum rules before posting. Thread locked.

Edited by: Vinod Kumar on May 25, 2011 10:57 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2011 at 05:24 AM

    You can use CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS'

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2011 at 05:25 AM

    Hi,

    Please search SDN.. there are lots of posts for teh same.

    [http://wiki.sdn.sap.com/wiki/display/ABAP/FunctionModulerelatedonDate+calculations]

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2011 at 05:25 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.