SAP Function /SAPPSPRO/FM_FISCAL_YEAR_GET - Get table T001 from BUKRS (RFC enabled)

Parameter Reference Type Length Default Optional Text
I_BUDAT DATS D 8 Posting Date in the Document
I_BUKRS CHAR4 C 4 Company Code
I_PERIOD NUMC3 N 3 X Posting Period

Parameter Reference Type Length Text
E_FISCAL_YEAR NUMC4 N 4 Fiscal Year
E_PERIOD NUMC3 N 3 Posting Period
E_RC SYST-SUBRC I 4 Return Code
E_SYS CHAR8 C 8 Name of SAP R/3 System

Exception Text
FIKRS_BUKRS no FM_Area assigned to Company Code
OTHERS other error
POSTING_DATE posting date is initial
SYSTEM_ERROR system error

Functionality
Input data on the company code and posting date reveal the relatedfiscal year. The result may be trivial if a fiscal year variant isassigned to the company code that may never permit the fiscal year andthe year of the posting date diverge.

Example
Case 1: Standard fiscal year variant V4 is assigned to company code1000.
,,The result is trivial: posting date YYYY-MM-DD reveals fiscal yearYYYY.
Case 2: Standard fiscal year variant V9 is assigned to company code0001. V9 fiscal year starts on October 1st.
,,Posting date YYYY-10-01 reveals fiscal year YYYY+1.