2008 Aug 07 10:14 AM
hi all,
i want to know the function module which indicates the fiscal year of given company code.
thanks
check there tables also
T7PM9 for fiscal years
T009 Fiscal Year Variants
T009B Fiscal year variant periods
T009T Fiscal year variant names
2008 Aug 07 10:17 AM
hi,
Try GET_CURRENT_YEAR
FUNCTION *GET_CURRENT_YEAR*.
IMPORTING
BUKRS LIKE BKPF-BUKRS DEFAULT SPACE " Company code
DATE LIKE SY-DATUM DEFAULT SY-DATUM " Date
EXPORTING
CURRM LIKE BKPF-MONAT
CURRY LIKE BKPF-GJAHR
PREVM LIKE BKPF-MONAT
PREVY LIKE BKPF-GJAHRRegards,
Anirban
2008 Aug 07 10:18 AM
2008 Aug 07 10:19 AM
Hello Kaushik,
Try these FM,
/SAPPSPRO/FM_FISCAL_YEAR_GET
FM_GET_YEAR_FROM_DATE
Regards
Indu.
2008 Aug 07 10:20 AM
Welcome to SDN.
Use this FM:
GET_CURRENT_YEAR
Get the current 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 YearWith luck,
Pritam.
2008 Aug 07 10:20 AM
Kaushik,
Welcome to SDN.
try with:
/SAPPSPRO/FM_FISCAL_YEAR_GET
2008 Aug 07 10:21 AM
2008 Aug 07 10:21 AM
Hi Kaushik Ghosh ,
Welcome to SDN.
You can use the Function module GET_CURRENT_YEAR to find the Fiscal year for a company code in certain period range.
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.
Regards,
Rama.
2008 Aug 07 10:21 AM
Hi Kaushik,
Use the function module:
FTI_FISCAL_YEAR_MONTH_GET
Regards,
Chandra Sekhar
2008 Aug 07 10:22 AM
2008 Aug 07 10:23 AM
2008 Aug 07 10:25 AM
check there tables also
T7PM9 for fiscal years
T009 Fiscal Year Variants
T009B Fiscal year variant periods
T009T Fiscal year variant names
2008 Aug 07 10:57 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |