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

Function Module

Former Member
0 Likes
825

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
Read only

Former Member
0 Likes
740
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
Read only

Former Member
0 Likes
740

HI,

Check this link out...

Regards.

Read only

sachin_mathapati
Contributor
0 Likes
740

ADD_TIME_TO_DATE u2013 Adds months/days/years to a date

Read only

Former Member
0 Likes
741
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.

Read only

0 Likes
740

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

Read only

Former Member
0 Likes
740

Hi Friend,

Please check this Thread for the Answer :

[;

Regards

Hemant Khemani

Read only

Former Member
0 Likes
740

Hello p317980,

Use this and pass

sign + or -

days

months

years

/SAPHT/DRM_CALC_DATE

Regards,

Subbu