Skip to Content
avatar image
Former Member

Validation

Dear all,

In Data selection period. I want to check that period is not less than one year.

Ex. 01.01.2008 to 31.12.2008.

01.01.2007 to 31.12.2007.

kindly help me how should i validate it.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Nov 26, 2008 at 09:20 AM

    Hi sap_sun sun ,

    But days are different for different years. 365,366...?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 26, 2008 at 09:30 AM

    Hi,

    Use FM HR_HK_DIFF_BT_2_DATES to calculate difference between two dates.

    I hope it helps.

    Regards,

    Rohit

    Edited by: Rohit Makkar on Nov 26, 2008 10:33 AM

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 26, 2008 at 10:43 AM

    hi,

    try using this FM

    CALL FUNCTION 'FI_PSO_DAYS_MONTHS_YEARS_GET'

    EXPORTING

    i_date_from = gv_budat

    i_date_to = gv_eindt

    IMPORTING

    e_days = gv_diff

    e_months = lv_diff_months

    e_years = lv_diff_year.

    i hope it helps.

    regards

    arjun

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 27, 2008 at 09:21 AM

    thank

    Add comment
    10|10000 characters needed characters exceeded