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: 

Regarding date and time subraction

Former Member
0 Kudos

Hello,

Please can anyone suggest me FM to subtract 24 hours from current date and time.

I want to subtract 24 hours from current date and time.

Thanks in advance,

Minal

1 ACCEPTED SOLUTION

ThomasZloch
Active Contributor
0 Kudos
GET TIME.
LF_TIME = SY-UZEIT.
LF_DATE = SY-DATUM - 1.
4 REPLIES 4

peter_ruiz2
Active Contributor
0 Kudos

hi Minal,

use TV_GO_BACK_N_DAYS

ThomasZloch
Active Contributor
0 Kudos
GET TIME.
LF_TIME = SY-UZEIT.
LF_DATE = SY-DATUM - 1.

Former Member
0 Kudos

Hi,

Use the FM:

RP_CALC_DATE_IN_INTERNAL – add/subtract year/month/days from a date

Hope this helps.

Reward if helpful.

Regards,

Sipra

Former Member
0 Kudos

Hi Minal ,

Try the FM RM_GO_BACK_N_DAYS to go back by number of days..