Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR IN 'gm_get_fiscal_year'

Former Member
0 Kudos

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.

7 REPLIES 7

Former Member
0 Kudos

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

0 Kudos

there is no 'X' mark xkale in t009 table for S3.

0 Kudos

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

0 Kudos

i set xkale as X in t009 table for S3 variant. than also i am geeting same error.

0 Kudos

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.

0 Kudos

Use the function module "G_PERIOD_GET". Pass the Parameters "DATE" & "VARIANT".

Regards

Vinod

Former Member
0 Kudos

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