Application Development and Automation 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: 
Read only

Fiscal year

Former Member
0 Likes
1,518

Dear Friends,

Pls let me know the function module to get the current Fiscal Year by passing the system date.

Regards,

MARK K

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,456

Try the FM:

GM_GET_FISCAL_YEAR

Try the FM:

GM_GET_FISCAL_YEAR

9 REPLIES 9
Read only

Former Member
0 Likes
1,456

Have a look at this thread:

Hope this helps.

Sudha

Read only

Former Member
0 Likes
1,457

Try the FM:

GM_GET_FISCAL_YEAR

Read only

0 Likes
1,456

CALL FUNCTION 'GM_GET_FISCAL_YEAR'

EXPORTING

  • I_DATE = SY-DATUM

I_FYV =

  • IMPORTING

  • E_FY =

  • EXCEPTIONS

  • FISCAL_YEAR_DOES_NOT_EXIST = 1

  • NOT_DEFINED_FOR_DATE = 2

  • OTHERS = 3

.

For the above FM, what the details should be given for the following and they indicate what.

EXPORTING

I_FYV = (?)

IMPORTING

E_FY = (?)

Regards,

Read only

0 Likes
1,456

i_FYV is the Fiscal year variant , u can get Fiscal year variants from table T009

DATA : L_YEAR(5).

IMPORING

E_FY = L_YEAR.

u will get the value to L_YEAR.

Read only

0 Likes
1,456

You can use GET_CURRENT_YEAR to find the Fiscal year of the entered date.

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.

Read only

0 Likes
1,456

what is the value to be given for :

I_FYV =

in the export part.

Regards,

Read only

0 Likes
1,456

<b>'v3'</b>.

Read only

sridharreddy_kondam
Active Contributor
0 Likes
1,456

Hi Mark,

U can Use this Function module to get the Fiscal year..

<b>*function module used to determine current fiscal year and period

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.

</b>

If not use GM_GET_FISCAL_YEAR

Regards,

Sridhar Reddy...

Message was edited by: sridhar reddy kondam

Read only

0 Likes
1,456

function module used to determine current fiscal year and period

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.

What is version.

Regards,