on 11-24-2010 6:40 AM
Hello Experts ,
How can i get start and end date of current year by passing system - date . Is there are any function for this.
thanks.
DATA: FIRST_DATE LIKE SY-DATUM.
DATA: LAST_DATE LIKE SY-DATUM.
*
CALL FUNCTION 'LAST_DAY_OF_MONTHS'
EXPORTING
DAY_IN = SY-DATUM
IMPORTING
LAST_DAY_OF_MONTH = LAST_DATE.
*
CONCATENATE LAST_DATE+0(6) '01' INTO FIRST_DATE.
*
WRITE: / SY-DATUM, FIRST_DATE, LAST_DATE
CALL FUNCTION 'GET_CURRENT_YEAR'
EXPORTING
BUKRS = '1000' " Company Code
DATE = SY-DATUM " Date to find fiscal year for
IMPORTING
CURRM = w_currm " Current Fiscal Month
CURRY = w_curry " Current Fiscal Year
PREVM = w_prevm " Previous Fiscal Month
PREVY = w_prevy. " Previous Fiscal Year
Thanks,
Sankar M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.