cancel
Showing results for 
Search instead for 
Did you mean: 

Fuction module to retrieve the no. of weeks for a given year.

Former Member
0 Kudos

Hi,

I want to know is there any Function module in SAP to retrieve the no. of weeks for a given year.

If anybody knows means please reply me. I need this urgently.

Regards,

Mithun.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mithun,

Try the Function module 'HR_IE_NUM_PRSI_WEEKS'.

Although there is no documentation available for this,but looking at the Import and the Export parameters,it seems that this FM gives the number of weeks for a defined or entered period.

In case you have any further clarifications,do let me know.

Regards,

Puneet Jhari.

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

Try FM <b>HR_IE_NUM_PRSI_WEEKS</b>

Reward if useful.

Former Member
0 Kudos

Hi Mithun,

Try FM " HR_IE_NUM_PRSI_WEEKS"

CALL FUNCTION 'HR_IE_NUM_PRSI_WEEKS'

EXPORTING

tax_year_begin = ws_taxdate (01.01.2007)

period_begin = ws_startdate (01.01.2007)

period_end = ws_enddate (01.01.2008)

IMPORTING

NUM_WEEKS = ws_weeks

EXCEPTIONS

END_LT_START = 1

END_LT_YEAR_START = 2

START_LT_YEAR_START = 3

OTHERS = 4 .

Reward if Helpful.

Regards,

Chitra

JozsefSzikszai
Active Contributor
0 Kudos

hi Mithun,

you don't need a FM for that. You can hardcode 52

ec

former_member208856
Active Contributor
0 Kudos

Hi,

Check FM : HR_IE_NUM_PRSI_WEEKS

DATA NUM_WEEKS TYPE PC26W-WEEKS.

CALL FUNCTION 'HR_IE_NUM_PRSI_WEEKS'

EXPORTING

tax_year_begin = '20070101'

period_begin = '20070101'

period_end = '20071231'

IMPORTING

NUM_WEEKS = NUM_WEEKS

EXCEPTIONS

END_LT_START = 1

END_LT_YEAR_START = 2

START_LT_YEAR_START = 3

.

WRITE : NUM_WEEKS.

SANDEEP KAUSHIK

Former Member
0 Kudos

TRY THIS

HR_SGPBS_YRS_MTHS_DAYS

reward if useful.