‎2007 Mar 05 7:18 AM
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
‎2007 Mar 05 7:19 AM
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.
‎2007 Mar 05 11:41 PM
FM_GET_VALID_PERIOD_FROM_DATE
Check this and award points if it helps.
‎2007 Mar 06 1:36 AM
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
‎2007 Mar 06 1:51 AM
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
‎2007 Mar 06 1:59 AM
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.