Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Regarding Hr-Abap

Hi HR-Abapers,

Im New to this HR abap and im preparing for this Hr through documents.

Can you please explain me the following statements briefly i mean what they do in the

Programe like that.

1)GET PERNR.

2)RP-PROVIDE-FROM-LAST P0002 SPACE PN-BEGDA PN-ENDDA.

3)RP-PROVIDE-FROM-FIRST P0002 SPACE PN-BEGDA PN-ENDDA.

Thanks and Regards,

Santosh.

Former Member
Former Member replied

hi,

1)GET PERNR.

this statement will fetch infotype records of one employee at a time for all employees using the logical database.

2)RP-PROVIDE-FROM-LAST P0002 SPACE PN-BEGDA PN-ENDDA.

here, rp-provide-from-last is a macro which will fetch the data of the employee currently being processed by the "get pernr" statement. it will fetch the latest (last) infotype 0002 data of the employee between period pn-begda and pn-endda.

3)RP-PROVIDE-FROM-FIRST P0002 SPACE PN-BEGDA PN-ENDDA.

here, rp-provide-from-frst (frst and not first) is a macro which will fetch the data of the employee currently being processed by the "get pernr" statement. it will fetch the earliest (first) infotype 0002 data of the employee between period pn-begda and pn-endda.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question