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: 

FM for fiscal year/period

Former Member
0 Kudos

Is there a FM in FI to get fiscal year&period for a date with a company code?!

Thanks

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Try FI_PERIOD_DETERMINE



report zrich_0002.
 
data:
      period like t009b-poper,
      year like bkpf-gjahr.
 
parameters: p_datum type sy-datum.
parameters: p_bukrs type t001-bukrs.
 
call function 'FI_PERIOD_DETERMINE'
     exporting
          i_budat = p_datum
          i_bukrs = p_bukrs
     importing
          e_gjahr = year
          e_poper = period.
 
write:/ period, year.




Regards,

RIch Heilman

amit_khare
Active Contributor
0 Kudos

You can also check this one -

FTI_FISCAL_YEAR_MONTH_GET

Regards,

Amit