09-17-2008 8:39 AM
Hi all,
I want to get the latest record from 1007 infotype...hw can I do this using macros..??
I had used PNP LDB before...In that v hv RP_PROVIDE_FROM_FRST and
RP_PROVIDE_FROM_LAST to get the first and latest records...Do v hv such macros in PCH..??
And one more doubt can v use Provide...Endprovide when using PCH LDB...???
I had seen Include DBPCHCOM but I **** find ....
Need help on this...
09-17-2008 10:40 AM
logical database PCH hasn't some macros . You need a loop to find the last register of the infotype.
1007 is an OM infotype
09-17-2008 10:13 PM
Hi,
According to infotype you are using 1xxx...check table HRP1xxx.
here for you need find entry to depending upon object type e.g. P-Person, O-Org Unit..etc
Regards,
Amit R.
09-18-2008 12:57 AM
There are no such macros in PCH. If you are already using PNP and need info from 1007 then the most popular way is to read tables HRP1007 into an internal table and then read the record using READ statement that matches your criteria.
And, you can use Provide ... End Provide anywhere you want.