2006 Dec 05 5:53 AM
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.
2006 Dec 05 5:56 AM
2006 Dec 05 5:58 AM
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>
2006 Dec 05 6:04 AM
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
2006 Dec 05 6:43 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |