‎2008 Aug 22 10:10 AM
Can any one tell me what is the system field for current year.
‎2008 Aug 22 10:15 AM
Hi
there is no direct system field for finding the current year but you can use SY-DATUM
WRITE :
/ SY-DATUM+0(4).or use
GET_CURRENT_YEAR "Function ModuleCALL 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 YearRegards
Pavan
‎2008 Aug 22 10:11 AM
Hello.
Current year is in current date field sy-datum: like sy-datum(4).
Check all system fields in structure SYST.
Regards,
Valter Oliveira.
‎2008 Aug 22 10:15 AM
Hi
there is no direct system field for finding the current year but you can use SY-DATUM
WRITE :
/ SY-DATUM+0(4).or use
GET_CURRENT_YEAR "Function ModuleCALL 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 YearRegards
Pavan
‎2008 Aug 22 10:17 AM
Hi Priyanka,
As also told by Valter, you would get the current year from the system field sy-datum only.
sy-datum+0(4) is the current year.
With luck,
Pritam.