2007 Apr 24 10:52 AM
Hi,
What is the difference between RP_PROVIDE_FROM_LAST and RP_PROVIDE_FROM_FIRST ?
Regards,
Nimisha
2007 Apr 24 10:58 AM
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
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
2007 Apr 24 10:57 AM
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
2007 Apr 24 10:58 AM
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
2007 Apr 24 10:58 AM
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
2007 Apr 24 11:01 AM
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
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |