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

Get Current Period.

Former Member
0 Likes
2,146

Hi All,

I want current period based on system date .Please tell me name of Function module so that i can pass system date n get period for that.

Thanks,

Ulhas

5 REPLIES 5
Read only

Former Member
0 Likes
1,016

DETERMINE_PERIOD Retrieve fiscal year and payrole period (Note: verision parameter is fiscal year varient from table T009)

See the sample code

http://www.sapdevelopment.co.uk/fmodules/fms_fiscalyr.htm

FTI_FISCAL_YEAR_MONTH_GET Returns fiscal year for specific date

Reward if this helps.

Read only

Former Member
0 Likes
1,016

FM_GET_VALID_PERIOD_FROM_DATE

Check this and award points if it helps.

Read only

Former Member
0 Likes
1,016

Hi,

HR_PAYROLL_PERIODS_GET

Get the payroll period for a particular date.

Example:

call function 'HR_PAYROLL_PERIOD_GET'

exporting

payroll_area = period

date = sy-datum

importing

payroll_year = ac_year

payroll_period = a_period

exceptions

no_entry_t549a = 1

no_entry_t549q = 2

others = 3

.

  • IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

  • ENDIF.

regards,

keerthi

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,016

Try FI_PERIOD_DETERMINE is your require fiscal period.



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

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,016

Hi,

HR_MX_GET_PAYROLL_PERIOD To Get payroll period and year of a payroll period at a given date

Check this also.

G_PERIOD_GET

Kindly reward points by clicking the star on the left of reply,if it helps.