cancel
Showing results for 
Search instead for 
Did you mean: 

determining the date yesterday

Former Member
0 Kudos

hi,

is there any FM that returns the date yesterday using todate?

thanks!

Accepted Solutions (1)

Accepted Solutions (1)

former_member188076
Active Contributor
0 Kudos

Hi

Chek the transaction OVBS, may be it will help you.

If you give the details about your requirement, you may get better solution for your requirement.

regards

AA

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Why are you looking for FM?

Its simple yesterday's date = SY-DATUM -1.

SY-DATUM is system variable which returns today's day.

try and revert.

Former Member
0 Kudos

>

> Hi

>

> Why are you looking for FM?

>

> Its simple yesterday's date = SY-DATUM -1.

>

> SY-DATUM is system variable which returns today's day.

> try and revert.

Just in case there is, my mentor encourage us to use FM.

Former Member
0 Kudos

ok

then try

HR_99S_DATE_ADD_SUB_DURATION.

Former Member
0 Kudos

>

> ok

> then try

> HR_99S_DATE_ADD_SUB_DURATION.

Im not familiar with this FM, i tried using it but it doesnt seem to give me the right output

it give an expiration date? am i right?