Skip to Content
author's profile photo Former Member
Former Member

Function Module provided by SAP

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 12, 2007 at 10:51 AM

    Hi

    I solved it by changing the codes by myself.

    Manoj Shakya

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.