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

Regarding Function Module

Former Member
0 Likes
1,293

hi all,

i want to know the function module which indicates the fiscal year of given company code.

thanks

12 REPLIES 12
Read only

Former Member
0 Likes
1,225

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-GJAHR

Regards,

Anirban

Read only

Former Member
0 Likes
1,225

Check this Function.

FM_GET_YEAR_FROM_DATE

Read only

Former Member
0 Likes
1,225

Hello Kaushik,

Try these FM,

/SAPPSPRO/FM_FISCAL_YEAR_GET

FM_GET_YEAR_FROM_DATE

Regards

Indu.

Read only

Former Member
0 Likes
1,225

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 Year

With luck,

Pritam.

Read only

Former Member
0 Likes
1,225

Kaushik,

Welcome to SDN.

try with:

/SAPPSPRO/FM_FISCAL_YEAR_GET

Read only

Former Member
0 Likes
1,225

hi,

Please try.

GM_GET_FISCAL_YEAR

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
1,225

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.

Read only

Former Member
0 Likes
1,225

Hi Kaushik,

Use the function module:

FTI_FISCAL_YEAR_MONTH_GET

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
1,225

Hi,

Check this FM-

CCODE_GET_FISCAL_YEAR_VARIANT

Read only

Former Member
0 Likes
1,225

hiiii

use FM

FI_PERIOD_DETERMINE

for code refer to link

regards

twinkal

Read only

Former Member
0 Likes
1,225

check there tables also

T7PM9 for fiscal years

T009 Fiscal Year Variants

T009B Fiscal year variant periods

T009T Fiscal year variant names

Read only

Former Member
0 Likes
1,225

thanx to all