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

Function module for date conversion!

Former Member
0 Likes
735

Hi All,

Is there any function module to convert calendar month and year to fiscal period and year??

4 REPLIES 4
Read only

Former Member
0 Likes
567

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.

null

kishan negi

Read only

anversha_s
Active Contributor
0 Likes
567

hi,

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.

If not use GM_GET_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

Rgds

Anver

<b><i>if hlped pls mark points</i></b>

Read only

anversha_s
Active Contributor
0 Likes
567

hi.

please mark points, if your issue solved. currently the thread is shown as answered with out marking any point to helpful answers.

Regards

Anver

Read only

Former Member
0 Likes
567

Hi,

Please use this function module .

FTI_FISCAL_YEAR_MONTH_GET

Regards,

Irfan Hussain