cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module provided by SAP

Former Member
0 Kudos

Hi

We recently applied patch for income tax.

In this patch we got

FM : HRPAY99_GET_PAYROLL_PERIOD_OC

Can somebody tell me what is correct in this FM .

FUNCTION HRPAY99_GET_PAYROLL_PERIOD_OC.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" REFERENCE(APER) TYPE PC2APER

*" EXPORTING

*" REFERENCE(BEGDA) LIKE T549Q-BEGDA

*" REFERENCE(ENDDA) LIKE T549Q-BEGDA

*" REFERENCE(PABRJ) LIKE T549Q-PABRJ

*" REFERENCE(PABRP) LIKE T549Q-PABRP

*"----


  • created with XULAHRK054493

Data: i549q like t549q.

<b>

SELECT * FROM T549Q into i549q

WHERE PERMO = aper-permo

AND BEGDA LE aper-bondt

AND ENDDA GE aper-bondt.

exit.

endselect.</b>

begda = i549q-begda.

endda = i549q-endda.

PABRJ = i549q-pabrj.

PABRP = i549q-pabrp.

In this if you see the condition

<b>AND BEGDA LE aper-bondt

AND ENDDA GE aper-bondt.</b>

where in aper ...

In debugging :

We have two entries:

147 67 2007 11 2007 10 01.02.2008 29.02.2008

147 67 2007 12 2007 11 01.03.2008 31.03.2008

according to this FM aper-bondt is 31.12.9999 ,

so what about the condition LE and GE ?

I dont know how the SAP released this type of blunders ?

Well due to this whole payroll process of 70000 employee is stuck

Just putting this for awareness use the patch after checking this .

Manoj Shakya.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

I solved it by changing the codes by myself.

Manoj Shakya