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

i need between Date's

Former Member
0 Likes
497

Hi Experts,

i am using this logic it comming month data,

i need particular date data.

V_MONTH = S_DATE-LOW+0(6).

V_MONTH1 = S_DATE-LOW+0(6).

Regards,

Sreedhar.

Hi Experts,

i am using this logic it comming month data,

i need particular date data.

V_MONTH = S_DATE-LOW+0(6).

V_MONTH1 = S_DATE-LOW+0(6).

Regards,

Sreedhar.

4 REPLIES 4
Read only

Former Member
0 Likes
471

ur query is incomplete.

Read only

Former Member
0 Likes
471

Hi ,<br>

if yourS-date-low date is in YYYYMMDD format.<br>

following statement will give you YYYYMM<br>

V_MONTH = S_DATE-LOW+0(6).<br>

to get the year month and date as follows<br>

V_YEAR = S_DATE-LOW+0(4).<br>

V_MONTH = S_DATE-LOW+4(2).<br>

V_date = S_DATE-LOW+6(2).<br>

then suppose you want DDMM so do the following<br>

concatenate V_DATE V_MONTH into DATEDATE.<br>

Read only

Former Member
0 Likes
471

Hi Sridhar,

Please use the following method to get info about date.

<b>Call method CL_RECA_DATE=>GET_DATE_INFO

or

Call Function Module REAL_ESTATE_CALC_DATE_SLST</b>

Regards

Bhupal Reddy

Read only

Former Member
0 Likes
471

HI Sreedhar

If i have understood your problem, you are trying to get the date where as you are viewing Month, is it???

FYI, Variable of type DATS will be stored internally as YYYYMMDD.

YYYY - Denotes the 4 Chars for Year

MM - Denotes 2 Chars of Month

DD - Denotes 2 Chars of Date.

So use this info and manipulate with OFFSETS to collect as you require.

Eg:

SY-DATUM is of type DATS.

V_YEAR = SY-DATUM(4).

V_MONTH = SY-DATUM+4(2).

V_DATE = SY-DATUM+6(2).

Hope this helps you.

Kind Regards

Eswar