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

Ranges examples

Former Member
0 Likes
517

Hi

i kept a selection options for a date, in that i given the date like

01/08/2008 to 01/20/2008

01/21/2008 to 01/30/2008

i want the dates in the program like

01/08/2007 to 01/20/2007

01/21/2007 to 01/30/2007

plz any one send the answer asap

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
499

Hi Sahiti

Use this FM HR_BR_CUM_PREV_YEAR.

Please reward points if useful,

~Rajesh

3 REPLIES 3
Read only

Former Member
0 Likes
499

Hi Reddy,

Good!

The internal format of the date is like 20080801.

if you substract 10000 from that it will give like 20070801.

var1 = date - 10000.

var1 and date are type datum.

Thanks,

Sunil

Read only

Former Member
0 Likes
500

Hi Sahiti

Use this FM HR_BR_CUM_PREV_YEAR.

Please reward points if useful,

~Rajesh

Read only

0 Likes
499

Hello,

Pls try the following code,

if the parameter used for these date is date1 then,

date10(4) = date1(04) - 1.

if its a select option,

date1-low0(4) = date1-low0(4) - 1.

date1-high0(4) = date1-high0(4) - 1.

reply for any clarifications...