‎2006 Nov 14 7:54 AM
Hi All,
Is there any function module to convert calendar month and year to fiscal period and year??
‎2006 Nov 14 8:01 AM
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
Enter the date you need in the place of sy-datum.
FTI_FISCAL_YEAR_MONTH_GET Returns fiscal year for specific date
Kindly reward points by clicking the star on the left of reply,if it helps.
null
kishan negi
‎2006 Nov 14 8:13 AM
hi,
CALL FUNCTION '/BEV3/CHPERIOD_DETERMINE'
EXPORTING
date = sy-datum
version = c_version
IMPORTING
period = l_period
year = l_fiscal_year
EXCEPTIONS
period_in_not_valid = 1
period_not_assigned = 2
version_undefined = 3
OTHERS = 4.If not use GM_GET_FISCAL_YEAR
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 YearRgds
Anver
<b><i>if hlped pls mark points</i></b>
‎2006 Nov 14 8:44 AM
hi.
please mark points, if your issue solved. currently the thread is shown as answered with out marking any point to helpful answers.
Regards
Anver
‎2006 Nov 14 9:11 AM
Hi,
Please use this function module .
FTI_FISCAL_YEAR_MONTH_GET
Regards,
Irfan Hussain