04-21-2010 11:10 AM
hi experts,
IS there any functional module for finding fiscal year . withiout passing company code.
is used this functional module. 'gm_get_fiscal_year'.
i pass I_DATE = 01.01.2010.
I_FYV = 'S3'.
it showing exception like this 'Fiscal year variant S3 not defined or maintained for date 30.01.2011'.
how can i solve this problem.
thank you,
PRADEEP.P.
04-21-2010 11:44 AM
Check the table T009, Calender year field (xkale) should be set to 'X'.
Use the function module "/IBS/RB_FI_GET_FISCAL_YEAR_VAR" to get the correct fiscal year variant for a company code
Regards
Vinod
Edited by: Vinod Kumar on Apr 21, 2010 4:17 PM
04-21-2010 11:47 AM
04-21-2010 11:49 AM
Means the variant you are using may be incorrect. Get the correct variant using the function module "/IBS/RB_FI_GET_FISCAL_YEAR_VAR" or "CCODE_GET_FISCAL_YEAR_VARIANT"
Regards
Vinod
Edited by: Vinod Kumar on Apr 21, 2010 4:19 PM
04-21-2010 11:56 AM
i set xkale as X in t009 table for S3 variant. than also i am geeting same error.
04-21-2010 12:00 PM
i set xkale as X in t009 table for S3 variant. than also i am geeting same error.
i want to collect fiscal year. from april to march.i pass the I_DATE = 01.01.2010
i_FYV = s3.
it showing show fiscal year as 2010.
but ans is 2009.
how can i solve this error.
04-21-2010 12:20 PM
Use the function module "G_PERIOD_GET". Pass the Parameters "DATE" & "VARIANT".
Regards
Vinod
04-21-2010 5:15 PM
Hi,
Particullary I think the FM 'gm_get_fiscal_year' could be very useful to you. Just have to know the field T001-PERIV and any date you want to evaluate.
In my case, the periv is the same in all companies. I really don't know how it´s in your case.
If it isn't useful, you have other FM to review:
- GET_CURRENT_YEAR: here you need the company code as parameter, but it gives you the current and previous Period and Fiscal Year.
Hope it helps you.
--
Alexis Sánchez N.
SAP ABAP Development Consultant
<< You have been warned multiple times to refrain from including company specific content >>
Edited by: Rob Burbank on Apr 21, 2010 1:33 PM