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: 

Function Module

Former Member
0 Kudos

Hi,

I want to know the Function module,which can subtract one day from a given date.Please help me with this doubt,this is very urgent.

Thanks.

1 ACCEPTED SOLUTION

former_member181995
Active Contributor
0 Kudos
CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
         EXPORTING
              id_date                  = p_begda
              id_operator              = '-'
              is_duration              = l_duration
"no of day 1 in your case
         IMPORTING
              ed_date                  = l_start_date
         EXCEPTIONS
              conversion_not_specified = 1
              conversion_not_possible  = 2
              OTHERS                   = 3.

Amit.

6 REPLIES 6

Former Member
0 Kudos

HI,

Check this link out...

Regards.

sachin_mathapati
Contributor
0 Kudos

ADD_TIME_TO_DATE u2013 Adds months/days/years to a date

former_member181995
Active Contributor
0 Kudos
CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
         EXPORTING
              id_date                  = p_begda
              id_operator              = '-'
              is_duration              = l_duration
"no of day 1 in your case
         IMPORTING
              ed_date                  = l_start_date
         EXCEPTIONS
              conversion_not_specified = 1
              conversion_not_possible  = 2
              OTHERS                   = 3.

Amit.

0 Kudos

Thanks for the prompt reply.I am using the function module in my query.

Former Member
0 Kudos

Hi Friend,

Please check this Thread for the Answer :

[;

Regards

Hemant Khemani

Former Member
0 Kudos

Hello p317980,

Use this and pass

sign + or -

days

months

years

/SAPHT/DRM_CALC_DATE

Regards,

Subbu