Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HR ABAP function module

Former Member
0 Kudos

Hi,

What is the difference between RP_PROVIDE_FROM_LAST and RP_PROVIDE_FROM_FIRST ?

Regards,

Nimisha

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi Nimisha,

The macro RP-PROVIDE-FROM-FRST retrieves the first(start) data record which is valid in the data selection period.

o The macro RP-PROVIDE-FROM-LAST retrieves the last(latest) data record which is valid in the data selection period.

o The macro RP-READ-INFOTYPE retrieves the data record(s) which is valid in the data selection period.

Refer

Regards,

Santosh

4 REPLIES 4

Former Member
0 Kudos

Generally we will have mutiple records for an employee in HR.

These 2 macros will get the latest and oldest records for the employee in whole list.

Thanks

eswar

Former Member
0 Kudos

hi Nimisha,

The macro RP-PROVIDE-FROM-FRST retrieves the first(start) data record which is valid in the data selection period.

o The macro RP-PROVIDE-FROM-LAST retrieves the last(latest) data record which is valid in the data selection period.

o The macro RP-READ-INFOTYPE retrieves the data record(s) which is valid in the data selection period.

Refer

Regards,

Santosh

Former Member
0 Kudos

Hi Nimisha,

The entries that occur in the Infortyope are date delimited, so if you add a new entry it will , stop the previous entry at that date and start the new entry from that date, so if you want the most current entry (i.e the last ) then you use RP_PROVIDE_FROM_LAST, but if you want the first entry then use RP_PROVIDE_FROM_FIRST.

depends on what you want from the data and how your processing etc...

Hope this helps.

Gary

Former Member
0 Kudos

rp-provide-from-frst

places first entry for a specified period in the table header entry from an internal infotype table

rp-provide-from-last

places last entry for a specified period in the table header entry from an internal infotype table